---
title: "readAttributeBoolean(completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterunittesting/readattributeboolean(completion:)"
---

# readAttributeBoolean(completion:)

## Declaration

```swift
func readAttributeBoolean(completion: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
func readAttributeBoolean() async throws -> NSNumber
```
