---
title: "changeToMode(with:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterrvccleanmode/changetomode(with:expectedvalues:expectedvalueinterval:completion:)"
---

# changeToMode(with:expectedValues:expectedValueInterval:completion:)

## Declaration

```swift
func changeToMode(with params: MTRRVCCleanModeClusterChangeToModeParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable (MTRRVCCleanModeClusterChangeToModeResponseParams?, (any Error)?) -> Void)
```

```swift
func changeToMode(with params: MTRRVCCleanModeClusterChangeToModeParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws -> MTRRVCCleanModeClusterChangeToModeResponseParams
```
