Package org.prebid.mobile.api.rendering
Class PrebidRenderer
- java.lang.Object
-
- org.prebid.mobile.api.rendering.PrebidRenderer
-
- All Implemented Interfaces:
PrebidMobilePluginRenderer
public class PrebidRenderer extends java.lang.Object implements PrebidMobilePluginRenderer
-
-
Constructor Summary
Constructors Constructor Description PrebidRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.view.ViewcreateBannerAdView(android.content.Context context, DisplayViewListener displayViewListener, AdUnitConfiguration adUnitConfiguration, BidResponse bidResponse)Creates and returns Banner View for a given Bid Response.PrebidMobileInterstitialControllerInterfacecreateInterstitialController(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 errorjava.lang.StringgetName()java.lang.StringgetToken()java.lang.StringgetVersion()booleanisSupportRenderingFor(AdUnitConfiguration adUnitConfiguration)Returns true only if the given ad unit could be renderer by the plugin
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacePrebidMobilePluginRenderer
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersionin interfacePrebidMobilePluginRenderer
-
getToken
public java.lang.String getToken()
- Specified by:
getTokenin interfacePrebidMobilePluginRenderer
-
createBannerAdView
public android.view.View createBannerAdView(android.content.Context context, DisplayViewListener displayViewListener, 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
-
-