Uses of Class
com.sap.mobile.services.client.push.GcmNotification.Builder
Packages that use GcmNotification.Builder
-
Uses of GcmNotification.Builder in com.sap.mobile.services.client.push
Methods in com.sap.mobile.services.client.push that return GcmNotification.BuilderModifier and TypeMethodDescriptionIf set, this field takes priority over the alert field of the notification elementbodyLocKey
should be used to retrieve the title from the localized resources of the app based on the user's language configuration.GcmNotification.Builder.bodyLocArgs
(String bodyLocArgs) Deprecated.GcmNotification.Builder.bodyLocArgsArray
(List<String> bodyLocArgsArray) List of body localization parametersGcmNotification.Builder.bodyLocKey
(String bodyLocKey) Should be used to retrieve the title from the localized resources of the app based on the user's language configuration.static GcmNotification.Builder
GcmNotification.builder()
GcmNotification.Builder.clickAction
(String clickAction) The action associated with a user click on the notification.GcmNotification.Builder.collapseKey
(String collapseKey) Collapsible messages replace old messages with the same key with new messages with the same key.The notification's icon color, expressed in #rrggbb format.GcmNotification.Builder.delayWhileIdle
(Boolean delayWhileIdle) Deprecated.usetimeToLive
insteadAllows you to implement a custom app icon for the message instead of the default.GcmNotification.Builder.restrictedPackageName
(String restrictedPackageName) Android allows you to use one FCM service instance for multiple apps with different package names.Allows you to play a custom sound when the message is received.Notification with a tag replaces older notifications with the same tag on the device.GcmNotification.Builder.timeToLive
(Duration timeToLive) When an app server posts a message to FCM and receives a message ID back, it does not mean that the message was already delivered to the device.If set, this field takes priority over the alert field of the notification elementtitleLocKey
should be used to retrieve the title from the localized resources of the app based on the user's language configuration.GcmNotification.Builder.titleLocArgs
(String titleLocArgs) Deprecated.usetitleLocArgsArray
GcmNotification.Builder.titleLocArgsArray
(List<String> titleLocArgsArray) List of title localization parametersGcmNotification.Builder.titleLocKey
(String titleLocKey) Should be used to retrieve the title from the localized resources of the app based on the user's language configuration.
bodyLocArgsArray