Class POBInterstitialRenderer
-
- All Implemented Interfaces:
-
com.pubmatic.sdk.common.base.POBAdRendererListener,com.pubmatic.sdk.common.ui.POBInterstitialRendering,com.pubmatic.sdk.video.renderer.POBVideoRenderingListener,com.pubmatic.sdk.webrendering.mraid.POBUseCustomCloseListener
public class POBInterstitialRenderer implements POBInterstitialRendering, POBVideoRenderingListener, POBAdRendererListener, POBUseCustomCloseListenerClass responsible for handling the interstitial rendering(web/video)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePOBInterstitialRenderer.RendererBuilderInterface definition builds the Renderer and FullScreen dialog for Interstitial Ad.
-
Constructor Summary
Constructors Constructor Description POBInterstitialRenderer(Context appContext, POBInterstitialRenderer.RendererBuilder rendererBuilder)Proxy Interstitial Renderer.
-
Method Summary
Modifier and Type Method Description voidrenderAd(@NonNull() POBAdDescriptor descriptor)voidsetAdRendererListener(@Nullable() POBInterstitialRendererListener listener)voidshow(int requestedOrientation)voiddestroy()voidonAdRender(@NonNull() View view, @Nullable() POBAdDescriptor descriptor)voidonAdRenderingFailed(@NonNull() POBError error)voidonRenderAdClick()voidonAdReadyToRefresh(int interval)voidonAdInteractionStarted()voidonAdInteractionStopped()voidonAdUnload()voidonLeavingApplication()voidonAdExpired()voidonRenderProcessGone()voidonAdImpression()voidnotifyAdEvent(@NonNull() POBDataType.POBVideoAdEventType event)voidonSkipOptionUpdate(boolean isEnable)voiduseCustomClose(boolean value)Indicates whether custom close button in creative is enabled or not. voidsetVideoAdEventListener(@Nullable() POBVideoAdEventListener listener)voidsetTrackerHandler(@NonNull() POBTrackerHandler trackerHandler)Set the tracker handler to send click trackers. voidsetWatermark(@NonNull() String watermark)Method to set the watermark -
-
Constructor Detail
-
POBInterstitialRenderer
POBInterstitialRenderer(Context appContext, POBInterstitialRenderer.RendererBuilder rendererBuilder)
Proxy Interstitial Renderer.- Parameters:
appContext- the application contextrendererBuilder- the reference of RendererBuilder
-
-
Method Detail
-
setAdRendererListener
void setAdRendererListener(@Nullable() POBInterstitialRendererListener listener)
-
show
void show(int requestedOrientation)
-
destroy
void destroy()
-
onAdRender
void onAdRender(@NonNull() View view, @Nullable() POBAdDescriptor descriptor)
-
onAdRenderingFailed
void onAdRenderingFailed(@NonNull() POBError error)
-
onRenderAdClick
void onRenderAdClick()
-
onAdReadyToRefresh
void onAdReadyToRefresh(int interval)
-
onAdInteractionStarted
void onAdInteractionStarted()
-
onAdInteractionStopped
void onAdInteractionStopped()
-
onAdUnload
void onAdUnload()
-
onLeavingApplication
void onLeavingApplication()
-
onAdExpired
void onAdExpired()
-
onRenderProcessGone
void onRenderProcessGone()
-
onAdImpression
void onAdImpression()
-
notifyAdEvent
void notifyAdEvent(@NonNull() POBDataType.POBVideoAdEventType event)
-
onSkipOptionUpdate
void onSkipOptionUpdate(boolean isEnable)
-
useCustomClose
void useCustomClose(boolean value)
Indicates whether custom close button in creative is enabled or not. In case it is enabled, we are handling the skip button and timer accordingly.
- Parameters:
value- A boolean indicating whether the custom close button is enabled or not.
-
setVideoAdEventListener
void setVideoAdEventListener(@Nullable() POBVideoAdEventListener listener)
-
setTrackerHandler
void setTrackerHandler(@NonNull() POBTrackerHandler trackerHandler)
Set the tracker handler to send click trackers. Note: Instance of POBTrackerHandler is only required for the special use case of click of custom product page.
- Parameters:
trackerHandler- Instance of POBTrackerHandler
-
setWatermark
void setWatermark(@NonNull() String watermark)
Method to set the watermark
- Parameters:
watermark- watermark
-
-
-
-