---
title: "setYearDayScheduleWith(_:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterdoorlock/setyeardayschedulewith(_:completion:)"
---

# setYearDayScheduleWith(_:completion:)

## Declaration

```swift
func setYearDayScheduleWith(_ params: MTRDoorLockClusterSetYearDayScheduleParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func setYearDayScheduleWith(_ params: MTRDoorLockClusterSetYearDayScheduleParams) async throws
```
