Type Method

availableCaptureModes(for:)

Returns an array of NSNumber objects indicating the capture modes supported by a given camera device.

Declaration

class func availableCaptureModes(for cameraDevice: UIImagePickerController.CameraDevice) -> [NSNumber]?

Parameters

cameraDevice

A UIImagePickerController.CameraDevice constant indicating the camera you want to interrogate.

Return Value

An array of NSNumber objects indicating the capture modes supported by cameraDevice.

Discussion

See Also

Configuring the Camera Capture Mode

enum UIImagePickerController.CameraCaptureMode

The category of media for the camera to capture.