Package: com.keepsolid.androidkeepsolidcommon.vpnunlimitesdk.api.managers.vpn
prepare
void prepare() throws KSException
onFinish
void onFinish()
setup
void setup(VPNUServer server, boolean obfuscate) throws KSException
startVpn
void startVpn() throws KSException
stopVpn
void stopVpn() throws KSException
onLogout
void onLogout()
addOnStatusChangedListener
void addOnStatusChangedListener(OpenVpnStatusChangedListener openVpnStatusChangedListener)
removeOnStatusChangedListener
void removeOnStatusChangedListener(OpenVpnStatusChangedListener openVpnStatusChangedListener)
getVpnStatus
com.keepsolid.androidkeepsolidcommon.vpnunlimitesdk.vpn.openvpn.OpenVpnStatus getVpnStatus() throws KSException
object of OpenVpnStatus class which represents current VPN connection status
getLastConfiguredServer
VPNUServer getLastConfiguredServer()
A model object which describes a last configured VPN server.
clearLastConfiguration
void clearLastConfiguration()
setVpnReconnectMode
void setVpnReconnectMode(int reconnectMode)
static final java.lang.String STATUS_NOTIFICATION_ACTION
Action of status broadcast
static final java.lang.String STATUS_KEY
Key for status code extra of status broadcast with STATUS_NOTIFICATION_ACTION action.
You can retrieve OpenVpnStatus with following code: int statusCode = intent.getIntExtra(VPNUConfigurator.STATUS_KEY, OpenVpnStatus.STATE_CODE_UNKNOWN); OpenVpnStatus status = new OpenVpnStatus(statusCode);static final java.lang.String ON_NOTIFICATION_CLICK_ACTION
Action of broadcast, thrown then user clicks on VPN Unlimited service notification