---
title: mediaMetadata
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiimagepickercontroller/infokey/mediametadata
---

# mediaMetadata

Metadata for a newly-captured photograph.

## Declaration

```swift
static let mediaMetadata: UIImagePickerController.InfoKey
```

## Discussion

Discussion This key is valid only when using an image picker whose source type is set to UIImagePickerController.SourceType.camera, and applies only to still images. The value for this key is an NSDictionary object that contains the metadata of the photo that was just captured. To store the metadata along with the image in the Camera Roll, use the PHAssetChangeRequest class from the Photos framework.

## See Also

### Constants

- [cropRect](uikit/uiimagepickercontroller/infokey/croprect.md)
- [editedImage](uikit/uiimagepickercontroller/infokey/editedimage.md)
- [imageURL](uikit/uiimagepickercontroller/infokey/imageurl.md)
- [livePhoto](uikit/uiimagepickercontroller/infokey/livephoto.md)
- [mediaType](uikit/uiimagepickercontroller/infokey/mediatype.md)
- [mediaURL](uikit/uiimagepickercontroller/infokey/mediaurl.md)
- [originalImage](uikit/uiimagepickercontroller/infokey/originalimage.md)
- [phAsset](uikit/uiimagepickercontroller/infokey/phasset.md)
- [referenceURL](uikit/uiimagepickercontroller/infokey/referenceurl.md)
