Class BasePushService.PushNotificationEvent
-
- All Implemented Interfaces:
public final class BasePushService.PushNotificationEventA notification message corresponding to a PushNotificationEvent which decide the push message can be displayed or display on some conditions.
-
-
Field Summary
Fields Modifier and Type Field Description private PushRemoteMessagepushRemoteMessageprivate BooleanisHandledByForegroundprivate ForegroundPushNotificationReadyforegroundPushNotificationReady
-
Constructor Summary
Constructors Constructor Description BasePushService.PushNotificationEvent(BasePushService pushService)
-
Method Summary
Modifier and Type Method Description final PushRemoteMessagegetPushRemoteMessage()Sets push message final UnitsetPushRemoteMessage(PushRemoteMessage pushRemoteMessage)Sets push message final BooleanisHandledByForeground()final UnitsetHandledByForeground(Boolean isHandledByForeground)final ForegroundPushNotificationReadygetForegroundPushNotificationReady()final UnitsetForegroundPushNotificationReady(ForegroundPushNotificationReady foregroundPushNotificationReady)final UnitdisplayNotification(PushRemoteMessage pushRemoteMessage)Displays a notification message. final UnitdisplayNotificationWhen(PushRemoteMessage pushRemoteMessage, ForegroundPushNotificationReady pushNotificationReady)Displays a notification when conditions ready. final UnitsetHandled()final UnitsetRestore()final UnitsetShowOnSystemBar()final UnitsetHandledByForeground()final UnitsetFromBackground(Boolean fromBackground)-
-
Constructor Detail
-
BasePushService.PushNotificationEvent
BasePushService.PushNotificationEvent(BasePushService pushService)
-
-
Method Detail
-
getPushRemoteMessage
final PushRemoteMessage getPushRemoteMessage()
Sets push message
- Returns:
push notification
-
setPushRemoteMessage
final Unit setPushRemoteMessage(PushRemoteMessage pushRemoteMessage)
Sets push message
- Returns:
push notification
-
isHandledByForeground
final Boolean isHandledByForeground()
-
setHandledByForeground
final Unit setHandledByForeground(Boolean isHandledByForeground)
-
getForegroundPushNotificationReady
final ForegroundPushNotificationReady getForegroundPushNotificationReady()
-
setForegroundPushNotificationReady
final Unit setForegroundPushNotificationReady(ForegroundPushNotificationReady foregroundPushNotificationReady)
-
displayNotification
final Unit displayNotification(PushRemoteMessage pushRemoteMessage)
Displays a notification message.
- Parameters:
pushRemoteMessage- push message
-
displayNotificationWhen
final Unit displayNotificationWhen(PushRemoteMessage pushRemoteMessage, ForegroundPushNotificationReady pushNotificationReady)
Displays a notification when conditions ready.
- Parameters:
pushRemoteMessage- push messagepushNotificationReady- conditions to decide display push notification or not return true means condition ready, false the message will be stored.
-
setHandled
final Unit setHandled()
-
setRestore
final Unit setRestore()
-
setShowOnSystemBar
final Unit setShowOnSystemBar()
-
setHandledByForeground
final Unit setHandledByForeground()
-
setFromBackground
final Unit setFromBackground(Boolean fromBackground)
-
-
-
-