Instance Property

secondaryAudioShouldBeSilencedHint

A Boolean value that indicates whether another application is playing audio.

Declaration

var secondaryAudioShouldBeSilencedHint: Bool { get }

Discussion

The value is true when another application with a non-mixable audio session is playing audio.

Applications should use this property as a hint to silence audio that is secondary to the functionality of the application. For example, a game using ambient can use this property to decide to mute its soundtrack while leaving its sound effects unmuted.

See Also

Responding to Other Audio

var isOtherAudioPlaying: Bool

A Boolean value indicating whether another app is currently playing audio.