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

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

## Declaration

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

```swift
func stopWithOnOff(with params: MTRLevelControlClusterStopWithOnOffParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
