-
- All Implemented Interfaces:
-
com.appstock.sdk.rendering.listeners.CreativeViewListener,com.appstock.sdk.rendering.loading.TransactionManagerListener
public class AdViewManager implements CreativeViewListener, TransactionManagerListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceAdViewManager.AdViewManagerInterstitialDelegate
-
Field Summary
Fields Modifier and Type Field Description private AdUnitConfigurationadConfiguration
-
Constructor Summary
Constructors Constructor Description AdViewManager(Context context, AdViewManagerListener adViewListener, ViewGroup adView, InterstitialManager interstitialManager)
-
Method Summary
Modifier and Type Method Description AdUnitConfigurationgetAdConfiguration()voidonFetchingCompleted(Transaction transaction)Is called when TransactionManager has finished the fetching process.In case of success, the transaction represents the loaded transaction. voidonFetchingFailed(AppstockAdException exception)In case of failure, the error should be not null and contains the description of the issue voidcreativeWasClicked(AbstractCreative creative, String url)Is called when ad's content is rendered in the displayed view. voidcreativeInterstitialDidClose(AbstractCreative creative)Is called when user closes the creatives clickthrough. voidcreativeDidExpand(AbstractCreative creative)voidcreativeDidCollapse(AbstractCreative creative)voidcreativeInterstitialDialogShown(ViewGroup rootViewGroup)voidcreativeMuted(AbstractCreative creative)voidcreativeUnMuted(AbstractCreative creative)voidcreativePaused(AbstractCreative creative)voidcreativeResumed(AbstractCreative creative)voidcreativeDidComplete(AbstractCreative creative)Is called when creative finish its lifecycle. voidresetTransactionState()voidhide()voidsetAdVisibility(int visibility)booleanisAutoDisplayOnLoad()voiddestroy()voidpause()voidresume()voidmute()voidunmute()booleanisNotShowingEndCard()booleanhasEndCard()booleanhasNextCreative()voidupdateAdView(View view)voidtrackVideoStateChange(InternalPlayerState state)booleancanShowFullScreen()voidreturnFromVideo(View callingView)booleanisPlaying()booleanisInterstitialClosed()voidtrackCloseEvent()longgetMediaDuration()longgetSkipOffset()voidaddObstructions(Array<InternalFriendlyObstruction> friendlyObstructions)voidshow()voidloadBidTransaction(AdUnitConfiguration adConfiguration, BidResponse bidResponse)voidloadVideoTransaction(AdUnitConfiguration adConfiguration, String vastXml)-
-
Constructor Detail
-
AdViewManager
AdViewManager(Context context, AdViewManagerListener adViewListener, ViewGroup adView, InterstitialManager interstitialManager)
-
-
Method Detail
-
getAdConfiguration
AdUnitConfiguration getAdConfiguration()
-
onFetchingCompleted
void onFetchingCompleted(Transaction transaction)
Is called when TransactionManager has finished the fetching process.In case of success, the transaction represents the loaded transaction.
- Parameters:
transaction- successful transaction
-
onFetchingFailed
void onFetchingFailed(AppstockAdException exception)
In case of failure, the error should be not null and contains the description of the issue
- Parameters:
exception- used to inform the listener in case something is wrong
-
creativeWasClicked
void creativeWasClicked(AbstractCreative creative, String url)
Is called when ad's content is rendered in the displayed view.
-
creativeInterstitialDidClose
void creativeInterstitialDidClose(AbstractCreative creative)
Is called when user closes the creatives clickthrough.
-
creativeDidExpand
void creativeDidExpand(AbstractCreative creative)
-
creativeDidCollapse
void creativeDidCollapse(AbstractCreative creative)
-
creativeInterstitialDialogShown
void creativeInterstitialDialogShown(ViewGroup rootViewGroup)
-
creativeMuted
void creativeMuted(AbstractCreative creative)
-
creativeUnMuted
void creativeUnMuted(AbstractCreative creative)
-
creativePaused
void creativePaused(AbstractCreative creative)
-
creativeResumed
void creativeResumed(AbstractCreative creative)
-
creativeDidComplete
void creativeDidComplete(AbstractCreative creative)
Is called when creative finish its lifecycle.
-
resetTransactionState
void resetTransactionState()
-
hide
void hide()
-
setAdVisibility
void setAdVisibility(int visibility)
-
isAutoDisplayOnLoad
boolean isAutoDisplayOnLoad()
-
destroy
void destroy()
-
pause
void pause()
-
resume
void resume()
-
mute
void mute()
-
unmute
void unmute()
-
isNotShowingEndCard
boolean isNotShowingEndCard()
-
hasEndCard
boolean hasEndCard()
-
hasNextCreative
boolean hasNextCreative()
-
updateAdView
void updateAdView(View view)
-
trackVideoStateChange
void trackVideoStateChange(InternalPlayerState state)
-
canShowFullScreen
boolean canShowFullScreen()
-
returnFromVideo
void returnFromVideo(View callingView)
-
isPlaying
boolean isPlaying()
-
isInterstitialClosed
boolean isInterstitialClosed()
-
trackCloseEvent
void trackCloseEvent()
-
getMediaDuration
long getMediaDuration()
-
getSkipOffset
long getSkipOffset()
-
addObstructions
void addObstructions(Array<InternalFriendlyObstruction> friendlyObstructions)
-
show
void show()
-
loadBidTransaction
void loadBidTransaction(AdUnitConfiguration adConfiguration, BidResponse bidResponse)
-
loadVideoTransaction
void loadVideoTransaction(AdUnitConfiguration adConfiguration, String vastXml)
-
-
-
-