GSCameraExposureLock
@objc
public protocol GSCameraExposureLock
Camera exposure lock.
Allows to lock/unlock the exposure according to a given mode.
Note
This protocol is for Objective-C compatibility only.-
Tells if a setting value has been changed and is waiting for change confirmation.
Declaration
Swift
var updating: Bool { get }
-
Current lock mode.
Declaration
Swift
@objc(mode) var gsMode: GSCameraExposureLockMode { get }
-
Horizontal position of the region center in the video (relative position, from left (0.0) to right (1.0)). Only accurate when mode is
.region
.Declaration
Swift
var regionCenterX: Double { get }
-
Vertical position of the region center in the video (relative position, from bottom (0.0) to top (1.0)). Only accurate when mode is
.region
.Declaration
Swift
var regionCenterY: Double { get }
-
Width of the region (relative to the video stream width, from 0.0 to 1.0). Only accurate when mode is
.region
.Declaration
Swift
var regionWidth: Double { get }
-
Height of the region (relative to the video stream height, from 0.0 to 1.0). Only accurate when mode is
.region
.Declaration
Swift
var regionHeight: Double { 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
horizontal
Horizontal position in the video (relative position, from left (0.0) to right (1.0))
vertical
vertical position in the video (relative position, from bottom (0.0) to top (1.0))
-
Unlocks exposure.
Declaration
Swift
func unlock()