Instance Property

isFlashActive

Indicates whether the flash is currently active.

Declaration

var isFlashActive: Bool { get }

Discussion

When the flash is active, it will flash if a still image is captured.

You can observe changes to the value of this property using Key-value observing.

See Also

Managing Flash Settings

var hasFlash: Bool

Indicates whether the capture device has a flash.

var isFlashAvailable: Bool

Indicates whether the flash is currently available for use.

enum AVCaptureDevice.FlashMode

Constants to specify the flash mode of a capture device.

var flashMode: AVCaptureDevice.FlashMode

The device’s current flash mode.

func isFlashModeSupported(AVCaptureDevice.FlashMode) -> Bool

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