PMBannerAdView.BannerAdViewDelegate.RichMediaListener (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.

RichMediaListener

 

Enclosing interface:
PMBannerAdView.BannerAdViewDelegate

public static interface PMBannerAdView.BannerAdViewDelegate.RichMediaListener

 

An interface to notify the events of MRAID ads

 

Method Summary

Modifier and TypeMethod and Description
voidPMBannerAdView adView) Invoked when a rich media ad collapses from an expanded or resized state.
voidPMBannerAdView adView, java.lang.string request) Invoked after a rich media (MRAID) event has occurred.
voidPMBannerAdView adView) Invoked when a rich media ad expands to the full screen size.
BooleanPMBannerAdView adView, java.lang.string url) Invoked when a rich media ad requests a video to be played.
voidPMBannerAdView adView, android.graphics.Rect area) Invoked when a rich media ad is resized larger than it's default/configured size.

 

Method Detail


onExpanded

void onExpanded(PMBannerAdView adView)

 

Invoked when a rich media ad expands to the full screen size.

 

Parameters:
adView -

 

onResized

void onResized(PMBannerAdView adView, android.graphics.Rect area)

 

Invoked when a rich media ad is resized larger than it's default/configured size.

 

Parameters:
adView -
area - Area of the screen used to render the resized ad.

 

onCollapsed

void onCollapsed(PMBannerAdView adView)

 

Invoked when a rich media ad collapses from an expanded or resized state.

 

Parameters:
adView -

 

onPlayVideo

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

 

Invoked when a rich media ad requests a video to be played.

If false is returned the URL is handled like any other URL action and ActivityListener.onOpenUrl() will be invoked for further processing.

 

Parameters:
adView -
url -

 

Returns:
true to indicate the video playing has been handled by the application, false to allow the SDK to handle the URL.

 

onEventProcessed

void onEventProcessed(PMBannerAdView adView, java.lang.string request)

 

Invoked after a rich media (MRAID) event has occurred. Since the event has already been handled applications need not implement any behavior. However, applications can use this to listen and act on handled rich media events with other behavior.

 

Parameters:
adView -
request -

 

Attachments

    Outcomes