Package com.pubmatic.sdk.common.base
Interface POBAdRendererListener
-
- All Implemented Interfaces:
@MainThread() public interface POBAdRendererListener
Interface provides the callback for rendering events
-
-
Method Summary
Modifier and Type Method Description abstract voidonAdRender(@NonNull() View view, @Nullable() POBAdDescriptor descriptor)This method gets called if rendering of ad gets successful abstract voidonAdRenderingFailed(@NonNull() POBError error)This method gets called if rendering of ad failed abstract voidonRenderAdClick()Notifies about the click event on the rendered view abstract voidonAdReadyToRefresh(int interval)Notifies about that ad is ready to refresh after is rendered successfully abstract voidonAdInteractionStarted()Notifies the callback for interaction started on the ad creative like Internal browser is opened. abstract voidonAdInteractionStopped()Notifies the callback for interaction stoped on the ad creative like Internal browser is closed. abstract voidonAdUnload()This method is called to notify ad is unloaded itself using MRIAD protocol abstract voidonLeavingApplication()This method is called to notify the app leaving state abstract voidonAdExpired()This method is called to notify ad expiration abstract voidonRenderProcessGone()Notifies rendering process terminated. abstract voidonAdImpression()Notifies ad impression -
-
Method Detail
-
onAdRender
abstract void onAdRender(@NonNull() View view, @Nullable() POBAdDescriptor descriptor)
This method gets called if rendering of ad gets successful
- Parameters:
view- Rendered viewdescriptor- Ad descriptor provided in renderAd()
-
onAdRenderingFailed
abstract void onAdRenderingFailed(@NonNull() POBError error)
This method gets called if rendering of ad failed
- Parameters:
error- Error object defines the failure cause
-
onRenderAdClick
abstract void onRenderAdClick()
Notifies about the click event on the rendered view
-
onAdReadyToRefresh
abstract void onAdReadyToRefresh(int interval)
Notifies about that ad is ready to refresh after is rendered successfully
- Parameters:
interval- refresh time interval in sec
-
onAdInteractionStarted
abstract void onAdInteractionStarted()
Notifies the callback for interaction started on the ad creative like Internal browser is opened.
-
onAdInteractionStopped
abstract void onAdInteractionStopped()
Notifies the callback for interaction stoped on the ad creative like Internal browser is closed.
-
onAdUnload
abstract void onAdUnload()
This method is called to notify ad is unloaded itself using MRIAD protocol
-
onLeavingApplication
abstract void onLeavingApplication()
This method is called to notify the app leaving state
-
onAdExpired
abstract void onAdExpired()
This method is called to notify ad expiration
-
onRenderProcessGone
abstract void onRenderProcessGone()
Notifies rendering process terminated.
-
onAdImpression
abstract void onAdImpression()
Notifies ad impression
-
-
-
-