---
title: "lockDoor(withExpectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterdoorlock/lockdoor(withexpectedvalues:expectedvalueinterval:completion:)"
---

# lockDoor(withExpectedValues:expectedValueInterval:completion:)

## Declaration

```swift
func lockDoor(withExpectedValues expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func lockDoor(withExpectedValues expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
