Interface POBInterstitialRendering

  • All Implemented Interfaces:

    
    public interface POBInterstitialRendering
    
                        

    Interstitial ad rendering interface, implement these methods to write custom ad renderer

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void renderAd(@NonNull() POBAdDescriptor descriptor) It starts the rendering of the interstitial with the provided ad descriptor.
      abstract void setAdRendererListener(@Nullable() POBInterstitialRendererListener listener) Sets the ad renderer listener
      abstract void setVideoAdEventListener(@Nullable() POBVideoAdEventListener listener) Sets the instance of POBVideoAdEventListener to get the callback for VAST based video events.
      abstract void show(int requestedOrientation) Request to show the interstitial ad with provided orientation.
      abstract void destroy() Cleans the internal state of renderer, after this call, object is not expected be used again.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • renderAd

         abstract void renderAd(@NonNull() POBAdDescriptor descriptor)

        It starts the rendering of the interstitial with the provided ad descriptor.

        Parameters:
        descriptor - ad descriptor
      • setVideoAdEventListener

         abstract void setVideoAdEventListener(@Nullable() POBVideoAdEventListener listener)

        Sets the instance of POBVideoAdEventListener to get the callback for VAST based video events. Renderer which does not render VAST videos in Interstitial, can leave this method empty.

        Parameters:
        listener - Instance of POBVideoAdEventListener
      • show

         abstract void show(int requestedOrientation)

        Request to show the interstitial ad with provided orientation. Expected argument values are: 0 for SCREEN_ORIENTATION_PORTRAIT 1 for SCREEN_ORIENTATION_SENSOR_LANDSCAPE

        Parameters:
        requestedOrientation - int value for orientation
      • destroy

         abstract void destroy()

        Cleans the internal state of renderer, after this call, object is not expected be used again.