Type Method

isFlashAvailableForCameraDevice:

Indicates whether a given camera has flash illumination capability.

Declaration

+ (BOOL)isFlashAvailableForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice;

Parameters

cameraDevice

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

Return Value

YES if cameraDevice can use flash illumination, or NO if it cannot.

See Also

Configuring the Flash Behavior

cameraFlashMode

The flash mode used by the active camera.

UIImagePickerControllerCameraFlashMode

The flash mode to use with the active camera.