Locks the lens position at the specified value.
- iOS 8.0+
- Mac Catalyst 13.0+Beta
The lens position. A value of
currentcan be used to indicate that the caller does not wish to specify a value for lensPosition.
A block that is called when
lenshas been set to the value specified and
AVCapture. The block receives a timestamp matching that of the first buffer to which all settings have been applied.
Device .Focus Mode .locked
The timestamp is synchronized to the device clock, and thus must be converted to the master clock before comparison with the timestamps of buffers delivered by AVCaptureVideoDataOutput instance.
The client may pass
nilfor the handler parameter if knowledge of the operation's completion is not required.
This method is the only way to set the
This method throws an
invalid exception if
lens is set to an unsupported level. A
generic exception is thrown if the method is called without first obtaining exclusive access to the receiver using