AppleCriticalSound interface

Represents an APNs critical sound

Properties

critical

The critical alert flag. Set to 1 to enable the critical alert.

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. Specify the string “default” to play the system sound.

volume

The volume for the critical alert’s sound. Set this to a value between 0 (silent) and 1 (full volume).

Property Details

critical

The critical alert flag. Set to 1 to enable the critical alert.

critical: number

Property Value

number

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. Specify the string “default” to play the system sound.

name: string

Property Value

string

volume

The volume for the critical alert’s sound. Set this to a value between 0 (silent) and 1 (full volume).

volume: number

Property Value

number