Constants to specify the focus mode of a capture device.
SDKs
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
Framework
- AVFoundation
Declaration
enum FocusMode : Int
Constants to specify the focus mode of a capture device.
SDKs
Framework
enum FocusMode : Int
case locked
The device has its focus locked.
case auto Focus
The device automatically adjusts the focus once and then changes the focus mode to AVCapture
.
case continuous Auto Focus
The device continuously monitors focus and autofocuses when necessary.
var focus Mode: AVCapture Device .Focus Mode
The capture device’s focus mode.
func is Focus Mode Supported(AVCapture Device .Focus Mode) -> Bool
Returns a Boolean value that indicates whether the device supports the given focus mode.
var focus Point Of Interest: CGPoint
The point of interest for focusing.
var is Focus Point Of Interest Supported: Bool
Indicates whether the device supports a point of interest for focus.
var is Adjusting Focus: Bool
Indicates whether the device is currently adjusting its focus setting.
var is Smooth Auto Focus Enabled: Bool
A Boolean value that determines whether the device has smooth autofocus enabled.
var is Smooth Auto Focus Supported: Bool
A Boolean value that indicates whether the device supports smooth autofocus.
var auto Focus Range Restriction: AVCapture Device .Auto Focus Range Restriction
A value controlling the allowable range for automatic focusing.
var is Auto Focus Range Restriction Supported: Bool
A Boolean value that indicates whether the device supports focus range restrictions.
enum AVCapture Device .Auto Focus Range Restriction
Constants to specify the autofocus range of a capture device.