---
title: "writeAttributeBoolean(withValue:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustertestcluster/writeattributeboolean(withvalue:completionhandler:)"
---

# writeAttributeBoolean(withValue:completionHandler:)

## Declaration

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

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