ConnectionStatus¶
-
public enum
ConnectionStatus
¶ The different statuses for a connection.
Enum Constants¶
AVAILABLE¶
-
public static final ConnectionStatus
AVAILABLE
¶ Indicates that this device is detected and available for connection, but not connected.
CONNECTED¶
-
public static final ConnectionStatus
CONNECTED
¶ The connection is now ready to read/write.
CONNECTING¶
-
public static final ConnectionStatus
CONNECTING
¶ Transitioning from disconnected to connected.
DISCONNECTED¶
-
public static final ConnectionStatus
DISCONNECTED
¶ The connection object is disconnected.
DISCONNECTING¶
-
public static final ConnectionStatus
DISCONNECTING
¶ Transitioning from connected to disconnected. This should only happen when intentionally disconnecting, i.e., when
ConnectionInterface.finished
is called. In cases where a connection is suddenly lost, the connection status should change directly from CONNECTED to DISCONNECTED without this intermediate state.
UNKNOWN_ERROR¶
-
public static final ConnectionStatus
UNKNOWN_ERROR
¶ A general error occurred which can’t be handled by some other status/mechanism. This should rarely be used.