Instance Method

stopProxyWithReason:completionHandler:

Stop the network proxy.

Declaration

- (void)stopProxyWithReason:(NEProviderStopReason)reason completionHandler:(void (^)(void))completionHandler;

Parameters

reason

A NEProviderStopReason code 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.

See Also

Managing the App Proxy Life Cycle

- cancelProxyWithError:

Stop the network proxy from the App Proxy Provider.