Class POBRenderer

  • All Implemented Interfaces:

    
    public class POBRenderer
    
                        

    Helper class to create renderer.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      POBRenderer()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static POBBannerRendering getBannerRenderer(@NonNull() Context context, int expiryTimeout) Method to get Renderer for Banner Ad
      static POBVideoRendering videoRenderer(@NonNull() Context context, @NonNull() POBAdDescriptor descriptor, int expiryTimeout, @NonNull() POBAdFormat adFormat) Create Video renderer enabling skipability and exposure tracker based on placement type provided, max wrapper threshold time out is set to 3, linearity is set to linear along with it is registered to the video measurement provider.
      static POBVideoRendering videoRenderer(@NonNull() Context context, @NonNull() POBAdDescriptor descriptor, int expiryTimeout, @NonNull() POBAdFormat adFormat, @Nullable() POBLandingPageCallback landingPageCallback) Create Video renderer enabling skipability and exposure tracker based on ad format.
      static POBBannerRendering bannerRenderer(@NonNull() Context context, @NonNull() String placement, int renderingTimeout, int rendererId) Create Banner renderer with setting placement, base url along with it registered to the html measurement provider.
      static POBInterstitialRenderer getInterstitialRenderer(@NonNull() Context context, @NonNull() POBBid bid) To get Renderer for Interstitial Ad
      • Methods inherited from class java.lang.Object

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

      • POBRenderer

        POBRenderer()
    • Method Detail

      • getBannerRenderer

        @NonNull() static POBBannerRendering getBannerRenderer(@NonNull() Context context, int expiryTimeout)

        Method to get Renderer for Banner Ad

        Parameters:
        context - provide activity context
        Returns:

        reference of POBBannerRendering

      • videoRenderer

        @NonNull() static POBVideoRendering videoRenderer(@NonNull() Context context, @NonNull() POBAdDescriptor descriptor, int expiryTimeout, @NonNull() POBAdFormat adFormat)

        Create Video renderer enabling skipability and exposure tracker based on placement type provided, max wrapper threshold time out is set to 3, linearity is set to linear along with it is registered to the video measurement provider.

        Parameters:
        context - the context of activity type
        descriptor - the ad descriptor
        expiryTimeout - timeout for ad expiry
        adFormat - the ad format type
        Returns:

        instance of video renderer.

      • videoRenderer

        @NonNull() static POBVideoRendering videoRenderer(@NonNull() Context context, @NonNull() POBAdDescriptor descriptor, int expiryTimeout, @NonNull() POBAdFormat adFormat, @Nullable() POBLandingPageCallback landingPageCallback)

        Create Video renderer enabling skipability and exposure tracker based on ad format. Max wrapper threshold time out is set to 3, linearity is set to linear, and it is registered to the video measurement provider.

        Parameters:
        context - the context of activity type
        descriptor - the ad descriptor containing bid information
        expiryTimeout - the expiry timeout in milliseconds
        adFormat - the ad format type
        landingPageCallback - Optional callback invoked when video landing page is opened.
        Returns:

        instance of video renderer

      • bannerRenderer

        @Nullable() static POBBannerRendering bannerRenderer(@NonNull() Context context, @NonNull() String placement, int renderingTimeout, int rendererId)

        Create Banner renderer with setting placement, base url along with it registered to the html measurement provider.

        Parameters:
        context - the context of activity type
        placement - the placement of type string which can be inline/interstitial
        renderingTimeout - the rendering timeout in seconds
        rendererId - the renderer hash code used later by POBFullscreenActivity to identify associated renderer
        Returns:

        reference of POBBannerRendering