Page tree


com.pubmatic.sdk.banner

Interface PMInterstitialAd.InterstitialAdListener.

RichMediaListener

Enclosing interface:
PMInterstitialAd.InterstitialAdListener

public static interface PMInterstitialAd.InterstitialAdListener.
RichMediaListener

Method Summary

Modifier and TypeMethod and Description
void PMInterstitialAd adView) Invoked when a rich media ad collapses from an expanded or resized state.
void PMInterstitialAd adView, java.lang.string request) Invoked after a rich media (MRAID) event has occurred.
void PMInterstitialAd adView) Invoked when a rich media ad expands to the full screen size.
Boolean PMInterstitialAd adView, java.lang.string url) Invoked when a rich media ad requests a video to be played.
void PMInterstitialAd 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(PMInterstitialAd adView)

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

Parameters:
adView -

onResized

void onResized(PMInterstitialAd 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(PMInterstitialAd adView)

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

Parameters:
adView -

onPlayVideo

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


⇧ Top