Class ApnsNotification.Builder
java.lang.Object
com.sap.mobile.services.client.push.ApnsNotification.Builder
- Enclosing interface:
- ApnsNotification
APNS specific notification properties. See
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionButtonLabel
(String actionButtonLabel) Safari only: The literal text of the action button to be shown for the push notification.The notification body.alertSubtitle
(String alertSubtitle) The notification subtitle.alertTitle
(String alertTitle) The notification title.build()
Mobile apps can register actions during launch grouped as category.contentAvailable
(Boolean contentAvailable) Content available marks background notification without visual text.customSound
(ApnsCustomSound customSound) Detailed APNS sound definition.customValues
(String customValues) Custom values for APNS onlyexpiration
(Date expiration) expire notification at given timestampinterruptionLevel
(InterruptionLevel interruptionLevel) The interruption-level is optional and defines the importance and delivery timing of a notificationlaunchImageFileName
(String launchImageFileName) The name of the image or storyboard to use when your app launches because of the notification.localizedActionButtonKey
(String localizedActionButtonKey) Safari only: Localized key of the action button to be shown for the push notification.localizedAlertArguments
(List<String> localizedAlertArguments) Localization arguments for the bodylocalizedAlertKey
(String localizedAlertKey) Should be used to retrieve the title from the localized resources of the app based on the user's language configuration.localizedAlertSubtitleArguments
(List<String> localizedAlertSubtitleArguments) Localization arguments for the subtitlelocalizedAlertSubtitleKey
(String localizedAlertSubtitleKey) Should be used to retrieve the subtitle from the localized resources of the app based on the user's language configuration.localizedAlertTitleArguments
(List<String> localizedAlertTitleArguments) Localization arguments for the titlelocalizedAlertTitleKey
(String localizedAlertTitleKey) Should be used to retrieve the title from the localized resources of the app based on the user's language configuration.mutableContent
(Boolean mutableContent) Notifications with mutable content set and no visual alert is defined are processed by the mobile app, prior displayed in the notification centerPush Type, seerelevanceScore
(Float relevanceScore) The relevance score, a number between 0 and 1, that the system uses to sort the notifications from your app.showActionButton
(Boolean showActionButton) Safari only: Show notification action buttonDeprecated.targetContentId
(String targetContentId) The identifier of the window brought forward.Thread-Ids allows grouping of notification on application levelThe topic for the notification.urlArguments
(List<String> urlArguments) List of arguments to populate placeholders in the urlFormatString associated with a Safari push notification.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expiration
expire notification at given timestamp -
category
Mobile apps can register actions during launch grouped as category. This value allows actions to be executed directly by the notification in the notification center. -
contentAvailable
Content available marks background notification without visual text. -
pushType
Push Type, see- See Also:
-
customValues
Custom values for APNS only -
sound
Deprecated.please usecustomSound
Reference to a sound resource in the app. default will play the system sound -
customSound
Detailed APNS sound definition. Use this when sending critical notifications. -
topic
The topic for the notification. In general, the topic is your app’s bundle ID/app ID. It can have a suffix based on the type of push notification. -
alertBody
The notification body.localizedAlertKey
should be used to retrieve the subtitle from the localized resources of the app based on the user's language configuration when sending templated messages. -
localizedAlertKey
Should be used to retrieve the title from the localized resources of the app based on the user's language configuration. -
localizedAlertArguments
Localization arguments for the body -
alertTitle
The notification title.localizedAlertTitleKey
should be used to retrieve the subtitle from the localized resources of the app based on the user's language configuration when sending templated messages. -
localizedAlertTitleKey
Should be used to retrieve the title from the localized resources of the app based on the user's language configuration. -
localizedAlertTitleArguments
public ApnsNotification.Builder localizedAlertTitleArguments(List<String> localizedAlertTitleArguments) Localization arguments for the title -
alertSubtitle
The notification subtitle.localizedAlertSubtitleKey
should be used to retrieve the subtitle from the localized resources of the app based on the user's language configuration when sending templated messages. -
localizedAlertSubtitleKey
Should be used to retrieve the subtitle from the localized resources of the app based on the user's language configuration. -
localizedAlertSubtitleArguments
public ApnsNotification.Builder localizedAlertSubtitleArguments(List<String> localizedAlertSubtitleArguments) Localization arguments for the subtitle -
launchImageFileName
The name of the image or storyboard to use when your app launches because of the notification. -
showActionButton
Safari only: Show notification action button -
actionButtonLabel
Safari only: The literal text of the action button to be shown for the push notification. -
localizedActionButtonKey
Safari only: Localized key of the action button to be shown for the push notification. -
urlArguments
List of arguments to populate placeholders in the urlFormatString associated with a Safari push notification. -
threadId
Thread-Ids allows grouping of notification on application level -
mutableContent
Notifications with mutable content set and no visual alert is defined are processed by the mobile app, prior displayed in the notification center -
interruptionLevel
The interruption-level is optional and defines the importance and delivery timing of a notification -
targetContentId
The identifier of the window brought forward. The value of this key will be populated on the UNNotificationContent object created from the push payload. -
relevanceScore
The relevance score, a number between 0 and 1, that the system uses to sort the notifications from your app. The highest score gets featured in the notification summary. -
build
-
customSound