Contents

allowAirPlay

An option that determines whether you can stream audio from this session to AirPlay devices.

Declaration

static var allowAirPlay: AVAudioSession.CategoryOptions { get }

Discussion

Setting this option enables the audio session to route audio output to AirPlay devices. You can only explicitly set this option if the audio session’s category is set to playAndRecord. For most other audio session categories, the system sets this option implicitly.

Audio sessions using the multiRoute or record categories implicitly clear this option.

See Also

Category options