Contents

isTorchModeSupported(_:)

Returns a Boolean value that indicates whether the device supports the specified torch mode.

Declaration

func isTorchModeSupported(_ torchMode: AVCaptureDevice.TorchMode) -> Bool

Parameters

  • torchMode:

    The desired torch mode.

Return Value

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

See Also

Configuring torch settings