Contents

stopFilter(with:completionHandler:)

Stop the filter.

Declaration

func stopFilter(with reason: NEProviderStopReason, completionHandler: @escaping  @Sendable () -> Void)
func stopFilter(with reason: NEProviderStopReason) async

Parameters

  • reason:

    An NEProviderStopReason code indicating why the filter is being stopped. For a list of possible codes, see Neprovider.

  • completionHandler:

    A block that must be executed when the filter is fully stopped.

Discussion

This method is called by the system to stop the filter.

NEFilterProvider subclasses must override this method.

See Also

Managing the filter life cycle