Class AdOptions

java.lang.Object
com.appbrain.AdOptions

public class AdOptions extends Object
Used to customize interstitials.
  • Constructor Details

    • AdOptions

      public AdOptions()
  • Method Details

    • setType

      public AdOptions setType(AdOptions.Type type)
      By default the type of interstitial is determined automatically by the SDK. Use this option to get full control over interstitial type.
    • getType

      public AdOptions.Type getType()
    • setTheme

      public AdOptions setTheme(AdOptions.Theme theme)
      Use a light or dark theme where possible.
    • getTheme

      public AdOptions.Theme getTheme()
    • setAnalyticsString

      public AdOptions setAnalyticsString(String analyticsString)
      Set a custom string to pass on to the AppBrain servers for analytics purposes.
    • getAnalyticsString

      public String getAnalyticsString()
    • setListener

      public AdOptions setListener(InterstitialListener listener)
      Set a listener class to listener for open, close and click events of interstitials.
    • getListener

      public InterstitialListener getListener()
      Returns:
      the currently set InterstitialListener.
    • setScreenType

      public AdOptions setScreenType(AdOptions.ScreenType screenType)
      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

      public AdOptions.ScreenType getScreenType()
      Returns:
      the currently set AdOptions.ScreenType.
    • getAdId

      public AdId getAdId()
      Returns:
      the currently set AdId.
    • setAdId

      public void setAdId(AdId adId)
      Set the AdId for this interstitial, used to track different interstitials in your app.