Class POBInterstitialEvent

  • All Implemented Interfaces:

    
    public abstract class POBInterstitialEvent
    extends POBBaseEvent
                        

    The OpenWrap interstitial custom event abstract class. Your interstitial custom event handler must implement this class to communicate with ad server SDK.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void setEventListener(@NonNull() POBInterstitialEventListener listener) OpenWrap SDK calls this method to pass the EventListener to publisher.
      POBInterstitialRendering getRenderer(@Nullable() String partnerName) Optional method to provide implementation of POBInterstitialRendering interface to render ad in custom rendering component.
      void show() OpenWrap SDK will call this method when publisher app calls show on POBInterstitial.
      POBFullScreenAdInteractionListener getAdInteractionListener() Returns the instance of the FullScreen Ad interaction listener.
      • Methods inherited from class com.pubmatic.sdk.openwrap.core.POBBaseEvent

        destroy, requestAd
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • POBInterstitialEvent

        POBInterstitialEvent()
    • 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