-
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>shouldShowNotificationOnPush
-
Constructor Summary
Constructors Constructor Description NotificationConfig(Boolean pushNotificationsEnabled, List<PushDeviceGenerator> pushDeviceGenerators, Function0<Boolean> shouldShowNotificationOnPush)
-
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. -
-
Constructor Detail
-
NotificationConfig
NotificationConfig(Boolean pushNotificationsEnabled, List<PushDeviceGenerator> pushDeviceGenerators, Function0<Boolean> shouldShowNotificationOnPush)
-
-
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.
-
-
-
-