Camera2ExposureLock
public protocol Camera2ExposureLock : Component
Camera exposure lock component.
Allows to lock/unlock the exposure according to a given mode.
-
Whether the mode has been changed and is waiting for change confirmation.
Declaration
Swift
var updating: Bool { get }
-
Supported modes.
Declaration
Swift
var supportedModes: Set<Camera2ExposureLockMode> { get }
-
Current exposure lock mode.
Declaration
Swift
var mode: Camera2ExposureLockMode { get }
-
Locks exposure on current exposure values.
Declaration
Swift
func lockOnCurrentValues()
-
Locks exposure on a given region of interest defined by its center (taken from the video stream).
Declaration
Swift
func lockOnRegion(centerX: Double, centerY: Double)
Parameters
centerX
horizontal position in the video (relative position, from left (0.0) to right (1.0))
centerY
vertical position in the video (relative position, from bottom (0.0) to top (1.0))
-
Unlocks exposure.
Declaration
Swift
func unlock()