-
- All Implemented Interfaces:
-
com.appstock.sdk.rendering.video.vast.VASTInterface
public abstract class VideoCreativeProtocol extends AbstractCreative implements VASTInterface
-
-
Constructor Summary
Constructors Constructor Description VideoCreativeProtocol(Context context, CreativeModel model, OmAdSessionManager omAdSessionManager, InterstitialManager interstitialManager)
-
Method Summary
Modifier and Type Method Description voiddisplay()Specific creative display. voidresume()Resume creative execution voidpause()Pause creative execution voidexpand()Per IAB: the user activated a control to expand the creative. voidfullScreen()Per IAB: the user activated a control to extend the video player to the edges of the viewer’sscreen. voidcollapse()the user activated a control to reduce the creative to its original dimensions. voidexitFullScreen()the user activated the control to reduce video player size to original dimensions. voidmute()Mute creative voidunmute()UnMute creative voidclose()the user clicked the close button on the creative. voidcloseLinear()the user clicked the close button on the creative. voidskip()the user activated a skip control to skip the creative, which is a different control than the oneused to close the creative. voidrewind()the user activated the rewind control to access a previous point in the creative timeline. voidtouch()the user simply touched the video player in a non-specific region of the player (touched an empty area of the video, not a widget or button). voidorientationChanged(int orientation)the user made an orientation change by rotating the device. voidonWindowFocusChanged(boolean hasFocus)the user made a window focus change, such as leaving the activity, pressing back, invoking Recents, or returning from one of these states back to the video player. -
Methods inherited from class com.appstock.sdk.rendering.models.AbstractCreative
addOmFriendlyObstruction, changeVisibilityTrackerState, createOmAdSession, destroy, getCreativeModel, getCreativeView, getCreativeViewListener, getMediaDuration, getResolutionListener, getVideoSkipOffset, handleAdWindowFocus, handleAdWindowNoFocus, isBuiltInVideo, isDisplay, isEndCard, isInterstitialClosed, isPlaying, isResolved, isVideo, load, setCreativeView, setCreativeViewListener, setResolutionListener, startViewabilityTracker, trackAdLoaded, trackVideoEvent, trackVideoStateChange, updateAdView -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
VideoCreativeProtocol
VideoCreativeProtocol(Context context, CreativeModel model, OmAdSessionManager omAdSessionManager, InterstitialManager interstitialManager)
-
-
Method Detail
-
display
void display()
Specific creative display.
-
resume
void resume()
Resume creative execution
-
pause
void pause()
Pause creative execution
-
expand
void expand()
Per IAB: the user activated a control to expand the creative.
-
fullScreen
void fullScreen()
Per IAB: the user activated a control to extend the video player to the edges of the viewer’sscreen.
-
collapse
void collapse()
the user activated a control to reduce the creative to its original dimensions.
-
exitFullScreen
void exitFullScreen()
the user activated the control to reduce video player size to original dimensions.
-
mute
void mute()
Mute creative
-
unmute
void unmute()
UnMute creative
-
close
void close()
the user clicked the close button on the creative.
-
closeLinear
void closeLinear()
the user clicked the close button on the creative. The name of this event distinguishes itfrom the existing “close” event described in the 2008 IAB Digital Video In-Stream Ad MetricsDefinitions, which defines the “close” metric as applying to non-linear ads only. The “closeLinear” eventextends the “close” event for use in Linear creative.
-
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.
-
rewind
void rewind()
the user activated the rewind control to access a previous point in the creative timeline.
-
touch
void touch()
the user simply touched the video player in a non-specific region of the player (touched an empty area of the video, not a widget or button).
-
orientationChanged
void orientationChanged(int orientation)
the user made an orientation change by rotating the device. The orientation of Configuration.ORIENTATION_LANDSCAPE or Configuration.ORIENTATION_PORTRAIT is passed in.
-
onWindowFocusChanged
void onWindowFocusChanged(boolean hasFocus)
the user made a window focus change, such as leaving the activity, pressing back, invoking Recents, or returning from one of these states back to the video player. This will allow for internal threads to pause and resume correctly.
-
-
-
-