<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEURLFilterManager/handleStatusChange()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "s:16NetworkExtension18NEURLFilterManagerC18handleStatusChangeSci_pAC0F0O7ElementSciRts_s5NeverO7FailureSciRtsXPyF"
  },
  "title" : "handleStatusChange()"
}
-->

# handleStatusChange()

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

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

## Discussion

The <doc://com.apple.documentation/documentation/Swift/AsyncSequence> created by this method produces a new status every time the filter posts the <doc://com.apple.documentation/documentation/Foundation/NSNotification/Name-swift.struct/NEURLFilterStatusDidChange> notification.

Use this method to watch for the status change notification and react to it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)