Contents

UIImagePickerController.CameraFlashMode

Constants that specify the flash mode to use with the active camera.

Declaration

enum CameraFlashMode

Overview

The constants in this enumeration are for use as values of the cameraFlashMode property.

The behavior of the flash depends on the camera capture mode.

For a given camera on a device, flash may or may not be available. You specify the active camera by way of the cameraDevice property. You can determine if the active camera has flash available by calling the isFlashAvailable(for:) class method.

You can manipulate the flash directly to provide effects such as a strobe light. Present a picker interface set to use video capture mode. Then, turn the flash LED on or off by setting the cameraFlashMode property to UIImagePickerController.CameraFlashMode.on or UIImagePickerController.CameraFlashMode.off.

Topics

Constants

Initializers

See Also

Configuring the flash behavior