---
title: "selectAreas(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterservicearea/selectareas(with:completion:)"
---

# selectAreas(with:completion:)

Command SelectAreas

## Declaration

```swift
func selectAreas(with params: MTRServiceAreaClusterSelectAreasParams, completion: @escaping @Sendable (MTRServiceAreaClusterSelectAreasResponseParams?, (any Error)?) -> Void)
```

```swift
func selectAreas(with params: MTRServiceAreaClusterSelectAreasParams) async throws -> MTRServiceAreaClusterSelectAreasResponseParams
```

## Discussion

Discussion This command is used to select a set of device areas, where the device is to operate.
