Type Method


Returns an array of the available media types for the specified source type.


class func availableMediaTypes(for sourceType: UIImagePickerController.SourceType) -> [String]?



The source to use to pick an image.

Return Value

An array whose elements identify the available media types for the specified source type.


Some iOS devices support video recording. Use this method, along with the isSourceTypeAvailable(_:) method, to determine if video recording is available on a device. The availability of video recording is indicated by the presence of the kUTTypeMovie media type for the UIImagePickerController.SourceType.camera source type.

See Also

Setting the Picker Source

class func isSourceTypeAvailable(UIImagePickerController.SourceType) -> Bool

Returns a Boolean value indicating whether the device supports picking media using the specified source type.

var sourceType: UIImagePickerController.SourceType

The type of picker interface to be displayed by the controller.

enum UIImagePickerController.SourceType

The source to use when picking an image or when determining available media types.