---
title: "controller(_:suspendedChangedTo:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdevicecontrollerdelegate/controller(_:suspendedchangedto:)"
---

# controller(_:suspendedChangedTo:)

Notify the delegate when the suspended state changed of the controller, after this happens the controller will be in the specified state.

## Declaration

```swift
optional func controller(_ controller: MTRDeviceController, suspendedChangedTo suspended: Bool)
```
