Type Method

isFlashAvailable(for:)

Indicates whether a given camera has flash illumination capability.

Declaration

class func isFlashAvailable(for cameraDevice: UIImagePickerController.CameraDevice) -> Bool

Parameters

cameraDevice

A UIImagePickerController.CameraDevice constant indicating the camera whose flash capability you want to know.

Return Value

true if cameraDevice can use flash illumination, or false if it cannot.

See Also

Configuring the Flash Behavior

var cameraFlashMode: UIImagePickerController.CameraFlashMode

The flash mode used by the active camera.

enum UIImagePickerController.CameraFlashMode

The flash mode to use with the active camera.