Instance Method

stopProxy(with:completionHandler:)

Stops the DNS proxy.

Declaration

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

Parameters

reason

A code indicating why the proxy is being stopped.

completionHandler

A block that must be called when the proxy is completely stopped.

Discussion

Subclasses of NEDNSProxyProvider must override this method to perform whatever steps are necessary to stop the proxy.

The system calls this method to stop the proxy. You indicate that the proxy is fully stopped by calling the completion handler.

See Also

Managing the DNS Proxy 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