Class WnsNotification.Builder
java.lang.Object
com.sap.mobile.services.client.push.WnsNotification.Builder
- Enclosing interface:
- WnsNotification
WNS specific notification properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaudio
(WnsNotificationAudio audio) Specifies a sound to play when a notification is displayed.Badge is used to provide status or summary info in the form of a system-provided glyph or a number from 1-99.A default base URI that is combined with relative URIs in image source attributes.build()
commands
(WnsNotificationCommands commands) Specifies that the notification is being used to indicate an incoming call or an alarm, with appropriate commands associated with each scenario.image
(List<WnsNotificationImage> image) Specifies an image used in the template.The target locale of the XML payloadThe message element defines the text attribute for tile and toast notifications.The rawData element represents a certain WNS push schema (wns/raw).The schema indicates the type of notification and how WNS should handle it.tileTemplate
(String tileTemplate) Specifies the content template to use in a tile update.toastTemplate
(String toastTemplate) Specifies the template to use in a toast notification.The version element sets the version property at the notification requests
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
schema
The schema indicates the type of notification and how WNS should handle it. -
badge
Badge is used to provide status or summary info in the form of a system-provided glyph or a number from 1-99. Badges also appear on the task bar icon for an app. -
commands
Specifies that the notification is being used to indicate an incoming call or an alarm, with appropriate commands associated with each scenario. -
audio
Specifies a sound to play when a notification is displayed. This element also allows you to mute any notification audio. -
image
Specifies an image used in the template. -
version
The version element sets the version property at the notification requests -
lang
The target locale of the XML payload -
baseUri
A default base URI that is combined with relative URIs in image source attributes. -
tileTemplate
Specifies the content template to use in a tile update. -
toastTemplate
Specifies the template to use in a toast notification. -
rawData
The rawData element represents a certain WNS push schema (wns/raw). -
message
The message element defines the text attribute for tile and toast notifications. -
build
-