DeviceState

public enum DeviceState extends Enum<DeviceState>

Enum describing the possible states of the IDeviceCompat

Entries

Link copied to clipboard

The device is disconnected.

Link copied to clipboard

The device is busy establishing a connection with the host device.

Link copied to clipboard

The device is busy; a connection has been opened but services are being discovered.

Link copied to clipboard

The device is busy; a connection has been opened but characteristic notification / subscriptions are pending.

Link copied to clipboard

The device is busy with a data transfer to the host device.

Link copied to clipboard

The device is busy executing a command.

Link copied to clipboard

The device is idle and ready to receive commands. This is the only state where commands can be successfully executed.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
private final String name
Link copied to clipboard
private final Integer ordinal
Link copied to clipboard
private final Integer value

Functions

Link copied to clipboard

Enum describing the possible states of the IDeviceCompat

Link copied to clipboard
public final String getName()
Link copied to clipboard
public final Integer getOrdinal()
Link copied to clipboard
public final Integer getValue()
Link copied to clipboard
public final DeviceState valueOf(String value)

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.)

Link copied to clipboard
public final Array<DeviceState> values()

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