Interface PrebidMobilePluginRenderer
- All Known Implementing Classes:
PrebidRenderer
public interface PrebidMobilePluginRenderer
Main plugin renderer interface.
-
Method Summary
Modifier and TypeMethodDescriptionandroid.view.ViewcreateBannerAdView(android.content.Context context, DisplayViewListener displayViewListener, DisplayVideoListener displayVideoListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Creates and returns Banner View for a given Bid Response.createInterstitialController(android.content.Context context, InterstitialControllerListener interstitialControllerListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Creates and returns an implementation of PrebidMobileInterstitialControllerInterface for a given bid response Returns nil in the case of an internal errororg.json.JSONObjectgetData()getName()booleanisSupportRenderingFor(AdUnitConfiguration adUnitConfiguration) Returns true only if the given ad unit could be renderer by the pluginvoidregisterEventListener(PluginEventListener pluginEventListener, String listenerKey) Register a listener related to a specific ad unit config fingerprint in order to dispatch specific ad eventsvoidunregisterEventListener(String listenerKey) Unregister a listener based on an ad unit config fingerprint
-
Method Details
-
getName
String getName() -
getVersion
String getVersion() -
getData
org.json.JSONObject getData() -
registerEventListener
Register a listener related to a specific ad unit config fingerprint in order to dispatch specific ad events -
unregisterEventListener
Unregister a listener based on an ad unit config fingerprint -
createBannerAdView
android.view.View createBannerAdView(android.content.Context context, DisplayViewListener displayViewListener, DisplayVideoListener displayVideoListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Creates and returns Banner View for a given Bid Response. Returns nil in the case of an internal error.
Don't forget to clean resources inView.onDetachedFromWindow(). -
createInterstitialController
PrebidMobileInterstitialControllerInterface createInterstitialController(android.content.Context context, InterstitialControllerListener interstitialControllerListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Creates and returns an implementation of PrebidMobileInterstitialControllerInterface for a given bid response Returns nil in the case of an internal error -
isSupportRenderingFor
boolean isSupportRenderingFor(AdUnitConfiguration adUnitConfiguration) Returns true only if the given ad unit could be renderer by the plugin
-