- Enclosing interface:
public static interface PMBannerAdView.BannerAdViewDelegate.RichMediaListener
An interface to notify the events of MRAID ads
|Modifier and Type||Method and Description|
void onExpanded(PMBannerAdView adView)
Invoked when a rich media ad expands to the full screen size.
void onResized(PMBannerAdView adView, android.graphics.Rect area)
Invoked when a rich media ad is resized larger than it's default/configured size.
area- Area of the screen used to render the resized ad.
void onCollapsed(PMBannerAdView adView)
Invoked when a rich media ad collapses from an expanded or resized state.
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.
- true to indicate the video playing has been handled by the application, false to allow the SDK to handle the URL.
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.