stopProxy(with:completionHandler:)
Stops the DNS proxy.
Declaration
func stopProxy(with reason: NEProviderStopReason, completionHandler: @escaping @Sendable () -> Void)func stopProxy(with reason: NEProviderStopReason) asyncParameters
- 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.