---
title: "change(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterchannel/change(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

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

## Declaration

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

```swift
func change(with params: MTRChannelClusterChangeChannelParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws -> MTRChannelClusterChangeChannelResponseParams
```
