Class AdViewManager
- java.lang.Object
-
- org.prebid.mobile.rendering.views.AdViewManager
-
- All Implemented Interfaces:
CreativeViewListener,TransactionManagerListener
public class AdViewManager extends java.lang.Object implements CreativeViewListener, TransactionManagerListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAdViewManager.AdViewManagerInterstitialDelegate
-
Constructor Summary
Constructors Constructor Description AdViewManager(android.content.Context context, AdViewManagerListener adViewListener, android.view.ViewGroup adView, InterstitialManager interstitialManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddObstructions(InternalFriendlyObstruction... friendlyObstructions)booleancanShowFullScreen()voidcreativeDidCollapse(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, java.lang.String url)Is called when ad's content is rendered in the displayed view.voiddestroy()AdUnitConfigurationgetAdConfiguration()longgetMediaDuration()longgetSkipOffset()booleanhasEndCard()booleanhasNextCreative()voidhide()booleanisAutoDisplayOnLoad()booleanisInterstitialClosed()booleanisNotShowingEndCard()booleanisPlaying()voidloadBidTransaction(AdUnitConfiguration adConfiguration, BidResponse bidResponse)voidloadVideoTransaction(AdUnitConfiguration adConfiguration, java.lang.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()voidresetTransactionState()voidresume()voidreturnFromVideo(android.view.View callingView)voidsetAdVisibility(int visibility)voidshow()voidtrackCloseEvent()voidtrackVideoStateChange(InternalPlayerState state)voidunmute()voidupdateAdView(android.view.View view)
-
-
-
Constructor Detail
-
AdViewManager
public AdViewManager(android.content.Context context, AdViewManagerListener adViewListener, android.view.ViewGroup adView, InterstitialManager interstitialManager) throws AdException- Throws:
AdException
-
-
Method Detail
-
onFetchingCompleted
public void onFetchingCompleted(Transaction transaction)
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
public void onFetchingFailed(AdException exception)
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
public void creativeWasClicked(AbstractCreative creative, java.lang.String url)
Description copied from interface:CreativeViewListenerIs called when ad's content is rendered in the displayed view.- Specified by:
creativeWasClickedin interfaceCreativeViewListener
-
creativeInterstitialDidClose
public void creativeInterstitialDidClose(AbstractCreative creative)
Description copied from interface:CreativeViewListenerIs called when user closes the creatives clickthrough.- Specified by:
creativeInterstitialDidClosein interfaceCreativeViewListener
-
creativeDidExpand
public void creativeDidExpand(AbstractCreative creative)
- Specified by:
creativeDidExpandin interfaceCreativeViewListener
-
creativeDidCollapse
public void creativeDidCollapse(AbstractCreative creative)
- Specified by:
creativeDidCollapsein interfaceCreativeViewListener
-
creativeInterstitialDialogShown
public void creativeInterstitialDialogShown(android.view.ViewGroup rootViewGroup)
- Specified by:
creativeInterstitialDialogShownin interfaceCreativeViewListener
-
creativeMuted
public void creativeMuted(AbstractCreative creative)
- Specified by:
creativeMutedin interfaceCreativeViewListener
-
creativeUnMuted
public void creativeUnMuted(AbstractCreative creative)
- Specified by:
creativeUnMutedin interfaceCreativeViewListener
-
creativePaused
public void creativePaused(AbstractCreative creative)
- Specified by:
creativePausedin interfaceCreativeViewListener
-
creativeResumed
public void creativeResumed(AbstractCreative creative)
- Specified by:
creativeResumedin interfaceCreativeViewListener
-
creativeDidComplete
public void creativeDidComplete(AbstractCreative creative)
Description copied from interface:CreativeViewListenerIs called when creative finish its lifecycle.- Specified by:
creativeDidCompletein interfaceCreativeViewListener
-
resetTransactionState
public void resetTransactionState()
-
hide
public void hide()
-
setAdVisibility
public void setAdVisibility(int visibility)
-
getAdConfiguration
public AdUnitConfiguration 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
public void trackVideoStateChange(InternalPlayerState state)
-
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
public void addObstructions(InternalFriendlyObstruction... friendlyObstructions)
-
show
public void show()
-
loadBidTransaction
public void loadBidTransaction(AdUnitConfiguration adConfiguration, BidResponse bidResponse)
-
loadVideoTransaction
public void loadVideoTransaction(AdUnitConfiguration adConfiguration, java.lang.String vastXml)
-
-