Search in sources :

Example 1 with InternalFriendlyObstruction

use of org.prebid.mobile.rendering.models.internal.InternalFriendlyObstruction in project prebid-mobile-android by prebid.

the class InterstitialView method formInterstitialObstructionsArray.

protected InternalFriendlyObstruction[] formInterstitialObstructionsArray() {
    InternalFriendlyObstruction[] obstructionArray = new InternalFriendlyObstruction[3];
    View closeInterstitial = findViewById(R.id.iv_close_interstitial);
    View countDownTimer = findViewById(R.id.rl_count_down);
    View actionButton = findViewById(R.id.tv_learn_more);
    obstructionArray[0] = new InternalFriendlyObstruction(closeInterstitial, InternalFriendlyObstruction.Purpose.CLOSE_AD, null);
    obstructionArray[1] = new InternalFriendlyObstruction(countDownTimer, InternalFriendlyObstruction.Purpose.OTHER, "CountDownTimer");
    obstructionArray[2] = new InternalFriendlyObstruction(actionButton, InternalFriendlyObstruction.Purpose.OTHER, "Action button");
    return obstructionArray;
}
Also used : InternalFriendlyObstruction(org.prebid.mobile.rendering.models.internal.InternalFriendlyObstruction) BaseAdView(org.prebid.mobile.rendering.views.base.BaseAdView) View(android.view.View)

Example 2 with InternalFriendlyObstruction

use of org.prebid.mobile.rendering.models.internal.InternalFriendlyObstruction in project prebid-mobile-android by prebid.

the class VideoView method addVideoControlObstruction.

private void addVideoControlObstruction(View view, String description) {
    if (view == null) {
        return;
    }
    InternalFriendlyObstruction obstruction = new InternalFriendlyObstruction(view, InternalFriendlyObstruction.Purpose.VIDEO_CONTROLS, description);
    mAdViewManager.addObstructions(obstruction);
}
Also used : InternalFriendlyObstruction(org.prebid.mobile.rendering.models.internal.InternalFriendlyObstruction)

Example 3 with InternalFriendlyObstruction

use of org.prebid.mobile.rendering.models.internal.InternalFriendlyObstruction in project prebid-mobile-android by prebid.

the class AdViewManager method addHtmlInterstitialObstructions.

private void addHtmlInterstitialObstructions(ViewGroup rootViewGroup) {
    if (rootViewGroup == null) {
        LogUtil.debug(TAG, "addHtmlInterstitialObstructions(): rootViewGroup is null.");
        return;
    }
    View closeButtonView = rootViewGroup.findViewById(R.id.iv_close_interstitial);
    addObstructions(new InternalFriendlyObstruction(closeButtonView, InternalFriendlyObstruction.Purpose.CLOSE_AD, null));
}
Also used : InternalFriendlyObstruction(org.prebid.mobile.rendering.models.internal.InternalFriendlyObstruction) InterstitialView(org.prebid.mobile.rendering.bidding.display.InterstitialView) View(android.view.View) VideoCreativeView(org.prebid.mobile.rendering.video.VideoCreativeView)

Aggregations

InternalFriendlyObstruction (org.prebid.mobile.rendering.models.internal.InternalFriendlyObstruction)3 View (android.view.View)2 InterstitialView (org.prebid.mobile.rendering.bidding.display.InterstitialView)1 VideoCreativeView (org.prebid.mobile.rendering.video.VideoCreativeView)1 BaseAdView (org.prebid.mobile.rendering.views.base.BaseAdView)1