Instance Property


The location of the data source on the device.


var location: AVAudioSession.Location? { get }


This property returns nil if the data source’s location isn’t known.

See Also

Retrieving the Data Source Location

struct AVAudioSession.Location

Constants that describe the location of the data source on device.

Data Source Locations

These values represent the available locations for an audio session data source.