Instance Property


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


var isOtherAudioPlaying: Bool { get }


In iOS 8.0 and later applications should use secondaryAudioShouldBeSilencedHint instead of this property.

This property will be true if any other audio (including audio from an app using ambient is playing, whereas the secondaryAudioShouldBeSilencedHint property is more restrictive in its consideration of whether primary audio from another application is playing.

See Also

Responding to Other Audio

var secondaryAudioShouldBeSilencedHint: Bool

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software