Class FlurryMarketingOptions.Builder

java.lang.Object
com.flurry.android.marketing.FlurryMarketingOptions.Builder
Enclosing class:
FlurryMarketingOptions

public static final class FlurryMarketingOptions.Builder extends Object
This Builder can be used to setup the options to initialize marketing suite.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setupMessagingWithAutoIntegration

      public FlurryMarketingOptions.Builder setupMessagingWithAutoIntegration()
      If setting up autointegration, call this method.
      Returns:
      the current builder to chain calls if necessary
    • withFlurryMessagingListener

      public FlurryMarketingOptions.Builder withFlurryMessagingListener(FlurryMessagingListener flurryMessagingListener)
      If setting up with autointegration, optionally pass a listener to list notification events.
      Parameters:
      flurryMessagingListener - optional listener to listen to notification events
      Returns:
      the current builder to chain calls if necessary
    • withFlurryMessagingListener

      public FlurryMarketingOptions.Builder withFlurryMessagingListener(FlurryMessagingListener flurryMessagingListener, android.os.Handler flurryMessagingHandler)
      If setting up with autointegration, optionally pass a listener to list notification events. User specified handler can be assigned to post the notification.
      Parameters:
      flurryMessagingListener - optional listener to listen to notification events
      flurryMessagingHandler - The notification handler
      Returns:
      the current builder to chain calls if necessary
    • setupMessagingWithManualIntegration

      public FlurryMarketingOptions.Builder setupMessagingWithManualIntegration(String token)
      If setting up manually, use this method.
      Parameters:
      token - The push token from the device
      Returns:
      the current builder to chain calls if necessary
    • withDefaultNotificationChannelId

      public FlurryMarketingOptions.Builder withDefaultNotificationChannelId(String notificationChannelId)
      Android Oreo onward requires the use of notification channels. You may specify a default channel for Flurry to post notifications to. Be sure to create the channel and then pass us the id. If a default channel is not provided, or if you have not created the channel, Flurry will create a default channel to post on.
    • withDefaultNotificationIconResourceId

      public FlurryMarketingOptions.Builder withDefaultNotificationIconResourceId(int defaultNotificationIconResourceId)
      Default icon to show with all notifications. This icon should be an all white icon for apps targeting API 21+, as per Google's specifications.
    • withDefaultNotificationIconAccentColor

      public FlurryMarketingOptions.Builder withDefaultNotificationIconAccentColor(int defaultNotificationIconAccentColor)
      This color is used to set the accent color behind the notification icon
    • build

      public FlurryMarketingOptions build()
      Builder the current builder and return the FlurryMarketingOptions object
      Returns:
      The options object as defined by the builder.