public class POBDefaultInterstitialEventHandler extends java.lang.Object implements POBInterstitialEvent
| Constructor and Description |
|---|
POBDefaultInterstitialEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Method to do cleanup
|
com.pubmatic.sdk.common.ui.POBInterstitialRendering |
getRenderer(java.lang.String partnerName)
Optional method to provide implementation of POBInterstitialRendering interface to render ad
in custom rendering component.
|
void |
requestAd(POBBid bid)
Provide onOpenWrapPartnerWin() callback since this is 'No Ad Server Configuration feature'
|
void |
setEventListener(POBInterstitialEventListener listener)
Method to set POBInterstitialEventListener to get request ad callback
|
void |
show()
OpenWrap SDK will call this method when publisher app calls show on POBInterstitial.
|
void |
trackClick()
Optional method to receive instruction to track the ad click.
|
void |
trackImpression()
Optional method to receive instruction to track the impression.
|
public void requestAd(@Nullable
POBBid bid)
requestAd in interface POBBaseEventbid - winning bid for the requested impressionpublic void destroy()
destroy in interface POBBaseEventpublic void trackImpression()
POBBaseEventtrackImpression in interface POBBaseEventpublic void trackClick()
POBBaseEventtrackClick in interface POBBaseEventpublic void setEventListener(@NonNull
POBInterstitialEventListener listener)
setEventListener in interface POBInterstitialEventlistener - event listenerpublic com.pubmatic.sdk.common.ui.POBInterstitialRendering getRenderer(java.lang.String partnerName)
POBInterstitialEventgetRenderer in interface POBInterstitialEventpartnerName - Winning partner namepublic void show()
POBInterstitialEventNote: This method must be invoked from Main thread.
show in interface POBInterstitialEvent