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

# readAttributeLockState(completion:)

## Declaration

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

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