---
title: "changeToMode(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustermodeselect/changetomode(with:completion:)"
---

# changeToMode(with:completion:)

## Declaration

```swift
func changeToMode(with params: MTRModeSelectClusterChangeToModeParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func changeToMode(with params: MTRModeSelectClusterChangeToModeParams) async throws
```
