Class BasePushService.PushNotificationEvent
-
- All Implemented Interfaces:
public final class BasePushService.PushNotificationEvent
A 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 PushRemoteMessage
pushRemoteMessage
private Boolean
isHandledByForeground
private ForegroundPushNotificationReady
foregroundPushNotificationReady
-
Constructor Summary
Constructors Constructor Description BasePushService.PushNotificationEvent(BasePushService pushService)
-
Method Summary
Modifier and Type Method Description final PushRemoteMessage
getPushRemoteMessage()
Sets push message final Unit
setPushRemoteMessage(PushRemoteMessage pushRemoteMessage)
Sets push message final Boolean
isHandledByForeground()
final Unit
setHandledByForeground(Boolean isHandledByForeground)
final ForegroundPushNotificationReady
getForegroundPushNotificationReady()
final Unit
setForegroundPushNotificationReady(ForegroundPushNotificationReady foregroundPushNotificationReady)
final Unit
displayNotification(PushRemoteMessage pushRemoteMessage)
Displays a notification message. final Unit
displayNotificationWhen(PushRemoteMessage pushRemoteMessage, ForegroundPushNotificationReady pushNotificationReady)
Displays a notification when conditions ready. final Unit
setHandled()
final Unit
setRestore()
final Unit
setShowOnSystemBar()
final Unit
setHandledByForeground()
final Unit
setFromBackground(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)
-
-
-
-