Contents

handleConfigChange()

Sets up an observer for the filter configuration change notification and models it as an asynchronous sequence.

Declaration

func handleConfigChange() -> any AsyncSequence<Bool, Never>

Discussion

The AsyncSequence created by this method produces a Boolean true value every time the filter posts the NEURLFilterConfigurationDidChange notification.

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

See Also

Working with the filter configuration