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

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

## Declaration

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

```swift
func stop(with params: MTRMediaPlaybackClusterStopPlaybackParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws -> MTRMediaPlaybackClusterPlaybackResponseParams
```
