---
title: "stepWithOnOff(with:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterlevelcontrol/stepwithonoff(with:completionhandler:)"
---

# stepWithOnOff(with:completionHandler:)

## Declaration

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

```swift
func stepWithOnOff(with params: MTRLevelControlClusterStepWithOnOffParams) async throws
```
