---
title: "cameraDevice(_:shouldGetMetadataOf:)"
framework: imagecapturecore
role: symbol
role_heading: Instance Method
path: "imagecapturecore/iccameradevicedelegate/cameradevice(_:shouldgetmetadataof:)"
---

# cameraDevice(_:shouldGetMetadataOf:)

Tells the client when the camera is about to execute queued requests for the metadata of a specific item.

## Declaration

```swift
optional func cameraDevice(_ cameraDevice: ICCameraDevice, shouldGetMetadataOf item: ICCameraItem) -> Bool
```

## Discussion

Discussion If the request is no longer needed—for example, if the item is no longer displayed on the screen—the client can cancel sending a request to the camera, speeding up the execution queue.

## See Also

### Receiving Metadata

- [cameraDevice(_:didReceiveMetadata:for:error:)](imagecapturecore/iccameradevicedelegate/cameradevice(_:didreceivemetadata:for:error:).md)
- [cameraDevice(_:didReceiveMetadataFor:)](imagecapturecore/iccameradevicedelegate/cameradevice(_:didreceivemetadatafor:).md)
