Class POBRenderer
-
- All Implemented Interfaces:
public class POBRendererHelper class to create renderer.
-
-
Constructor Summary
Constructors Constructor Description POBRenderer()
-
Method Summary
Modifier and Type Method Description static POBBannerRenderinggetBannerRenderer(@NonNull() Context context, int expiryTimeout)Method to get Renderer for Banner Ad static POBVideoRenderingvideoRenderer(@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 POBVideoRenderingvideoRenderer(@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 POBBannerRenderingbannerRenderer(@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 POBInterstitialRenderergetInterstitialRenderer(@NonNull() Context context, @NonNull() POBBid bid)To get Renderer for Interstitial Ad -
-
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 typedescriptor- the ad descriptorexpiryTimeout- timeout for ad expiryadFormat- 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 typedescriptor- the ad descriptor containing bid informationexpiryTimeout- the expiry timeout in millisecondsadFormat- the ad format typelandingPageCallback- 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 typeplacement- the placement of type string which can be inline/interstitialrenderingTimeout- the rendering timeout in secondsrendererId- the renderer hash code used later by POBFullscreenActivity to identify associated renderer- Returns:
reference of POBBannerRendering
-
getInterstitialRenderer
@NonNull() static POBInterstitialRenderer getInterstitialRenderer(@NonNull() Context context, @NonNull() POBBid bid)
To get Renderer for Interstitial Ad
- Parameters:
context- provide activity context- Returns:
reference of POBInterstitialRendering
-
-
-
-