public class POBBannerRenderer
extends java.lang.Object
implements com.pubmatic.sdk.common.ui.POBBannerRendering, com.pubmatic.sdk.common.base.POBAdRendererListener, com.pubmatic.sdk.video.renderer.POBVideoRenderingListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
POBBannerRenderer.RendererBuilder
Interface builds the Banner Renderer.
|
| Constructor and Description |
|---|
POBBannerRenderer(POBBannerRenderer.RendererBuilder builder)
Proxy Banner Renderer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Cleans up internal state of renderer.
|
void |
invalidateExpiration() |
void |
notifyAdEvent(com.pubmatic.sdk.common.POBDataType.POBVideoAdEventType event) |
void |
onAdExpired() |
void |
onAdInteractionStarted()
Notifies ad interaction onStart or ad open
|
void |
onAdInteractionStopped()
Notifies ad interaction stopped or ad closed
|
void |
onAdReadyToRefresh(int interval) |
void |
onAdRender(android.view.View view,
com.pubmatic.sdk.common.base.POBAdDescriptor descriptor)
Resetting current scheduler and notifies rendering is about to happen.
|
void |
onAdRenderingFailed(com.pubmatic.sdk.common.POBError error)
Resetting current scheduler and notifies ad renderer is failed to load ad.
|
void |
onAdUnload()
Notifies onAdUnload called on current renderer
|
void |
onLeavingApplication()
Notifies ad is leaving the app
|
void |
onReadyToExecuteTrackers() |
void |
onRenderAdClick()
Notifies click is about to happen on current renderer
|
void |
onSkipOptionUpdate(boolean isEnable) |
void |
renderAd(com.pubmatic.sdk.common.base.POBAdDescriptor descriptor)
Starts rendering banner ad with provided descriptor object
|
void |
setAdRendererListener(com.pubmatic.sdk.common.base.POBAdRendererListener listener)
Sets the renderer listener to get notification of rendering events.
|
public POBBannerRenderer(@NonNull
POBBannerRenderer.RendererBuilder builder)
builder - the builder is reference of RendererBuilderpublic void renderAd(@NonNull
com.pubmatic.sdk.common.base.POBAdDescriptor descriptor)
renderAd in interface com.pubmatic.sdk.common.ui.POBBannerRenderingdescriptor - banner ad descriptorpublic void setAdRendererListener(@Nullable
com.pubmatic.sdk.common.base.POBAdRendererListener listener)
setAdRendererListener in interface com.pubmatic.sdk.common.ui.POBBannerRenderinglistener - reference of ad renderer listenerpublic void destroy()
destroy in interface com.pubmatic.sdk.common.ui.POBBannerRenderingpublic void invalidateExpiration()
invalidateExpiration in interface com.pubmatic.sdk.common.ui.POBBannerRenderingpublic void onAdRender(@NonNull
android.view.View view,
@Nullable
com.pubmatic.sdk.common.base.POBAdDescriptor descriptor)
onAdRender in interface com.pubmatic.sdk.common.base.POBAdRendererListenerview - Rendered viewdescriptor - Ad descriptor provided in renderAd()public void onAdRenderingFailed(@NonNull
com.pubmatic.sdk.common.POBError error)
onAdRenderingFailed in interface com.pubmatic.sdk.common.base.POBAdRendererListenererror - Error object defines the failure causepublic void onRenderAdClick()
onRenderAdClick in interface com.pubmatic.sdk.common.base.POBAdRendererListenerpublic void onAdReadyToRefresh(int interval)
onAdReadyToRefresh in interface com.pubmatic.sdk.common.base.POBAdRendererListenerpublic void onAdInteractionStarted()
onAdInteractionStarted in interface com.pubmatic.sdk.common.base.POBAdRendererListenerpublic void onAdInteractionStopped()
onAdInteractionStopped in interface com.pubmatic.sdk.common.base.POBAdRendererListenerpublic void onAdUnload()
onAdUnload in interface com.pubmatic.sdk.common.base.POBAdRendererListenerpublic void onLeavingApplication()
onLeavingApplication in interface com.pubmatic.sdk.common.base.POBAdRendererListenerpublic void onAdExpired()
onAdExpired in interface com.pubmatic.sdk.common.base.POBAdRendererListenerpublic void onReadyToExecuteTrackers()
onReadyToExecuteTrackers in interface com.pubmatic.sdk.common.base.POBAdRendererListenerpublic void notifyAdEvent(@NonNull
com.pubmatic.sdk.common.POBDataType.POBVideoAdEventType event)
notifyAdEvent in interface com.pubmatic.sdk.video.renderer.POBVideoRenderingListenerpublic void onSkipOptionUpdate(boolean isEnable)
onSkipOptionUpdate in interface com.pubmatic.sdk.video.renderer.POBVideoRenderingListener