Class NotificationConfig
-
- All Implemented Interfaces:
public final class NotificationConfig
-
-
Field Summary
Fields Modifier and Type Field Description private final List<PushDeviceGenerator>pushDeviceGeneratorsprivate final Function0<Boolean>requestPermissionOnAppLaunchprivate final NotificationHandlernotificationHandlerprivate final BooleanhideRingingNotificationInForeground
-
Constructor Summary
Constructors Constructor Description NotificationConfig(List<PushDeviceGenerator> pushDeviceGenerators, Function0<Boolean> requestPermissionOnAppLaunch, NotificationHandler notificationHandler, Boolean hideRingingNotificationInForeground)
-
Method Summary
Modifier and Type Method Description final List<PushDeviceGenerator>getPushDeviceGenerators()final Function0<Boolean>getRequestPermissionOnAppLaunch()final NotificationHandlergetNotificationHandler()final BooleangetHideRingingNotificationInForeground()Set this to true if you want to make the ringing notifications as low-priority in case the application is in foreground. -
-
Constructor Detail
-
NotificationConfig
NotificationConfig(List<PushDeviceGenerator> pushDeviceGenerators, Function0<Boolean> requestPermissionOnAppLaunch, NotificationHandler notificationHandler, Boolean hideRingingNotificationInForeground)
-
-
Method Detail
-
getPushDeviceGenerators
final List<PushDeviceGenerator> getPushDeviceGenerators()
-
getRequestPermissionOnAppLaunch
final Function0<Boolean> getRequestPermissionOnAppLaunch()
-
getNotificationHandler
final NotificationHandler getNotificationHandler()
-
getHideRingingNotificationInForeground
final Boolean getHideRingingNotificationInForeground()
Set this to true if you want to make the ringing notifications as low-priority in case the application is in foreground. This will prevent the notification from interrupting the user while he is in the app. In this case you need to make sure to handle this call state and display an incoming call screen. NOTE: This setting has only an effect if you don't set a custom NotificationHandler!
-
-
-
-