preferredInput
The preferred input port for audio routing.
Declaration
var preferredInput: AVAudioSessionPortDescription? { get }Discussion
The value of this property indicates the input port selected using the setPreferredInput(_:) method. To see the actual current input port, use the currentRoute property. This property returns nil if you haven’t set a preference or if the previously set preferred input is no longer available.