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.