PMBannerAdView.BannerAdViewDelegate.ActivityListener (Interface)

Document created by david.simerly on Nov 9, 2017Last modified by david.simerly on Apr 3, 2018
Version 2Show Document
  • View in full screen mode

PubMatic SDKs

AdRequest

NativeAdSize

PMAdRendered

PMAdRequest

PMAdRequest.AD_TYPE

PMAdRequest.AWT_OPTION

PMAdRequest.ETHNICITY

PMAdRequest.GENDER

PMAdRequest.HASHING_TECHNIQUE

PMAdRequest.OPERID

PMAdRequest.RS

PMAdSize

PMAdSize

PMBannerAdRequest

PMBannerAdView

PMBannerAdView.BannerAdViewDelegate

➤ PMBannerAdView.
     BannerAdViewDelegate.
     ActivityListener

PMBannerAdView.BannerAdViewDelegate.
     FeatureSupportHandler

PMBannerAdView.BannerAdViewDelegate.
     InternalBrowserListener

PMBannerAdView.BannerAdViewDelegate.
     RequestListener

PMBannerAdView.BannerAdViewDelegate.
     RichMediaListener

PMBannerImpression

PMBid

PMError

PMImpression

PMInterstitialAd

PMInterstitialAd.InterstitialAdListener

PMInterstitialAd.InterstitialAdListener.
     ActivityListener

PMInterstitialAd.InterstitialAdListener.
     FeatureSupportHandler

PMInterstitialAd.InterstitialAdListener.
     InternalBrowserListener

PMInterstitialAd.InterstitialAdListener.
     RequestListener

PMInterstitialAd.InterstitialAdListener.
     RichMediaListener

PMInterstitialAdRequest

PMLogger

PMLogger.LogListener

PMLogger.PMLogLevel

PMNativeAd

PMNativeAd.Image

PMNativeAd.NativeRequestListener

PMNativeAdRequest

PMNativeAssetRequest

PMNativeAssetResponse

PMNativeDataAssetRequest

PMNativeDataAssetResponse

PMNativeDataAssetTypes

PMNativeImageAssetRequest

PMNativeImageAssetResponse

PMNativeImageAssetTypes

PMNativeTitleAssetRequest

PMNativeTitleAssetResponse

PMPrefetchManager

PMPrefetchManager.PMPrefetchListener

PMPrefetchRequest

PubMaticSDK


PubMatic Android SDK Guide

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
BooleanPMBannerAdView adView)
Invoked when the ad receives a close button press that should be handled by the application.
voidPMBannerAdView adView) Invoked when the ad will start a new system activity.
BooleanPMBannerAdView 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.

 

Attachments

    Outcomes