Instance Property

orientation

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

Declaration

var orientation: AVAudioSession.Orientation? { get }

Discussion

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

See Data Source Orientations 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 location: AVAudioSession.Location?

The location of the data source on the device.

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