---
title: "setWeekDayScheduleWith(_:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterdoorlock/setweekdayschedulewith(_:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# setWeekDayScheduleWith(_:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

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

```swift
func setWeekDayScheduleWith(_ params: MTRDoorLockClusterSetWeekDayScheduleParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
