Instance Method

stopFilter(with:completionHandler:)

Stop the filter.

Declaration

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

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software