---
title: "keepActive(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterbridgeddevicebasicinformation/keepactive(with:completion:)"
---

# keepActive(with:completion:)

Command KeepActive

## Declaration

```swift
func keepActive(with params: MTRBridgedDeviceBasicInformationClusterKeepActiveParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func keepActive(with params: MTRBridgedDeviceBasicInformationClusterKeepActiveParams) async throws
```

## Discussion

Discussion Upon receipt, the server SHALL attempt to keep the bridged device active for the duration specified by the command, when the device is next active.
