Contents

handleStatusChange()

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

Declaration

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

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 status