---
title: metadataIfAvailable
framework: imagecapturecore
role: symbol
role_heading: Instance Property
path: imagecapturecore/iccameraitem/metadataifavailable
---

# metadataIfAvailable

The item’s metadata if it is readily available.

## Declaration

```swift
var metadataIfAvailable: [String : Any]? { get }
```

## Discussion

Discussion If metadata is not readily available, accessing this property will send a message to the device requesting metadata for the file. The delegate of the device will be notified via method cameraDevice(_:didReceiveMetadataFor:), if this method is implemented by the delegate. Execution of the delegate callback will occur on the main thread.

## See Also

### Requesting Metadata

- [requestMetadata()](imagecapturecore/iccameraitem/requestmetadata().md)
- [metadata](imagecapturecore/iccameraitem/metadata.md)
- [flushMetadataCache()](imagecapturecore/iccameraitem/flushmetadatacache().md)
- [ICCameraItemMetadataOption](imagecapturecore/iccameraitemmetadataoption.md)
