-
- All Implemented Interfaces:
-
com.appstock.sdk.rendering.interstitial.InterstitialManagerDisplayDelegate,com.appstock.sdk.rendering.listeners.WebViewDelegate,java.lang.Comparable
public class HTMLCreative extends AbstractCreative implements WebViewDelegate, InterstitialManagerDisplayDelegate, Comparable
-
-
Field Summary
Fields Modifier and Type Field Description private AppstockWebViewBasetwoPartNewWebViewBaseprivate booleanisEndCard
-
Constructor Summary
Constructors Constructor Description HTMLCreative(Context context, CreativeModel model, OmAdSessionManager omAdSessionManager, InterstitialManager interstitialManager)
-
Method Summary
Modifier and Type Method Description voidsetTwoPartNewWebViewBase(AppstockWebViewBase twoPartNewWebViewBase)booleanisEndCard()booleanisDisplay()booleanisVideo()voidload()Specific creative load. voiddisplay()Specific creative display. voidcreateOmAdSession()Create OM session for specific creative. voidtrackAdLoaded()Executed after processing transaction and creating OmAdSession in AdViewManager voidstartViewabilityTracker()voidhandleAdWindowFocus()Executed when window gains focus (e.g. voidhandleAdWindowNoFocus()Executed when window loses focus (e.g. voidwebViewReadyToDisplay()voidwebViewFailedToLoad(AppstockAdException error)voidwebViewShouldOpenExternalLink(String url)voidwebViewShouldOpenMRAIDLink(String url)voidinterstitialAdClosed()Close of an interstitial ad voidinterstitialDialogShown(ViewGroup rootViewGroup)intcompareTo(Object creative)AppstockWebViewBasegetCreativeView()voidmraidAdExpanded()booleanisResolved()voiddestroy()Specific creative cleanup. voidmraidAdCollapsed()voidhandleMRAIDEventsInCreative(MraidEvent mraidEvent, WebViewBase oldWebViewBase)-
Methods inherited from class com.appstock.sdk.rendering.models.AbstractCreative
addOmFriendlyObstruction, changeVisibilityTrackerState, getCreativeModel, getCreativeView, getCreativeViewListener, getMediaDuration, getResolutionListener, getVideoSkipOffset, isBuiltInVideo, isInterstitialClosed, isPlaying, mute, pause, resume, setCreativeView, setCreativeViewListener, setResolutionListener, trackVideoEvent, trackVideoStateChange, unmute, updateAdView -
Methods inherited from class java.lang.Comparable
compareTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTMLCreative
HTMLCreative(Context context, CreativeModel model, OmAdSessionManager omAdSessionManager, InterstitialManager interstitialManager)
-
-
Method Detail
-
setTwoPartNewWebViewBase
void setTwoPartNewWebViewBase(AppstockWebViewBase twoPartNewWebViewBase)
-
isEndCard
boolean isEndCard()
-
isDisplay
boolean isDisplay()
-
isVideo
boolean isVideo()
-
load
void load()
Specific creative load.
-
display
void display()
Specific creative display.
-
createOmAdSession
void createOmAdSession()
Create OM session for specific creative. Each creative must create appropriate OM AdSession (e.g. for HTML and Native)
-
trackAdLoaded
void trackAdLoaded()
Executed after processing transaction and creating OmAdSession in AdViewManager
-
startViewabilityTracker
void startViewabilityTracker()
-
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
-
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
-
webViewReadyToDisplay
void webViewReadyToDisplay()
-
webViewFailedToLoad
void webViewFailedToLoad(AppstockAdException error)
-
webViewShouldOpenExternalLink
void webViewShouldOpenExternalLink(String url)
-
webViewShouldOpenMRAIDLink
void webViewShouldOpenMRAIDLink(String url)
-
interstitialAdClosed
void interstitialAdClosed()
Close of an interstitial ad
-
interstitialDialogShown
void interstitialDialogShown(ViewGroup rootViewGroup)
-
getCreativeView
AppstockWebViewBase getCreativeView()
-
mraidAdExpanded
void mraidAdExpanded()
-
isResolved
boolean isResolved()
-
destroy
void destroy()
Specific creative cleanup. Creative must cleanup it's internal state.
-
mraidAdCollapsed
void mraidAdCollapsed()
-
handleMRAIDEventsInCreative
void handleMRAIDEventsInCreative(MraidEvent mraidEvent, WebViewBase oldWebViewBase)
-
-
-
-