Instance Property

orientation

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

Declaration

var orientation: AVAudioSession.Orientation? { get }

Discussion

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

See Also

Retrieving the Data Source Orientation

struct AVAudioSession.Orientation

Constants that describe the orientation or directionality of the data source on an iOS device.

Data Source Orientations

These values indicate the directions in which a data source can point, relative to the device’s natural orientation.