Skip to main content

BleConnectionState

Enum Class: BleConnectionState

Represents BLE Connection State

Properties​

name: String​

ordinal: Int​

Connection States​

CONNECTED​

CONNECTED

Ble Terminal has connected to the device and ready to send action

DISCONNECTED​

DISCONNECTED

Ble Terminal is disconnected. BleTerminal.getBleConnectionState() also returns DISCONNECTED while a connection attempt is in progress, until the terminal has accepted the key.

CONNECTING​

CONNECTING

Ble Terminal is in the process of connecting. BleTerminal.getBleConnectionState() does not report it during a connection attempt (scan, Bluetooth connection and authentication): track the attempt in your app from scanAndConnectToPeripheral() until onTerminalConnected or onError.

Functions​

valueOf(value: String): BleConnectionState​

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws IllegalArgumentException if this enum type has no constant with the specified name

values(): Array<BleConnectionState>​

Returns an array containing the constants of this enum type, in the order they're declared.

See Also​