---
title: "queryImage(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterotasoftwareupdateprovider-4p8us/queryimage(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# queryImage(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func queryImage(with params: MTROtaSoftwareUpdateProviderClusterQueryImageParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable (MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams?, (any Error)?) -> Void)
```

```swift
func queryImage(with params: MTROtaSoftwareUpdateProviderClusterQueryImageParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws -> MTROtaSoftwareUpdateProviderClusterQueryImageResponseParams
```
