---
title: "stopMotion(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterwindowcovering/stopmotion(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

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

## Declaration

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

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