stopConnection(String profileName)
2 min
Stops an active VPN session for the specified VPN profile.
Syntax:
int stopConnection(String profileName)
Parameters:
The profileName is the name of the VPN profile.
Returns:
This method returns 0 on success, 1 if the profile does not exist, and -1 on other errors.
When stopConnection() returns 0, it means that a VPN session is being shut down, but is not yet complete. The caller can call getState() to obtain the VPN state.
Since:
R3