Package com.flurry.android.marketing
Class FlurryMarketingOptions.Builder
java.lang.Object
com.flurry.android.marketing.FlurryMarketingOptions.Builder
- Enclosing class:
- FlurryMarketingOptions
This Builder can be used to setup the options to initialize marketing suite.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builder the current builder and return theFlurryMarketingOptions
objectIf setting up autointegration, call this method.If setting up manually, use this method.withDefaultNotificationChannelId
(String notificationChannelId) Android Oreo onward requires the use of notification channels.withDefaultNotificationIconAccentColor
(int defaultNotificationIconAccentColor) This color is used to set the accent color behind the notification iconwithDefaultNotificationIconResourceId
(int defaultNotificationIconResourceId) Default icon to show with all notifications.withFlurryMessagingListener
(FlurryMessagingListener flurryMessagingListener) If setting up with autointegration, optionally pass a listener to list notification events.withFlurryMessagingListener
(FlurryMessagingListener flurryMessagingListener, android.os.Handler flurryMessagingHandler) If setting up with autointegration, optionally pass a listener to list notification events.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 eventsflurryMessagingHandler
- The notification handler- Returns:
- the current builder to chain calls if necessary
-
setupMessagingWithManualIntegration
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
Builder the current builder and return theFlurryMarketingOptions
object- Returns:
- The options object as defined by the builder.
-