Instance Method


Stops the DNS proxy.


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



A code indicating why the proxy is being stopped.


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


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