---
title: "writeAttributeDoorClosedEvents(withValue:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterdoorlock/writeattributedoorclosedevents(withvalue:completionhandler:)"
---

# writeAttributeDoorClosedEvents(withValue:completionHandler:)

## Declaration

```swift
func writeAttributeDoorClosedEvents(withValue value: NSNumber, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributeDoorClosedEvents(withValue value: NSNumber) async throws
```
