Class AdViewManager
java.lang.Object
org.prebid.mobile.rendering.views.AdViewManager
- All Implemented Interfaces:
CreativeViewListener,TransactionManagerListener
public class AdViewManager
extends Object
implements CreativeViewListener, TransactionManagerListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionAdViewManager(android.content.Context context, AdViewManagerListener adViewListener, android.view.ViewGroup adView, InterstitialManager interstitialManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObstructions(InternalFriendlyObstruction... friendlyObstructions) booleanvoidcreativeDidCollapse(AbstractCreative creative) voidcreativeDidComplete(AbstractCreative creative) Is called when creative finish its lifecycle.voidcreativeDidExpand(AbstractCreative creative) voidcreativeInterstitialDialogShown(android.view.ViewGroup rootViewGroup) voidcreativeInterstitialDidClose(AbstractCreative creative) Is called when user closes the creatives clickthrough.voidcreativeMuted(AbstractCreative creative) voidcreativePaused(AbstractCreative creative) voidcreativeResumed(AbstractCreative creative) voidcreativeUnMuted(AbstractCreative creative) voidcreativeWasClicked(AbstractCreative creative, String url) Is called when ad's content is rendered in the displayed view.voiddestroy()longlongbooleanbooleanvoidhide()booleanbooleanbooleanbooleanvoidloadBidTransaction(AdUnitConfiguration adConfiguration, BidResponse bidResponse) voidloadVideoTransaction(AdUnitConfiguration adConfiguration, String vastXml) voidmute()voidonFetchingCompleted(Transaction transaction) Is called when TransactionManager has finished the fetching process.voidonFetchingFailed(AdException exception) In case of failure, the error should be not null and contains the description of the issuevoidpause()voidvoidresume()voidreturnFromVideo(android.view.View callingView) voidsetAdVisibility(int visibility) voidshow()voidvoidvoidunmute()voidupdateAdView(android.view.View view)
-
Constructor Details
-
AdViewManager
public AdViewManager(android.content.Context context, AdViewManagerListener adViewListener, android.view.ViewGroup adView, InterstitialManager interstitialManager) throws AdException - Throws:
AdException
-
-
Method Details
-
onFetchingCompleted
Description copied from interface:TransactionManagerListenerIs called when TransactionManager has finished the fetching process. In case of success, the transaction represents the loaded transaction.- Specified by:
onFetchingCompletedin interfaceTransactionManagerListener- Parameters:
transaction- successful transaction
-
onFetchingFailed
Description copied from interface:TransactionManagerListenerIn case of failure, the error should be not null and contains the description of the issue- Specified by:
onFetchingFailedin interfaceTransactionManagerListener- Parameters:
exception- used to inform the listener in case something is wrong
-
creativeWasClicked
Description copied from interface:CreativeViewListenerIs called when ad's content is rendered in the displayed view.- Specified by:
creativeWasClickedin interfaceCreativeViewListener- Parameters:
creative-url-
-
creativeInterstitialDidClose
Description copied from interface:CreativeViewListenerIs called when user closes the creatives clickthrough.- Specified by:
creativeInterstitialDidClosein interfaceCreativeViewListener- Parameters:
creative-
-
creativeDidExpand
- Specified by:
creativeDidExpandin interfaceCreativeViewListener
-
creativeDidCollapse
- Specified by:
creativeDidCollapsein interfaceCreativeViewListener
-
creativeInterstitialDialogShown
public void creativeInterstitialDialogShown(android.view.ViewGroup rootViewGroup) - Specified by:
creativeInterstitialDialogShownin interfaceCreativeViewListener
-
creativeMuted
- Specified by:
creativeMutedin interfaceCreativeViewListener
-
creativeUnMuted
- Specified by:
creativeUnMutedin interfaceCreativeViewListener
-
creativePaused
- Specified by:
creativePausedin interfaceCreativeViewListener
-
creativeResumed
- Specified by:
creativeResumedin interfaceCreativeViewListener
-
creativeDidComplete
Description copied from interface:CreativeViewListenerIs called when creative finish its lifecycle.- Specified by:
creativeDidCompletein interfaceCreativeViewListener- Parameters:
creative-
-
resetTransactionState
public void resetTransactionState() -
hide
public void hide() -
setAdVisibility
public void setAdVisibility(int visibility) -
getAdConfiguration
-
isAutoDisplayOnLoad
public boolean isAutoDisplayOnLoad() -
destroy
public void destroy() -
pause
public void pause() -
resume
public void resume() -
mute
public void mute() -
unmute
public void unmute() -
isNotShowingEndCard
public boolean isNotShowingEndCard() -
hasEndCard
public boolean hasEndCard() -
hasNextCreative
public boolean hasNextCreative() -
updateAdView
public void updateAdView(android.view.View view) -
trackVideoStateChange
-
canShowFullScreen
public boolean canShowFullScreen() -
returnFromVideo
public void returnFromVideo(android.view.View callingView) -
isPlaying
public boolean isPlaying() -
isInterstitialClosed
public boolean isInterstitialClosed() -
trackCloseEvent
public void trackCloseEvent() -
getMediaDuration
public long getMediaDuration() -
getSkipOffset
public long getSkipOffset() -
addObstructions
-
show
public void show() -
loadBidTransaction
-
loadVideoTransaction
-