AVCaptureDevice.AutoFocusRangeRestriction
Constants to specify the autofocus range of a capture device.
Declaration
enum AutoFocusRangeRestrictionOverview
If you expect to focus primarily on near or far objects, you can use the autoFocusRangeRestriction property to provide a hint to the focusing system. This approach makes autofocus faster, more power efficient, and less error prone. A restriction prioritizes focusing at distances in the specified range, but doesn’t prevent focusing elsewhere if the device finds no focus point within that range.
Topics
Constants
AVCaptureDevice.AutoFocusRangeRestriction.noneAVCaptureDevice.AutoFocusRangeRestriction.nearAVCaptureDevice.AutoFocusRangeRestriction.far