---
title: "cancelRecordProgram(with:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterchannel/cancelrecordprogram(with:expectedvalues:expectedvalueinterval:completion:)"
---

# cancelRecordProgram(with:expectedValues:expectedValueInterval:completion:)

## Declaration

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

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