public final class FcmSendMessageRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FcmSendMessageRequest.Builder
A builder that can build
FcmSendMessageRequest s. |
Modifier and Type | Method and Description |
---|---|
String |
getCollapseKey()
Returns the group of messages that can be collapsed.
|
Boolean |
getContentAvailable()
Returns whether or not to indicate to the client that content is available in order
to wake the device.
|
Document |
getData()
Returns the custom data to send in the payload.
|
Boolean |
getMutableContent()
Returns whether or not the content in the message can be mutated.
|
FcmSendMessageNotification |
getNotification()
Returns the predefined, user-visible key-value pairs of the notification payload.
|
FcmSendMessagePriority |
getPriority()
Returns the priority of the message.
|
Long |
getTimeToLive()
Returns how long (in seconds) the message should be kept in FCM storage if the device is
offline.
|
@Nonnull public FcmSendMessagePriority getPriority()
@Nullable public String getCollapseKey()
@Nullable public Boolean getContentAvailable()
@Nullable public Boolean getMutableContent()
@Nullable public Long getTimeToLive()
@Nullable public Document getData()
@Nullable public FcmSendMessageNotification getNotification()