Package org.prebid.mobile.api.rendering
Class PrebidRenderer
java.lang.Object
org.prebid.mobile.api.rendering.PrebidRenderer
- All Implemented Interfaces:
PrebidMobilePluginRenderer
Default Prebid renderer for plugin renderer functionality.
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
PrebidRenderer
public PrebidRenderer()
-
-
Method Details
-
getName
- Specified by:
getNamein interfacePrebidMobilePluginRenderer
-
getVersion
- Specified by:
getVersionin interfacePrebidMobilePluginRenderer
-
getData
public org.json.JSONObject getData()- Specified by:
getDatain interfacePrebidMobilePluginRenderer
-
registerEventListener
Description copied from interface:PrebidMobilePluginRendererRegister a listener related to a specific ad unit config fingerprint in order to dispatch specific ad events- Specified by:
registerEventListenerin interfacePrebidMobilePluginRenderer
-
unregisterEventListener
Description copied from interface:PrebidMobilePluginRendererUnregister a listener based on an ad unit config fingerprint- Specified by:
unregisterEventListenerin interfacePrebidMobilePluginRenderer
-
createBannerAdView
public android.view.View createBannerAdView(android.content.Context context, DisplayViewListener displayViewListener, DisplayVideoListener displayVideoListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Description copied from interface:PrebidMobilePluginRendererCreates 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().- Specified by:
createBannerAdViewin interfacePrebidMobilePluginRenderer
-
createInterstitialController
public PrebidMobileInterstitialControllerInterface createInterstitialController(android.content.Context context, InterstitialControllerListener interstitialControllerListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Description copied from interface:PrebidMobilePluginRendererCreates and returns an implementation of PrebidMobileInterstitialControllerInterface for a given bid response Returns nil in the case of an internal error- Specified by:
createInterstitialControllerin interfacePrebidMobilePluginRenderer
-
isSupportRenderingFor
public boolean isSupportRenderingFor(AdUnitConfiguration adUnitConfiguration) Description copied from interface:PrebidMobilePluginRendererReturns true only if the given ad unit could be renderer by the plugin- Specified by:
isSupportRenderingForin interfacePrebidMobilePluginRenderer
-