-
- All Implemented Interfaces:
-
com.appstock.sdk.rendering.interstitial.InterstitialManagerVideoDelegate,com.appstock.sdk.rendering.listeners.VideoCreativeViewListener,com.appstock.sdk.rendering.video.vast.VASTInterface
public class VideoCreative extends VideoCreativeProtocol implements VideoCreativeViewListener, InterstitialManagerVideoDelegate
-
-
Constructor Summary
Constructors Constructor Description VideoCreative(Context context, VideoCreativeModel model, OmAdSessionManager omAdSessionManager, InterstitialManager interstitialManager)
-
Method Summary
Modifier and Type Method Description voidload()Specific creative load. voiddisplay()Specific creative display. voidskip()the user activated a skip control to skip the creative, which is a different control than the oneused to close the creative. voidonReadyForDisplay()voidonDisplayCompleted()voidonFailure(AppstockAdException error)voidonEvent(VideoAdEvent.Event trackingEvent)voidtrackAdLoaded()Executed after processing transaction and creating OmAdSession in AdViewManager voidonVolumeChanged(float volume)voidonPlayerStateChanged(InternalPlayerState state)booleanisInterstitialClosed()longgetMediaDuration()voidhandleAdWindowFocus()Executed when window gains focus (e.g. voidresume()Resume creative execution booleanisPlaying()voidhandleAdWindowNoFocus()Executed when window loses focus (e.g. voidpause()Pause creative execution voidmute()Mute creative voidunmute()UnMute creative voidcreateOmAdSession()Create OM session for specific creative. voidstartViewabilityTracker()voiddestroy()Specific creative cleanup. booleanisDisplay()booleanisVideo()booleanisResolved()booleanisEndCard()voidonVideoInterstitialClosed()longgetVideoSkipOffset()voidtrackVideoEvent(VideoAdEvent.Event event)VideoAdEvent. VideoCreativeModelgetCreativeModel()-
Methods inherited from class com.appstock.sdk.rendering.video.VideoCreativeProtocol
close, closeLinear, collapse, exitFullScreen, expand, fullScreen, onWindowFocusChanged, orientationChanged, rewind, touch -
Methods inherited from class com.appstock.sdk.rendering.models.AbstractCreative
addOmFriendlyObstruction, changeVisibilityTrackerState, getCreativeModel, getCreativeView, getCreativeViewListener, getResolutionListener, isBuiltInVideo, setCreativeView, setCreativeViewListener, setResolutionListener, trackVideoStateChange, updateAdView -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
VideoCreative
VideoCreative(Context context, VideoCreativeModel model, OmAdSessionManager omAdSessionManager, InterstitialManager interstitialManager)
-
-
Method Detail
-
load
void load()
Specific creative load.
-
display
void display()
Specific creative display.
-
skip
void skip()
the user activated a skip control to skip the creative, which is a different control than the oneused to close the creative.
-
onReadyForDisplay
void onReadyForDisplay()
-
onDisplayCompleted
void onDisplayCompleted()
-
onFailure
void onFailure(AppstockAdException error)
-
onEvent
void onEvent(VideoAdEvent.Event trackingEvent)
-
trackAdLoaded
void trackAdLoaded()
Executed after processing transaction and creating OmAdSession in AdViewManager
-
onVolumeChanged
void onVolumeChanged(float volume)
-
onPlayerStateChanged
void onPlayerStateChanged(InternalPlayerState state)
-
isInterstitialClosed
boolean isInterstitialClosed()
-
getMediaDuration
long getMediaDuration()
-
handleAdWindowFocus
void handleAdWindowFocus()
Executed when window gains focus (e.g. when app is resumed from background)Used by AdViewManager to handle refresh on view visibility change
-
resume
void resume()
Resume creative execution
-
isPlaying
boolean isPlaying()
-
handleAdWindowNoFocus
void handleAdWindowNoFocus()
Executed when window loses focus (e.g. when app is going in background).Used by AdViewManager to handle refresh on view visibility change
-
pause
void pause()
Pause creative execution
-
mute
void mute()
Mute creative
-
unmute
void unmute()
UnMute creative
-
createOmAdSession
void createOmAdSession()
Create OM session for specific creative. Each creative must create appropriate OM AdSession (e.g. for HTML and Native)
-
startViewabilityTracker
void startViewabilityTracker()
-
destroy
void destroy()
Specific creative cleanup. Creative must cleanup it's internal state.
-
isDisplay
boolean isDisplay()
-
isVideo
boolean isVideo()
-
isResolved
boolean isResolved()
-
isEndCard
boolean isEndCard()
-
onVideoInterstitialClosed
void onVideoInterstitialClosed()
-
getVideoSkipOffset
long getVideoSkipOffset()
-
trackVideoEvent
void trackVideoEvent(VideoAdEvent.Event event)
VideoAdEvent.Event to track
-
getCreativeModel
@NonNull() VideoCreativeModel getCreativeModel()
-
-
-
-