CameraExposureLock

public protocol CameraExposureLock : AnyObject

Camera exposure lock.

Allows to lock/unlock the exposure according to a given mode.

  • Tells if the mode has been changed and is waiting for change confirmation.

    Declaration

    Swift

    var updating: Bool { get }
  • Current lock mode.

    Declaration

    Swift

    var mode: CameraExposureLockMode { 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()