---
title: handleStatusChange()
framework: networkextension
role: symbol
role_heading: Instance Method
path: networkextension/neurlfiltermanager/handlestatuschange()
---

# handleStatusChange()

Sets up an observer for the status notification and models it as an asynchronous sequence.

## Declaration

```swift
func handleStatusChange() -> any AsyncSequence<NEURLFilterManager.Status, Never>
```

## Discussion

Discussion The AsyncSequence created by this method produces a new status every time the filter posts the NEURLFilterStatusDidChange notification. Use this method to watch for the status change notification and react to it.

## See Also

### Working with filter statuses

- [status](networkextension/neurlfiltermanager/status-swift.property.md)
- [NEURLFilterManager.Status](networkextension/neurlfiltermanager/status-swift.enum.md)
