Package com.pubmatic.sdk.common.ui
Interface POBInterstitialRendering
-
- All Implemented Interfaces:
public interface POBInterstitialRenderingInterstitial ad rendering interface, implement these methods to write custom ad renderer
-
-
Method Summary
Modifier and Type Method Description abstract voidrenderAd(@NonNull() POBAdDescriptor descriptor)It starts the rendering of the interstitial with the provided ad descriptor. abstract voidsetAdRendererListener(@Nullable() POBInterstitialRendererListener listener)Sets the ad renderer listener abstract voidsetVideoAdEventListener(@Nullable() POBVideoAdEventListener listener)Sets the instance of POBVideoAdEventListener to get the callback for VAST based video events. abstract voidshow(int requestedOrientation)Request to show the interstitial ad with provided orientation. abstract voiddestroy()Cleans the internal state of renderer, after this call, object is not expected be used again. -
-
Method Detail
-
renderAd
abstract void renderAd(@NonNull() POBAdDescriptor descriptor)
It starts the rendering of the interstitial with the provided ad descriptor.
- Parameters:
descriptor- ad descriptor
-
setAdRendererListener
abstract void setAdRendererListener(@Nullable() POBInterstitialRendererListener listener)
Sets the ad renderer listener
- Parameters:
listener- ad renderer listener
-
setVideoAdEventListener
abstract void setVideoAdEventListener(@Nullable() POBVideoAdEventListener listener)
Sets the instance of POBVideoAdEventListener to get the callback for VAST based video events. Renderer which does not render VAST videos in Interstitial, can leave this method empty.
- Parameters:
listener- Instance of POBVideoAdEventListener
-
show
abstract void show(int requestedOrientation)
Request to show the interstitial ad with provided orientation. Expected argument values are: 0 for SCREEN_ORIENTATION_PORTRAIT 1 for SCREEN_ORIENTATION_SENSOR_LANDSCAPE
- Parameters:
requestedOrientation- int value for orientation
-
destroy
abstract void destroy()
Cleans the internal state of renderer, after this call, object is not expected be used again.
-
-
-
-