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;
}
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);
}
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));
}
Aggregations