Contents

availableInputs

An array of input ports available for audio routing.

Declaration

var availableInputs: [AVAudioSessionPortDescription]? { get }

Discussion

The active audio session category and mode determine the number of inputs this property returns. For example, if the session’s category is playAndRecord, the array may contain a built-in microphone port and, if connected, a headset microphone port. Alternatively, if the session’s category is playback, this property returns an empty array.

See Also

Configuring inputs