respectSilence property
Whether the "silent" mode of the device should be respected.
When false
(the default), audio will be played even if the device is in
silent mode.
When true
and the device is in silent mode, audio will not be played.
On Android, this will mandate the USAGE_NOTIFICATION_RINGTONE
usage
type.
On iOS, setting this mandates the AVAudioSessionCategory.ambient category, and it will be:
- silenced by rings
- silenced by the Silent switch
- silenced by screen locking (note: read stayAwake for details on this).
Implementation
final bool respectSilence;