Speedify SDK for Android 16.1.1
Loading...
Searching...
No Matches
Types.State Enum Reference

State of the VPN. More...

Public Member Functions

 State (int state, boolean stable, boolean loggedIn)
 
boolean stable ()
 Differentiates stable vs transitional states.
 
boolean loggedIn ()
 Are we logged in (authenticated)
 
int state ()
 the number representing this state
 

Static Public Member Functions

static State findState (int statenum)
 Get a State based on its state number.
 

Public Attributes

 LOGGED_OUT =(0,true, false)
 Completely disconnected and unathenticated.
 
 LOGGING_IN =(1,false, false)
 Transitional state as we log in.
 
 LOGGED_IN =(2,true, true)
 Fully authenticated, but not using a speed server.
 
 AUTO_CONNECTING =(3,false, true)
 Transitional state as system automatically connects us to speed server.
 
 CONNECTING =(4,false, true)
 Transitional state as we connect to speed server.
 
 DISCONNECTING =(5,false, true)
 Transitional state as we disconnect from speed server.
 
 CONNECTED =(6,true, true)
 Really connected to a speed server.
 
 OVERLIMIT =(7,true, true)
 All available adapters are overlimit, VPN still in connected state.
 
 UNKNOWN =(-1,true, false)
 Unable to connect to the local Speedify daemon.
 

Detailed Description

State of the VPN.

Since
5.6

Constructor & Destructor Documentation

◆ State()

State ( int state,
boolean stable,
boolean loggedIn )
Since
5.6

Member Function Documentation

◆ findState()

static State findState ( int statenum)
static

Get a State based on its state number.

Parameters
statenuminteger value of state
Returns
State enum
Since
5.6

◆ loggedIn()

boolean loggedIn ( )

Are we logged in (authenticated)

Returns
true if this is a state where the user is logged in
Since
5.6

◆ stable()

boolean stable ( )

Differentiates stable vs transitional states.

Returns
false if this is transitional state (CONNECTING, DISCONNECTING, LOGGING_IN, AUTOCONNECTING)
Since
5.6

◆ state()

int state ( )

the number representing this state

Returns
integer value of state
Since
5.6

Member Data Documentation

◆ AUTO_CONNECTING

AUTO_CONNECTING =(3,false, true)

Transitional state as system automatically connects us to speed server.

Since
5.6

◆ CONNECTED

CONNECTED =(6,true, true)

Really connected to a speed server.

Since
5.6

◆ CONNECTING

CONNECTING =(4,false, true)

Transitional state as we connect to speed server.

Since
5.6

◆ DISCONNECTING

DISCONNECTING =(5,false, true)

Transitional state as we disconnect from speed server.

Since
5.6

◆ LOGGED_IN

LOGGED_IN =(2,true, true)

Fully authenticated, but not using a speed server.

Ready to connect()

Since
5.6

◆ LOGGED_OUT

LOGGED_OUT =(0,true, false)

Completely disconnected and unathenticated.

Need to login() to do anything

Since
5.6

◆ LOGGING_IN

LOGGING_IN =(1,false, false)

Transitional state as we log in.

Since
5.6

◆ OVERLIMIT

OVERLIMIT =(7,true, true)

All available adapters are overlimit, VPN still in connected state.

Since
5.6

◆ UNKNOWN

UNKNOWN =(-1,true, false)

Unable to connect to the local Speedify daemon.

Since
5.6

The documentation for this enum was generated from the following file: