Type Method

availableMediaTypesForSourceType:

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

Declaration

+ (NSArray<NSString *> *)availableMediaTypesForSourceType:(UIImagePickerControllerSourceType)sourceType;

Parameters

sourceType

The source to use to pick an image.

Return Value

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

Discussion

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 UIImagePickerControllerSourceTypeCamera source type.

See Also

Setting the Picker Source

+ isSourceTypeAvailable:

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

sourceType

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

UIImagePickerControllerSourceType

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