Instance Method

isFlashModeSupported(_:)

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

Declaration

func isFlashModeSupported(_ flashMode: AVCaptureDevice.FlashMode) -> Bool

Parameters

flashMode

A flash mode. See AVCaptureDevice.FlashMode for possible values.

Return Value

true if flashMode is supported, otherwise false.

See Also

Managing Flash Settings

var hasFlash: Bool

Indicates whether the capture device has a flash.

var isFlashActive: Bool

Indicates whether the flash is currently active.

Deprecated
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.