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
Internal base interstitial ad unit.
-
Field Summary
Fields inherited from class org.prebid.mobile.api.mediation.MediationBaseAdUnit
adUnitConfig, bidLoader, contextWeakReference, mediationDelegate, onFetchCompleteListener
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MediationBaseFullScreenAdUnit
(android.content.Context context, String configId, AdSize adSize, PrebidMediationDelegate mediationDelegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCloseButtonArea
(double closeButtonArea) Sets close button percentage size in range from 0.05 to 1.void
setCloseButtonPosition
(Position closeButtonPosition) Sets close button position on the screen.void
setIsMuted
(boolean isMuted) Sets desired is muted property.void
setIsSoundButtonVisible
(boolean isSoundButtonVisible) Makes sound button visible.void
setMaxVideoDuration
(int seconds) Sets max video duration.void
setSkipButtonArea
(double buttonArea) Sets skip button percentage size in range from 0.05 to 1.void
setSkipButtonPosition
(Position skipButtonPosition) Sets skip button position on the screen.void
setSkipDelay
(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, addExtData, addExtKeyword, addExtKeywords, addUserData, clearContextData, clearContextKeywords, clearExtData, clearExtKeywords, clearUserData, destroy, fetchDemand, getAppContent, getContextDataDictionary, getContextKeywordsSet, getExtDataDictionary, getExtKeywordsSet, getImpOrtbConfig, getPbAdSlot, getUserData, initAdConfig, initBidLoader, onErrorReceived, onResponseReceived, removeContextData, removeContextKeyword, removeExtData, removeExtKeyword, setAppContent, setImpOrtbConfig, setOrtbConfig, setPbAdSlot, updateContextData, updateExtData
-
Constructor Details
-
MediationBaseFullScreenAdUnit
-
-
Method Details
-
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
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
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.
-