Type Property

livePhoto

The Live Photo representation of the selected or captured photo.

Declaration

static let livePhoto: UIImagePickerController.InfoKey

Discussion

A Live Photo is a picture, that includes motion and sound from the moments just before and after its capture. On compatible devices, the Camera app captures all photos as Live Photos by default, but the imagePickerController:didFinishPickingImage:editingInfo: method’s image parameter contains only the still image representation.

To obtain the motion and sound content of a live photo for display (using the PHLivePhotoView class), include the kUTTypeImage and kUTTypeLivePhoto identifiers in the allowed media types when configuring an image picker controller. When the user picks or captures a Live Photo, the editingInfo dictionary contains the livePhoto key, with a PHLivePhoto representation of the photo as the corresponding value.

See Also

Editing Keys

static let cropRect: UIImagePickerController.InfoKey

Specifies the cropping rectangle that was applied to the original image.

static let editedImage: UIImagePickerController.InfoKey

Specifies an image edited by the user.

static let imageURL: UIImagePickerController.InfoKey

A key containing the URL of the image file.

static let mediaMetadata: UIImagePickerController.InfoKey

Metadata for a newly-captured photograph.

static let mediaType: UIImagePickerController.InfoKey

Specifies the media type selected by the user.

static let mediaURL: UIImagePickerController.InfoKey

Specifies the filesystem URL for the movie.

static let originalImage: UIImagePickerController.InfoKey

Specifies the original, uncropped image selected by the user.

static let phAsset: UIImagePickerController.InfoKey

The key to use when retrieving a Photos asset for the image.

static let referenceURL: UIImagePickerController.InfoKey

The Assets Library URL for the original version of the picked item.

Deprecated