Class NotificationConfig
-
- All Implemented Interfaces:
public final class NotificationConfigPush notifications configuration class
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanpushNotificationsEnabledprivate final List<PushDeviceGenerator>pushDeviceGeneratorsprivate final Function0<Boolean>shouldShowNotificationOnPushprivate final Function0<Boolean>requestPermissionOnAppLaunch
-
Constructor Summary
Constructors Constructor Description NotificationConfig(Boolean pushNotificationsEnabled, List<PushDeviceGenerator> pushDeviceGenerators, Function0<Boolean> shouldShowNotificationOnPush, Function0<Boolean> requestPermissionOnAppLaunch)NotificationConfig(Boolean pushNotificationsEnabled, List<PushDeviceGenerator> pushDeviceGenerators, Function0<Boolean> shouldShowNotificationOnPush)NotificationConfig(Boolean pushNotificationsEnabled, List<PushDeviceGenerator> pushDeviceGenerators)NotificationConfig(Boolean pushNotificationsEnabled)NotificationConfig()
-
Method Summary
Modifier and Type Method Description final BooleangetPushNotificationsEnabled()Enables/disables push notifications on the device. final List<PushDeviceGenerator>getPushDeviceGenerators()A list of generators responsible for providing the information needed to register a device final Function0<Boolean>getShouldShowNotificationOnPush()Allows enabling/disabling showing notification after receiving a push message. final Function0<Boolean>getRequestPermissionOnAppLaunch()Allows SDK to request android.Manifest.permission.POST_NOTIFICATIONS permission for a connected user. -
-
Constructor Detail
-
NotificationConfig
NotificationConfig(Boolean pushNotificationsEnabled, List<PushDeviceGenerator> pushDeviceGenerators, Function0<Boolean> shouldShowNotificationOnPush, Function0<Boolean> requestPermissionOnAppLaunch)
-
NotificationConfig
NotificationConfig(Boolean pushNotificationsEnabled, List<PushDeviceGenerator> pushDeviceGenerators, Function0<Boolean> shouldShowNotificationOnPush)
-
NotificationConfig
NotificationConfig(Boolean pushNotificationsEnabled, List<PushDeviceGenerator> pushDeviceGenerators)
-
NotificationConfig
NotificationConfig(Boolean pushNotificationsEnabled)
-
NotificationConfig
NotificationConfig()
-
-
Method Detail
-
getPushNotificationsEnabled
final Boolean getPushNotificationsEnabled()
Enables/disables push notifications on the device. Device's token won't be registered if push notifications are disabled.
-
getPushDeviceGenerators
final List<PushDeviceGenerator> getPushDeviceGenerators()
A list of generators responsible for providing the information needed to register a device
-
getShouldShowNotificationOnPush
final Function0<Boolean> getShouldShowNotificationOnPush()
Allows enabling/disabling showing notification after receiving a push message.
-
getRequestPermissionOnAppLaunch
final Function0<Boolean> getRequestPermissionOnAppLaunch()
Allows SDK to request android.Manifest.permission.POST_NOTIFICATIONS permission for a connected user.
-
-
-
-