Class WnsNotificationAudio.Builder

java.lang.Object
com.sap.mobile.services.client.push.WnsNotificationAudio.Builder
Enclosing interface:
WnsNotificationAudio

public static final class WnsNotificationAudio.Builder extends Object
Specifies a sound to play when a toast notification is displayed. This element also allows you to mute any toast notification audio.
See Also:
  • 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

      public WnsNotificationAudio.Builder silent(Boolean 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

      public WnsNotificationAudio build()