-
- All Implemented Interfaces:
-
io.customer.sdk.module.CustomerIOModuleConfig.Builder
public final class MessagingPushModuleConfig.Builder implements CustomerIOModuleConfig.Builder<MessagingPushModuleConfig>
-
-
Constructor Summary
Constructors Constructor Description MessagingPushModuleConfig.Builder()
-
Method Summary
Modifier and Type Method Description final MessagingPushModuleConfig.BuildersetAutoTrackPushEvents(Boolean autoTrackPushEvents)Allows to enable/disable automatic tracking of push events. final MessagingPushModuleConfig.BuildersetNotificationCallback(CustomerIOPushNotificationCallback notificationCallback)Callback that notifies client on push notification related actions. final MessagingPushModuleConfig.BuildersetRedirectDeepLinksToOtherApps(Boolean redirectDeepLinksToOtherApps)Allows to enable/disable opening non app links outside the app<p> true: links not supported by apps will be opened in other matching apps, if no matching apps are found, host app will be launched to default landing page false: links not supported will only open the host app to its default landing page MessagingPushModuleConfigbuild()-
-
Method Detail
-
setAutoTrackPushEvents
final MessagingPushModuleConfig.Builder setAutoTrackPushEvents(Boolean autoTrackPushEvents)
Allows to enable/disable automatic tracking of push events. Auto tracking will generate opened and delivered metrics for push notifications sent by Customer.io without any additional code
- Parameters:
autoTrackPushEvents- true to enable auto tracking, false otherwise; default true
-
setNotificationCallback
final MessagingPushModuleConfig.Builder setNotificationCallback(CustomerIOPushNotificationCallback notificationCallback)
Callback that notifies client on push notification related actions.
- Parameters:
notificationCallback- listener to receive callback events
-
setRedirectDeepLinksToOtherApps
final MessagingPushModuleConfig.Builder setRedirectDeepLinksToOtherApps(Boolean redirectDeepLinksToOtherApps)
Allows to enable/disable opening non app links outside the app
<p> true: links not supported by apps will be opened in other matching apps, if no matching apps are found, host app will be launched to default landing page false: links not supported will only open the host app to its default landing page- Parameters:
redirectDeepLinksToOtherApps- flag to support opening urls from notification to other native apps or browsers; default true
-
build
MessagingPushModuleConfig build()
-
-
-
-