-
- All Implemented Interfaces:
-
com.appstock.sdk.rendering.pluginrenderer.AppstockPluginRenderer
public class AppstockRenderer implements AppstockPluginRenderer
-
-
Method Summary
Modifier and Type Method Description StringgetName()StringgetVersion()JSONObjectgetData()voidregisterEventListener(AppstockPluginEventListener 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(@NonNull() Context context, @NonNull() DisplayViewListener displayViewListener, @Nullable() DisplayVideoListener displayVideoListener, @NonNull() AdUnitConfiguration adUnitConfiguration, @NonNull() BidResponse bidResponse)Creates and returns Banner View for a given Bid Response.Returns nil in the case of an internal error. AppstockMobileInterstitialControllerInterfacecreateInterstitialController(@NonNull() Context context, @NonNull() InterstitialControllerListener interstitialControllerListener, @NonNull() AdUnitConfiguration adUnitConfiguration, @NonNull() BidResponse bidResponse)Creates and returns an implementation of MobileInterstitialControllerInterface for a given bid responseReturns nil 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
@Nullable() JSONObject getData()
-
registerEventListener
void registerEventListener(AppstockPluginEventListener 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(@NonNull() Context context, @NonNull() DisplayViewListener displayViewListener, @Nullable() DisplayVideoListener displayVideoListener, @NonNull() AdUnitConfiguration adUnitConfiguration, @NonNull() 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 in onDetachedFromWindow.
-
createInterstitialController
AppstockMobileInterstitialControllerInterface createInterstitialController(@NonNull() Context context, @NonNull() InterstitialControllerListener interstitialControllerListener, @NonNull() AdUnitConfiguration adUnitConfiguration, @NonNull() BidResponse bidResponse)
Creates and returns an implementation of MobileInterstitialControllerInterface for a given bid responseReturns 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
-
-
-
-