---
title: "openWindow(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusteradministratorcommissioning/openwindow(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# openWindow(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func openWindow(with params: MTRAdministratorCommissioningClusterOpenCommissioningWindowParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func openWindow(with params: MTRAdministratorCommissioningClusterOpenCommissioningWindowParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
