Enumeration

AVCaptureDevice.FocusMode

Constants to specify the focus mode of a capture device.

Declaration

enum FocusMode : Int

Topics

Constants

case locked

The device has its focus locked.

case autoFocus

The device automatically adjusts the focus once and then changes the focus mode to AVCaptureDevice.FocusMode.locked.

case continuousAutoFocus

The device continuously monitors focus and autofocuses when necessary.

See Also

Managing Focus Settings

var focusMode: AVCaptureDevice.FocusMode

The capture device’s focus mode.

func isFocusModeSupported(AVCaptureDevice.FocusMode) -> Bool

Returns a Boolean value that indicates whether the device supports the given focus mode.

var focusPointOfInterest: CGPoint

The point of interest for focusing.

var isFocusPointOfInterestSupported: Bool

Indicates whether the device supports a point of interest for focus.

var isAdjustingFocus: Bool

Indicates whether the device is currently adjusting its focus setting.

var isSmoothAutoFocusEnabled: Bool

A Boolean value that determines whether the device has smooth autofocus enabled.

var isSmoothAutoFocusSupported: Bool

A Boolean value that indicates whether the device supports smooth autofocus.

var autoFocusRangeRestriction: AVCaptureDevice.AutoFocusRangeRestriction

A value controlling the allowable range for automatic focusing.

var isAutoFocusRangeRestrictionSupported: Bool

A Boolean value that indicates whether the device supports focus range restrictions.

enum AVCaptureDevice.AutoFocusRangeRestriction

Constants to specify the autofocus range of a capture device.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software