CriticalSound interface
Stay organized with collections
Save and categorize content based on your preferences.
Represents a critical sound configuration that can be included in the aps
dictionary of an APNs payload.
Signature:
export interface CriticalSound
Properties
Property |
Type |
Description |
critical |
boolean |
The critical alert flag. Set to true to enable the critical alert. |
name |
string |
The name of a sound file in the app's main bundle or in the Library/Sounds folder of the app's container directory. Specify the string "default" to play the system sound. |
volume |
number |
The volume for the critical alert's sound. Must be a value between 0.0 (silent) and 1.0 (full volume). |
CriticalSound.critical
The critical alert flag. Set to true
to enable the critical alert.
Signature:
critical?: boolean;
CriticalSound.name
The name of a sound file in the app's main bundle or in the Library/Sounds
folder of the app's container directory. Specify the string "default" to play the system sound.
Signature:
name: string;
CriticalSound.volume
The volume for the critical alert's sound. Must be a value between 0.0 (silent) and 1.0 (full volume).
Signature:
volume?: number;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-29 UTC.
[null,null,["Last updated 2022-07-29 UTC."],[],[],null,["Represents a critical sound configuration that can be included in the `aps` dictionary of an APNs payload.\n\n**Signature:** \n\n export interface CriticalSound \n\nProperties\n\nCriticalSound.critical\n\nThe critical alert flag. Set to `true` to enable the critical alert.\n\n**Signature:** \n\n critical?: boolean;\n\nCriticalSound.name\n\nThe name of a sound file in the app's main bundle or in the `Library/Sounds` folder of the app's container directory. Specify the string \"default\" to play the system sound.\n\n**Signature:** \n\n name: string;\n\nCriticalSound.volume\n\nThe volume for the critical alert's sound. Must be a value between 0.0 (silent) and 1.0 (full volume).\n\n**Signature:** \n\n volume?: number;"]]