Page tree


com.pubmatic.sdk.banner

Interface PMBannerAdView.BannerAdViewDelegate.ActivityListener

 

Enclosing interface:
PMBannerAdView.BannerAdViewDelegate

public static interface PMBannerAdView.BannerAdViewDelegate.
ActivityListener

An interface to notify when user is navigated from current activity

Method Summary

Modifier and TypeMethod and Description
Boolean PMBannerAdView adView)
void PMBannerAdView adView) Invoked when the ad will start a new system activity.
Boolean PMBannerAdView adView, java.lang.string url) Invoked when the ad will navigate to a clicked link (or rich media open).

Method Detail


onOpenUrl

Boolean onOpenUrl(PMBannerAdView adView, java.lang.string url)

Invoked when the ad will navigate to a clicked link (or rich media open). Applications can use this method to filter URLs being opened by the SDK. If the application will handle the URL directly it should return false from this method so the SDK doesn't also act on the URL. Note that for rich media ads the SDK may have already resized or expanded the ad and this method may be invoked when the ad invokes MRAID's open method.

Parameters:
adView - The BaseAdView instance invoking the method.
url - The URL to open.
Returns:
Boolean true if caller has completely handled the click event and wants to skip the default SDK click processing; return false if the caller has only implemented a "side-effect" such as logging, and wants the default SDK logic to continue.

onLeavingApplication

void onLeavingApplication(PMBannerAdView adView)

Invoked when the ad will start a new system activity.

Parameters:
adView -

onCloseButtonClick

Boolean onCloseButtonClick(PMBannerAdView adView)

Invoked when the ad receives a close button press that should be handled by the application. This only occurs for the close button enabled with showCloseButton() or in the case of a interstitial rich media ad that closes itself. It will not be sent for rich media close buttons that collapse expanded or resized ads.

Parameters:
adView - The BaseAdView instance invoking the method.
Returns:
Boolean true if the caller has completely handled the click event and wants to skip the default SDK click processing; return false if the caller has only implemented a "side-effect" such as logging and wants the default SDK logic to continue. For BaseAdView instances that are interstitial implementations MUST call close() if returning true from this method.


⇧ Top