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