Class POBBannerRenderer
-
- All Implemented Interfaces:
-
com.pubmatic.sdk.common.base.POBAdRendererListener,com.pubmatic.sdk.common.ui.POBBannerRendering,com.pubmatic.sdk.video.renderer.POBVideoRenderingListener
public class POBBannerRenderer implements POBBannerRendering, POBAdRendererListener, POBVideoRenderingListenerPOBBannerRenderer is responsible for rendering the banner ad creative.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePOBBannerRenderer.RendererBuilderInterface builds the Banner Renderer.
-
Constructor Summary
Constructors Constructor Description POBBannerRenderer(POBBannerRenderer.RendererBuilder builder)Proxy Banner Renderer.
-
Method Summary
Modifier and Type Method Description voidrenderAd(@NonNull() POBAdDescriptor descriptor)Starts rendering banner ad with provided descriptor object voidsetAdRendererListener(@Nullable() POBAdRendererListener listener)Sets the renderer listener to get notification of rendering events. voiddestroy()Cleans up internal state of renderer. voidinvalidateExpiration()voidonAdRender(@NonNull() View view, @Nullable() POBAdDescriptor descriptor)Resetting current scheduler and notifies rendering is about to happen. voidonAdRenderingFailed(@NonNull() POBError error)Resetting current scheduler and notifies ad renderer is failed to load ad. voidonRenderAdClick()Notifies click is about to happen on current renderer voidonAdReadyToRefresh(int interval)voidonAdInteractionStarted()Notifies ad interaction onStart or ad open voidonAdInteractionStopped()Notifies ad interaction stopped or ad closed voidonAdUnload()Notifies onAdUnload called on current renderer voidonLeavingApplication()Notifies ad is leaving the app voidonAdExpired()voidonRenderProcessGone()voidonAdImpression()voidnotifyAdEvent(@NonNull() POBDataType.POBVideoAdEventType event)voidonSkipOptionUpdate(boolean isEnable)voidsetWatermark(@Nullable() String watermark)Method to set the watermark -
-
Constructor Detail
-
POBBannerRenderer
POBBannerRenderer(POBBannerRenderer.RendererBuilder builder)
Proxy Banner Renderer.- Parameters:
builder- the builder is reference of RendererBuilder
-
-
Method Detail
-
renderAd
void renderAd(@NonNull() POBAdDescriptor descriptor)
Starts rendering banner ad with provided descriptor object
- Parameters:
descriptor- banner ad descriptor
-
setAdRendererListener
void setAdRendererListener(@Nullable() POBAdRendererListener listener)
Sets the renderer listener to get notification of rendering events.
- Parameters:
listener- reference of ad renderer listener
-
destroy
void destroy()
Cleans up internal state of renderer. Note: This method should be called from UI thread.
-
invalidateExpiration
void invalidateExpiration()
-
onAdRender
void onAdRender(@NonNull() View view, @Nullable() POBAdDescriptor descriptor)
Resetting current scheduler and notifies rendering is about to happen.
- Parameters:
view- Rendered viewdescriptor- Ad descriptor provided in renderAd()
-
onAdRenderingFailed
void onAdRenderingFailed(@NonNull() POBError error)
Resetting current scheduler and notifies ad renderer is failed to load ad.
- Parameters:
error- Error object defines the failure cause
-
onRenderAdClick
void onRenderAdClick()
Notifies click is about to happen on current renderer
-
onAdReadyToRefresh
void onAdReadyToRefresh(int interval)
-
onAdInteractionStarted
void onAdInteractionStarted()
Notifies ad interaction onStart or ad open
-
onAdInteractionStopped
void onAdInteractionStopped()
Notifies ad interaction stopped or ad closed
-
onAdUnload
void onAdUnload()
Notifies onAdUnload called on current renderer
-
onLeavingApplication
void onLeavingApplication()
Notifies ad is leaving the app
-
onAdExpired
void onAdExpired()
-
onRenderProcessGone
void onRenderProcessGone()
-
onAdImpression
void onAdImpression()
-
notifyAdEvent
void notifyAdEvent(@NonNull() POBDataType.POBVideoAdEventType event)
-
onSkipOptionUpdate
void onSkipOptionUpdate(boolean isEnable)
-
setWatermark
void setWatermark(@Nullable() String watermark)
Method to set the watermark
- Parameters:
watermark- watermark
-
-
-
-