The orientation of the data source relative to the device’s natural orientation.
SDKs
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- AVFoundation
Declaration
var orientation: AVAudio Session.Orientation? { get }
Discussion
If nil
, the data source’s orientation is not known.
See Data Source Orientations for possible values.