Enumeration

AVCaptureDevice.FlashMode

Constants to specify the flash mode of a capture device.

Declaration

enum FlashMode : Int

Topics

Constants

case off

The capture device flash is always off.

case on

The capture device flash is always on.

case auto

The capture device continuously monitors light levels and uses the flash when necessary.

See Also

Managing Flash Settings

var hasFlash: Bool

Indicates whether the capture device has a flash.

func isFlashModeSupported(AVCaptureDevice.FlashMode) -> Bool

Returns a Boolean value that indicates whether the given flash mode is supported.

var isFlashActive: Bool

Indicates whether the flash is currently active.

Deprecated
var isFlashAvailable: Bool

Indicates whether the flash is currently available for use.