isCenterStageActive
A Boolean value that indicates whether Center Stage is active on a device.
Declaration
var isCenterStageActive: Bool { get }Discussion
When Center Stage is active, the camera automatically pans, tightens, or widens the field of view as it requires to keep people optimally framed. If an app or a user enables Center Stage, this property value is true if the device supports the feature in its current configuration.
The system imposes the following restrictions on a device when Center Stage is active:
It limits the range of values the device supports for its minAvailableVideoZoomFactor and maxAvailableVideoZoomFactor properties to those of the active capture format’s videoMinZoomFactorForCenterStage and videoMaxZoomFactorForCenterStage, respectively.
It limits the activeVideoMinFrameDuration and activeVideoMaxFrameDuration to the value set by the active capture format’s videoFrameRateRangeForCenterStage property.
The system deactivates Center Stage in the following cases:
You enable depth data delivery on a capture output, such as AVCaptureDepthDataOutput or AVCapturePhotoOutput.
The device supports geometric distortion correction, but you haven’t enabled it by setting the value of isGeometricDistortionCorrectionEnabled to true.
This property is key-value observable.