---
title: "writeAttributeBarrierCloseEvents(withValue:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterbarriercontrol/writeattributebarriercloseevents(withvalue:completionhandler:)"
---

# writeAttributeBarrierCloseEvents(withValue:completionHandler:)

## Declaration

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

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