---
title: "on(with:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusteronoff/on(with:completionhandler:)"
---

# on(with:completionHandler:)

## Declaration

```swift
func on(with params: MTROnOffClusterOnParams?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func on(with params: MTROnOffClusterOnParams?) async throws
```
