Class AdOptions
java.lang.Object
com.appbrain.AdOptions
Used to customize interstitials.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDetermines how to display the interstitial and offerwall.static enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdId()getTheme()getType()voidSet theAdIdfor this interstitial, used to track different interstitials in your app.setAnalyticsString(String analyticsString) Set a custom string to pass on to the AppBrain servers for analytics purposes.setListener(InterstitialListener listener) Set a listener class to listener for open, close and click events of interstitials.setScreenType(AdOptions.ScreenType screenType) Set whether to show the interstitial and offerwall in full screen or as a dialog.setTheme(AdOptions.Theme theme) Use a light or dark theme where possible.setType(AdOptions.Type type) By default the type of interstitial is determined automatically by the SDK.
-
Constructor Details
-
AdOptions
public AdOptions()
-
-
Method Details
-
setType
By default the type of interstitial is determined automatically by the SDK. Use this option to get full control over interstitial type. -
getType
-
setTheme
Use a light or dark theme where possible. -
getTheme
-
setAnalyticsString
-
getAnalyticsString
-
setListener
Set a listener class to listener for open, close and click events of interstitials. -
getListener
- Returns:
- the currently set
InterstitialListener.
-
setScreenType
Set whether to show the interstitial and offerwall in full screen or as a dialog. The default is ScreenType.FULLSCREEN. Note that when setting this to DIALOG, a dialog is only used when opening the interstitial from an Activity that is not finishing. -
getScreenType
- Returns:
- the currently set
AdOptions.ScreenType.
-
getAdId
-
setAdId
-