Constants to specify the flash mode of a capture device.
SDKs
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
Framework
- AVFoundation
Declaration
typedef enum AVCaptureFlashMode : NSInteger {
...
} AVCaptureFlashMode;
Constants to specify the flash mode of a capture device.
SDKs
Framework
typedef enum AVCaptureFlashMode : NSInteger {
...
} AVCaptureFlashMode;
AVCapture Flash Mode Off
The capture device flash is always off.
AVCapture Flash Mode On
The capture device flash is always on.
AVCapture Flash Mode Auto
The capture device continuously monitors light levels and uses the flash when necessary.
has Flash
Indicates whether the capture device has a flash.
flash Available
Indicates whether the flash is currently available for use.
flash Mode
The device’s current flash mode.
- is Flash Mode Supported:
Returns a Boolean value that indicates whether the device supports the given flash mode.