---
title: "setYearDayScheduleWith(_:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterdoorlock/setyeardayschedulewith(_:expectedvalues:expectedvalueinterval:completion:)"
---

# setYearDayScheduleWith(_:expectedValues:expectedValueInterval:completion:)

## Declaration

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

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