Class WnsNotificationAudio.Builder
java.lang.Object
com.sap.mobile.services.client.push.WnsNotificationAudio.Builder
- Enclosing interface:
- WnsNotificationAudio
Specifies a sound to play when a toast notification is displayed. This
element also allows you to mute any
toast notification audio.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Set to true if the sound should repeat as long as the toast is shown; false to play only once.True to mute the sound; false to allow the toast notification sound to playThe media file to play in place of the default sound
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
loop
Set to true if the sound should repeat as long as the toast is shown; false to play only once. If this attribute is set to true, the duration attribute in the toast element must also be set. There are specific sounds provided to be used when looping. Note that UWP apps support neither looping audio nor long-duration toasts. -
silent
True to mute the sound; false to allow the toast notification sound to play -
src
The media file to play in place of the default sound -
build
-