- Enclosing interface:
public static interface PMInterstitialAd.InterstitialAdListener.
|Modifier and Type||Method and Description|
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.
ad- The PMInterstitialAd instance invoking the method.
url- The URL to open.
- 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.
void onLeavingApplication(PMInterstitialAd adView)
Invoked when the ad will start a new system activity.
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.
adView- The PMInterstitialAd instance invoking the method.
- 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.