Contents

secondaryAudioShouldBeSilencedHint

A Boolean value that indicates whether another app, with a nonmixable audio session, is playing audio.

Declaration

var secondaryAudioShouldBeSilencedHint: Bool { get }

Discussion

Use this property as a hint to silence audio that’s secondary to the functionality of the app. For example, in a game that uses the ambient category, you can use this property to mute the soundtrack while leaving sound effects unmuted.

See Also

Mixing with other audio