An array of available data sources for the audio session’s current input port.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
This property returns an array of
AVAudio objects representing available input sources, or
nil if switching between multiple input sources isn’t currently possible. Only certain devices and peripherals, such as an iPhone equipped with both front- and rear-facing microphones, support this feature.
You can observe changes to the value of this property by using key-value observing.