stopProxy(with:completionHandler:)
Stop the network proxy.
Declaration
func stopProxy(with reason: NEProviderStopReason, completionHandler: @escaping @Sendable () -> Void)func stopProxy(with reason: NEProviderStopReason) asyncParameters
- reason:
A
NEProviderStopReasoncode indicating why the proxy is being stopped. For a list of possible codes, see Neprovider. - completionHandler:
A block that must be executed when the proxy is fully stopped.
Discussion
This method is called by the system to stop the network proxy.
NEAppProxyProvider subclasses must override this method.
Do not use this method to stop the proxy from the App Proxy Provider. Use cancelProxyWithError: instead.