Class POBInterstitialEvent
-
- All Implemented Interfaces:
public abstract class POBInterstitialEvent extends POBBaseEventThe OpenWrap interstitial custom event abstract class. Your interstitial custom event handler must implement this class to communicate with ad server SDK.
-
-
Constructor Summary
Constructors Constructor Description POBInterstitialEvent()
-
Method Summary
Modifier and Type Method Description abstract voidsetEventListener(@NonNull() POBInterstitialEventListener listener)OpenWrap SDK calls this method to pass the EventListener to publisher. POBInterstitialRenderinggetRenderer(@Nullable() String partnerName)Optional method to provide implementation of POBInterstitialRendering interface to render ad in custom rendering component. voidshow()OpenWrap SDK will call this method when publisher app calls show on POBInterstitial. POBFullScreenAdInteractionListenergetAdInteractionListener()Returns the instance of the FullScreen Ad interaction listener. -
-
Method Detail
-
setEventListener
abstract void setEventListener(@NonNull() POBInterstitialEventListener listener)
OpenWrap SDK calls this method to pass the EventListener to publisher. Publisher can refer the listener for passing the primary SDK's event to OpenWrap SDK.
- Parameters:
listener- event listener
-
getRenderer
@Nullable() POBInterstitialRendering getRenderer(@Nullable() String partnerName)
Optional method to provide implementation of POBInterstitialRendering interface to render ad in custom rendering component. If not implemented i.e. returning null, the OpenWrap SDK internally creates its own renderer capable of handling simple HTML and MRAID creative
- Parameters:
partnerName- Winning partner name- Returns:
Renderer instance to render creative
-
show
@MainThread() void show()
OpenWrap SDK will call this method when publisher app calls show on POBInterstitial. Consumer of this method should call show() of primary ad server SDK.
Note: This method must be invoked from Main thread.
-
getAdInteractionListener
@Nullable() POBFullScreenAdInteractionListener getAdInteractionListener()
Returns the instance of the FullScreen Ad interaction listener. Implementation of this method is required for the Handler class integrated using mediation waterfall like MoPub event handlers for Interstitial.
- Returns:
instance of the FullScreen Ad interaction listener
-
-
-
-