One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVCaptureDevice.RotationCoordinator

class · iOS 17.0+ · SDK 27.1

class RotationCoordinator

Members (6)

init · iOS 17.0+

init

TypeScript
static init(device: AVCaptureDevice, previewLayer?: (_QuartzCore_CALayer) | null): AVCaptureDevice_RotationCoordinator
Swift declaration
init(device: AVCaptureDevice, previewLayer: CALayer?)
method · iOS 27.0+

videoRotationAngleRelative

TypeScript
videoRotationAngleRelative(deviceOrientation: AVCaptureVideoOrientation): number
Swift declaration
func videoRotationAngleRelative(toDeviceOrientation deviceOrientation: AVCaptureVideoOrientation) -> CGFloat
get · iOS 17.0+

device

TypeScript
get device(): (AVCaptureDevice) | null
Swift declaration
weak var device: AVCaptureDevice? { get }
get · iOS 17.0+

previewLayer

TypeScript
get previewLayer(): (_QuartzCore_CALayer) | null
Swift declaration
weak var previewLayer: CALayer? { get }
get · iOS 17.0+

videoRotationAngleForHorizonLevelCapture

TypeScript
get videoRotationAngleForHorizonLevelCapture(): number
Swift declaration
var videoRotationAngleForHorizonLevelCapture: CGFloat { get }
get · iOS 17.0+

videoRotationAngleForHorizonLevelPreview

TypeScript
get videoRotationAngleForHorizonLevelPreview(): number
Swift declaration
var videoRotationAngleForHorizonLevelPreview: CGFloat { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AVCaptureDevice.RotationCoordinator.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All AVFoundation types →