---
title: "readAttributeLockState(completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterdoorlock/readattributelockstate(completionhandler:)"
---

# readAttributeLockState(completionHandler:)

## Declaration

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

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