Package com.pubmatic.sdk.openwrap.banner
Class POBBannerView.POBBannerViewListener
-
- All Implemented Interfaces:
@MainThread() public class POBBannerView.POBBannerViewListener
Static member class for interaction with the POBBannerView. All methods are guaranteed to occur on the main thread.
-
-
Constructor Summary
Constructors Constructor Description POBBannerView.POBBannerViewListener()
-
Method Summary
Modifier and Type Method Description voidonAdReceived(@NonNull() POBBannerView view)Notifies the listener that an ad has been successfully loaded and rendered. voidonAdFailed(@NonNull() POBBannerView view, @NonNull() POBError error)Notifies the listener of an error encountered while loading or rendering an ad. voidonAppLeaving(@NonNull() POBBannerView view)Notifies the listener whenever current app goes in the background due to user click. voidonAdOpened(@NonNull() POBBannerView view)Notifies listener that the banner view has open the ad on top of the current view/screen, as a result of user interaction. voidonAdClosed(@NonNull() POBBannerView view)Notifies that the banner view has closed the ad on top of the current view. voidonAdClicked(@NonNull() POBBannerView view)Notifies that the user has clicked the ad view. voidonAdImpression(@NonNull() POBBannerView view)Notifies that the impression has occurred on the ad view. -
-
Method Detail
-
onAdReceived
void onAdReceived(@NonNull() POBBannerView view)
Notifies the listener that an ad has been successfully loaded and rendered.
- Parameters:
view- The POBBannerView instance invoking this method.
-
onAdFailed
void onAdFailed(@NonNull() POBBannerView view, @NonNull() POBError error)
Notifies the listener of an error encountered while loading or rendering an ad.
- Parameters:
view- The POBBannerView instance invoking this method.error- The error encountered while attempting to receive or render the ad.
-
onAppLeaving
void onAppLeaving(@NonNull() POBBannerView view)
Notifies the listener whenever current app goes in the background due to user click.
- Parameters:
view- The POBBannerView instance invoking this method.
-
onAdOpened
void onAdOpened(@NonNull() POBBannerView view)
Notifies listener that the banner view has open the ad on top of the current view/screen, as a result of user interaction. It can be called multiple times based on the user interactions.
- Parameters:
view- The POBBannerView instance invoking this method.
-
onAdClosed
void onAdClosed(@NonNull() POBBannerView view)
Notifies that the banner view has closed the ad on top of the current view.
- Parameters:
view- The POBBannerView instance invoking this method.
-
onAdClicked
void onAdClicked(@NonNull() POBBannerView view)
Notifies that the user has clicked the ad view.
- Parameters:
view- The POBBannerView instance invoking this method.
-
onAdImpression
void onAdImpression(@NonNull() POBBannerView view)
Notifies that the impression has occurred on the ad view. Introduced in SDK v3.5.0
- Parameters:
view- The POBBannerView instance invoking this method.
-
-
-
-