Instance Property

usesApplicationAudioSession

Indicates whether the capture session will make use of the app’s shared audio session.

Declaration

var usesApplicationAudioSession: Bool { get set }

Discussion

If the value of this property is false, the capture session makes use of a private AVAudioSession instance for audio recording, which may cause interruption if your app uses its own audio session for playback.

For apps linked against iOS 7.0 or newer, this property defaults to true, allowing simultaneous playback and recording.

See Also

Sharing the Application’s Audio Session

var automaticallyConfiguresApplicationAudioSession: Bool

A Boolean value that indicates whether the capture session automatically changes settings in the app’s shared audio session.

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