Package org.prebid.mobile.api.mediation
Class MediationBaseFullScreenAdUnit
- java.lang.Object
-
- org.prebid.mobile.api.mediation.MediationBaseAdUnit
-
- org.prebid.mobile.api.mediation.MediationBaseFullScreenAdUnit
-
- Direct Known Subclasses:
MediationInterstitialAdUnit,MediationRewardedVideoAdUnit
public abstract class MediationBaseFullScreenAdUnit extends MediationBaseAdUnit
-
-
Field Summary
-
Fields inherited from class org.prebid.mobile.api.mediation.MediationBaseAdUnit
adUnitConfig, bidLoader, contextWeakReference, mediationDelegate, onFetchCompleteListener
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMediationBaseFullScreenAdUnit(android.content.Context context, java.lang.String configId, AdSize adSize, PrebidMediationDelegate mediationDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetCloseButtonArea(double closeButtonArea)Sets close button percentage size in range from 0.05 to 1.voidsetCloseButtonPosition(Position closeButtonPosition)Sets close button position on the screen.voidsetIsMuted(boolean isMuted)Sets desired is muted property.voidsetIsSoundButtonVisible(boolean isSoundButtonVisible)Makes sound button visible.voidsetMaxVideoDuration(int seconds)Sets max video duration.voidsetSkipButtonArea(double buttonArea)Sets skip button percentage size in range from 0.05 to 1.voidsetSkipButtonPosition(Position skipButtonPosition)Sets skip button position on the screen.voidsetSkipDelay(int secondsDelay)Sets delay in seconds to show skip or close button.-
Methods inherited from class org.prebid.mobile.api.mediation.MediationBaseAdUnit
addContextData, addContextKeyword, addContextKeywords, addUserData, clearContextData, clearContextKeywords, clearUserData, destroy, fetchDemand, getAppContent, getContextDataDictionary, getContextKeywordsSet, getPbAdSlot, getUserData, initAdConfig, initBidLoader, onErrorReceived, onResponseReceived, removeContextData, removeContextKeyword, setAppContent, setPbAdSlot, updateContextData
-
-
-
-
Constructor Detail
-
MediationBaseFullScreenAdUnit
protected MediationBaseFullScreenAdUnit(android.content.Context context, java.lang.String configId, AdSize adSize, PrebidMediationDelegate mediationDelegate)
-
-
Method Detail
-
setMaxVideoDuration
public void setMaxVideoDuration(int seconds)
Sets max video duration. If the ad from server is bigger, it will be rejected.
-
setSkipDelay
public void setSkipDelay(int secondsDelay)
Sets delay in seconds to show skip or close button.
-
setSkipButtonArea
public void setSkipButtonArea(double buttonArea)
Sets skip button percentage size in range from 0.05 to 1. If value less than 0.05, size will be default.
-
setSkipButtonPosition
public void setSkipButtonPosition(Position skipButtonPosition)
Sets skip button position on the screen. Suitable values TOP_LEFT and TOP_RIGHT. Default value TOP_RIGHT.
-
setCloseButtonArea
public void setCloseButtonArea(double closeButtonArea)
Sets close button percentage size in range from 0.05 to 1. If value less than 0.05, size will be default.
-
setCloseButtonPosition
public void setCloseButtonPosition(Position closeButtonPosition)
Sets close button position on the screen. Suitable values TOP_LEFT and TOP_RIGHT. Default value TOP_RIGHT.
-
setIsMuted
public void setIsMuted(boolean isMuted)
Sets desired is muted property.
-
setIsSoundButtonVisible
public void setIsSoundButtonVisible(boolean isSoundButtonVisible)
Makes sound button visible.
-
-