Page tree


com.pubmatic.sdk.banner

Interface PMInterstitialAd.InterstitialAdListener.ActivityListener

Enclosing interface:
PMInterstitialAd.InterstitialAdListener

public static interface PMInterstitialAd.InterstitialAdListener.
ActivityListener

Method Summary

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

Method Detail


onOpenUrl

Boolean onOpenUrl(PMInterstitialAd ad, 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:
ad - The PMInterstitialAd 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(PMInterstitialAd adView)

Invoked when the ad will start a new system activity.

Parameters:
adView -

onCloseButtonClick

Boolean onCloseButtonClick(PMInterstitialAd 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 PMInterstitialAd 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