Class FcmSendMessageNotification
- java.lang.Object
-
- com.mongodb.stitch.core.services.fcm.FcmSendMessageNotification
-
public final class FcmSendMessageNotification extends Object
A Notification encapsulates the details of an FCM send message request notification payload.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFcmSendMessageNotification.BuilderA builder that can buildFcmSendMessageRequests.
-
Method Summary
Modifier and Type Method Description StringgetBadge()Returns the value of the badge on the home screen app icon.StringgetBody()Returns the notification's body text.StringgetBodyLocArgs()Returns the variable string values to be used in place of the format specifiers in bodyLocKey to use to localize the body text to the user's current localization.StringgetBodyLocKey()Returns the key to the body string in the app's string resources to use to localize the body text to the user's current localization.StringgetClickAction()Returns the action associated with a user click on the notification.StringgetColor()Returns the notification's icon color, expressed in #rrggbb format.StringgetIcon()Returns the notification's icon.StringgetSound()Returns the sound to play when the device receives the notification.StringgetTag()Returns the identifier used to replace existing notifications in the notification drawer.StringgetTitle()Returns the notification's title.StringgetTitleLocArgs()Returns the variable string values to be used in place of the format specifiers in titleLocKey to use to localize the title text to the user's current localization.StringgetTitleLocKey()Returns the key to the title string in the app's string resources to use to localize the title text to the user's current localization.
-
-
-
Method Detail
-
getTitle
@Nullable public String getTitle()
Returns the notification's title.- Returns:
- the notification's title.
-
getBody
@Nullable public String getBody()
Returns the notification's body text.- Returns:
- the notification's body text.
-
getSound
@Nullable public String getSound()
Returns the sound to play when the device receives the notification.- Returns:
- the sound to play when the device receives the notification.
-
getClickAction
@Nullable public String getClickAction()
Returns the action associated with a user click on the notification.- Returns:
- the action associated with a user click on the notification.
-
getBodyLocKey
@Nullable public String getBodyLocKey()
Returns the key to the body string in the app's string resources to use to localize the body text to the user's current localization.- Returns:
- the key to the body string in the app's string resources to use to localize the body text to the user's current localization.
-
getBodyLocArgs
@Nullable public String getBodyLocArgs()
Returns the variable string values to be used in place of the format specifiers in bodyLocKey to use to localize the body text to the user's current localization.- Returns:
- the variable string values to be used in place of the format specifiers in bodyLocKey to use to localize the body text to the user's current localization.
-
getTitleLocKey
@Nullable public String getTitleLocKey()
Returns the key to the title string in the app's string resources to use to localize the title text to the user's current localization.- Returns:
- the key to the title string in the app's string resources to use to localize the title text to the user's current localization.
-
getTitleLocArgs
@Nullable public String getTitleLocArgs()
Returns the variable string values to be used in place of the format specifiers in titleLocKey to use to localize the title text to the user's current localization.- Returns:
- the variable string values to be used in place of the format specifiers in titleLocKey to use to localize the title text to the user's current localization.
-
getIcon
@Nullable public String getIcon()
Returns the notification's icon. Note: for messages to Android devices only.- Returns:
- the notification's icon.
-
getTag
@Nullable public String getTag()
Returns the identifier used to replace existing notifications in the notification drawer. Note: for messages to Android devices only.- Returns:
- the identifier used to replace existing notifications in the notification drawer.
-
getColor
@Nullable public String getColor()
Returns the notification's icon color, expressed in #rrggbb format. Note: for messages to Android devices only.- Returns:
- the notification's icon color, expressed in #rrggbb format.
-
-