---
title: "getYearDaySchedule(with:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterdoorlock/getyeardayschedule(with:completionhandler:)"
---

# getYearDaySchedule(with:completionHandler:)

## Declaration

```swift
func getYearDaySchedule(with params: MTRDoorLockClusterGetYearDayScheduleParams, completionHandler: @escaping @Sendable (MTRDoorLockClusterGetYearDayScheduleResponseParams?, (any Error)?) -> Void)
```

```swift
func yearDaySchedule(with params: MTRDoorLockClusterGetYearDayScheduleParams) async throws -> MTRDoorLockClusterGetYearDayScheduleResponseParams
```
