---
title: stateUpdateHandler
framework: network
role: symbol
role_heading: Instance Property
path: network/nwconnectiongroup/stateupdatehandler
---

# stateUpdateHandler

A handler that receives connection group state updates.

## Declaration

```swift
@preconcurrency final var stateUpdateHandler: (@Sendable (NWConnectionGroup.State) -> Void)? { get set }
```

## See Also

### Managing Groups

- [NWConnectionGroup.State](network/nwconnectiongroup/state-swift.enum.md)
- [state](network/nwconnectiongroup/state-swift.property.md)
- [cancel()](network/nwconnectiongroup/cancel().md)
