Contents

isFlashModeSupported(_:)

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

Declaration

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

Parameters

  • flashMode:

    A flash mode to test if the device supports.

Return Value

true if the device supports the flash mode; otherwise, false.

See Also

Configuring flash settings