Package org.prebid.mobile.api.rendering
Class PrebidRenderer
-
- All Implemented Interfaces:
-
org.prebid.mobile.api.rendering.pluginrenderer.PrebidMobilePluginRenderer
public class PrebidRenderer implements PrebidMobilePluginRenderer
Default Prebid renderer for plugin renderer functionality.
-
-
Constructor Summary
Constructors Constructor Description PrebidRenderer()
-
Method Summary
Modifier and Type Method Description StringgetName()StringgetVersion()JSONObjectgetData()voidregisterEventListener(PluginEventListener pluginEventListener, String listenerKey)Register a listener related to a specific ad unit config fingerprint in order to dispatch specific ad events voidunregisterEventListener(String listenerKey)Unregister a listener based on an ad unit config fingerprint ViewcreateBannerAdView(Context context, DisplayViewListener displayViewListener, DisplayVideoListener displayVideoListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse)Creates and returns Banner View for a given Bid Response. PrebidMobileInterstitialControllerInterfacecreateInterstitialController(Context context, InterstitialControllerListener interstitialControllerListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse)Creates and returns an implementation of PrebidMobileInterstitialControllerInterface for a given bid response Returns null in the case of an internal error booleanisSupportRenderingFor(AdUnitConfiguration adUnitConfiguration)Returns true only if the given ad unit could be renderer by the plugin -
-
Method Detail
-
getVersion
String getVersion()
-
getData
JSONObject getData()
-
registerEventListener
void registerEventListener(PluginEventListener pluginEventListener, String listenerKey)
Register a listener related to a specific ad unit config fingerprint in order to dispatch specific ad events
-
unregisterEventListener
void unregisterEventListener(String listenerKey)
Unregister a listener based on an ad unit config fingerprint
-
createBannerAdView
View createBannerAdView(Context context, DisplayViewListener displayViewListener, DisplayVideoListener displayVideoListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse)
Creates and returns Banner View for a given Bid Response. Returns null in the case of an internal error. Don't forget to clean resources in onDetachedFromWindow.
-
createInterstitialController
PrebidMobileInterstitialControllerInterface createInterstitialController(Context context, InterstitialControllerListener interstitialControllerListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse)
Creates and returns an implementation of PrebidMobileInterstitialControllerInterface for a given bid response Returns null 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
-
-
-
-