| java.lang.Object | |
| ↳ | com.google.firebase.messaging.CriticalSound.Builder |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CriticalSound |
build()
Builds a new
CriticalSound instance from the fields set on this builder. | ||||||||||
| CriticalSound.Builder |
setCritical(boolean critical)
Sets the critical alert flag on the sound configuration.
| ||||||||||
| CriticalSound.Builder |
setName(String name)
The name of a sound file in your app's main bundle or in the
Library/Sounds folder
of your app’s container directory. | ||||||||||
| CriticalSound.Builder |
setVolume(double volume)
The volume for the critical alert's sound.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Builds a new CriticalSound instance from the fields set on this builder.
CriticalSound.| IllegalArgumentException | If the volume value is out of range. |
|---|
Sets the critical alert flag on the sound configuration.
| critical | True to set the critical alert flag. |
|---|
The name of a sound file in your app's main bundle or in the Library/Sounds folder
of your app’s container directory. Specify the string default to play the system
sound.
| name | Sound file name. |
|---|
The volume for the critical alert's sound. Must be a value between 0.0 (silent) and 1.0 (full volume).
| volume | A volume between 0.0 (inclusive) and 1.0 (inclusive). |
|---|