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.View
createBannerAdView
(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.JSONObject
getData()
getName()
boolean
isSupportRenderingFor
(AdUnitConfiguration adUnitConfiguration) Returns true only if the given ad unit could be renderer by the pluginvoid
registerEventListener
(PluginEventListener pluginEventListener, String listenerKey) Register a listener related to a specific ad unit config fingerprint in order to dispatch specific ad eventsvoid
unregisterEventListener
(String listenerKey) Unregister a listener based on an ad unit config fingerprint
-
Constructor Details
-
PrebidRenderer
public PrebidRenderer()
-
-
Method Details
-
getName
- Specified by:
getName
in interfacePrebidMobilePluginRenderer
-
getVersion
- Specified by:
getVersion
in interfacePrebidMobilePluginRenderer
-
getData
public org.json.JSONObject getData()- Specified by:
getData
in interfacePrebidMobilePluginRenderer
-
registerEventListener
Description copied from interface:PrebidMobilePluginRenderer
Register a listener related to a specific ad unit config fingerprint in order to dispatch specific ad events- Specified by:
registerEventListener
in interfacePrebidMobilePluginRenderer
-
unregisterEventListener
Description copied from interface:PrebidMobilePluginRenderer
Unregister a listener based on an ad unit config fingerprint- Specified by:
unregisterEventListener
in interfacePrebidMobilePluginRenderer
-
createBannerAdView
public android.view.View createBannerAdView(android.content.Context context, DisplayViewListener displayViewListener, DisplayVideoListener displayVideoListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Description copied from interface:PrebidMobilePluginRenderer
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()
.- Specified by:
createBannerAdView
in interfacePrebidMobilePluginRenderer
-
createInterstitialController
public PrebidMobileInterstitialControllerInterface createInterstitialController(android.content.Context context, InterstitialControllerListener interstitialControllerListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse) Description copied from interface:PrebidMobilePluginRenderer
Creates and returns an implementation of PrebidMobileInterstitialControllerInterface for a given bid response Returns nil in the case of an internal error- Specified by:
createInterstitialController
in interfacePrebidMobilePluginRenderer
-
isSupportRenderingFor
public boolean isSupportRenderingFor(AdUnitConfiguration adUnitConfiguration) Description copied from interface:PrebidMobilePluginRenderer
Returns true only if the given ad unit could be renderer by the plugin- Specified by:
isSupportRenderingFor
in interfacePrebidMobilePluginRenderer
-