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

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

## Declaration

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

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