Instance Property

location

The location of the data source on the device.

Declaration

var location: AVAudioSession.Location? { get }

Discussion

If nil, the data source’s location is not known.

See Data Source Locations for possible values.

See Also

Getting Data Source Information

var dataSourceID: NSNumber

The system-assigned identifier for the data source.

var dataSourceName: String

A human-readable name for the data source.

var orientation: AVAudioSession.Orientation?

The orientation of the data source relative to the device’s natural orientation.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software