public class POBRewardedAdRenderer
extends java.lang.Object
implements com.pubmatic.sdk.common.ui.POBRewardedAdRendering, com.pubmatic.sdk.common.base.POBAdRendererListener, com.pubmatic.sdk.video.renderer.POBVideoRenderingListener, com.pubmatic.sdk.video.renderer.POBVideoSkipEventListener, com.pubmatic.sdk.common.ui.POBFullScreenActivityBackPressListener
| Constructor and Description |
|---|
POBRewardedAdRenderer(android.content.Context context,
int expiryTimeout,
POBSkipConfirmationInfo skipConfirmationInfo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy all the allocated objects.
|
void |
notifyAdEvent(com.pubmatic.sdk.common.POBDataType.POBVideoAdEventType event)
Callback of an video event occurred.
|
void |
onAdAboutToSkip() |
void |
onAdExpired()
This method is called to notify ad expiration
|
void |
onAdInteractionStarted()
Notifies about the ad interaction start.
|
void |
onAdInteractionStopped()
Notifies about the ad interaction stop.
|
void |
onAdReadyToRefresh(int interval) |
void |
onAdRender(android.view.View view,
com.pubmatic.sdk.common.base.POBAdDescriptor descriptor)
This method gets called if rendering of ad gets successful
|
void |
onAdRenderingFailed(com.pubmatic.sdk.common.POBError error)
This method gets called if rendering of ad failed
|
void |
onAdUnload()
This method is called to notify ad is unloaded itself using MRIAD protocol
|
void |
onBackPressed() |
void |
onLeavingApplication()
This method is called to notify the app leaving state
|
void |
onReadyToExecuteTrackers() |
void |
onRenderAdClick()
Notifies about the click event on the rendered view
|
void |
onRenderProcessGone() |
void |
onSkipOptionUpdate(boolean isEnable)
Callback of back button pressed.
|
void |
renderAd(com.pubmatic.sdk.common.base.POBAdDescriptor descriptor)
Initiates ad rendering.
|
void |
setAdRendererListener(com.pubmatic.sdk.common.ui.POBRewardedAdRendererListener rendererListener)
Setter for POBRewardedAdRendererListener to get callbacks from rewarded ad renderer.
|
void |
show()
Initiates rewarded ad show.
|
public POBRewardedAdRenderer(@NonNull
android.content.Context context,
int expiryTimeout,
@NonNull
POBSkipConfirmationInfo skipConfirmationInfo)
public void renderAd(@NonNull
com.pubmatic.sdk.common.base.POBAdDescriptor descriptor)
renderAd in interface com.pubmatic.sdk.common.ui.POBRewardedAdRenderingdescriptor - ad descriptorpublic void setAdRendererListener(@Nullable
com.pubmatic.sdk.common.ui.POBRewardedAdRendererListener rendererListener)
setAdRendererListener in interface com.pubmatic.sdk.common.ui.POBRewardedAdRenderingrendererListener - Instance of a class implementing POBRewardedAdRendererListenerpublic void show()
show in interface com.pubmatic.sdk.common.ui.POBRewardedAdRenderingpublic void destroy()
destroy in interface com.pubmatic.sdk.common.ui.POBRewardedAdRenderingpublic void notifyAdEvent(@NonNull
com.pubmatic.sdk.common.POBDataType.POBVideoAdEventType event)
notifyAdEvent in interface com.pubmatic.sdk.video.renderer.POBVideoRenderingListenerevent - Video event.public void onSkipOptionUpdate(boolean isEnable)
onSkipOptionUpdate in interface com.pubmatic.sdk.video.renderer.POBVideoRenderingListenerisEnable - boolean to tell if skip option is enabled or notpublic void onAdAboutToSkip()
onAdAboutToSkip in interface com.pubmatic.sdk.video.renderer.POBVideoSkipEventListenerpublic 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 onRenderProcessGone()
onRenderProcessGone in interface com.pubmatic.sdk.common.base.POBAdRendererListenerpublic void onBackPressed()
onBackPressed in interface com.pubmatic.sdk.common.ui.POBFullScreenActivityBackPressListener