Global Variable

AVCaptureLensPositionCurrent

A special constant representing the current lens position.

Declaration

const float AVCaptureLensPositionCurrent;

Discussion

Pass this value to setFocusModeLockedWithLensPosition:completionHandler: to lock focus (that is, disable autofocus) without changing the lens' current position.

See Also

Managing the Lens Position

lensPosition

Indicates the focus position of the lens.

- setFocusModeLockedWithLensPosition:completionHandler:

Locks the lens position at the specified value.

lockingFocusWithCustomLensPositionSupported

A Boolean value indicating whether the device supports locking focus to a specific lens position.