Page tree


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


⇧ Top