Instance Method


Stop the network proxy.


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



A NEProviderStopReason code indicating why the proxy is being stopped. For a list of possible codes, see NEProvider.


A block that must be executed when the proxy is fully stopped.


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.

See Also

Managing the App Proxy Life Cycle

func cancelProxyWithError(Error?)

Stop the network proxy from the App Proxy Provider.

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