preferredDataSource
The preferred audio data source for the port.
Declaration
var preferredDataSource: AVAudioSessionDataSourceDescription? { get }Discussion
The value of this property indicates the data source selected using the setPreferredDataSource(_:) method. To see the actual data source, use the selectedDataSource property.
If nil, the port doesn’t support selecting between multiple data sources, or no preferred data source has been selected.