Instance Property

location

The location of the data source on the device.

Declaration

var location: AVAudioSession.Location? { get }

Discussion

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.