Data Source Orientations

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

Topics

Orientations

static let orientationFront: AVAudioSession.Location

A data source that points outward from the front of the device, toward the user.

static let orientationBack: AVAudioSession.Location

A data source that points outward from the back of the device, away from the user.

static let orientationLeft: AVAudioSession.Location

A data source that points outward to the left of the device, away from the user.

static let orientationRight: AVAudioSession.Location

A data source that points outward to the right of the device, away from the user.

See Also

Retrieving the Data Source Orientation

var orientation: AVAudioSession.Orientation?

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

struct AVAudioSession.Orientation

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