public static enum BleTransaction.EndReason extends java.lang.Enum<BleTransaction.EndReason>
BleTransaction.onEnd(EndReason)
.Enum Constant and Description |
---|
CANCELLED
The transaction's
BleDevice became BleDeviceState.BLE_DISCONNECTED
or/and BleManager went BleManagerState.OFF . |
FAILED
BleTransaction.fail() was called. |
SUCCEEDED
BleTransaction.succeed() was called. |
Modifier and Type | Method and Description |
---|---|
static BleTransaction.EndReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleTransaction.EndReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleTransaction.EndReason SUCCEEDED
BleTransaction.succeed()
was called.public static final BleTransaction.EndReason CANCELLED
BleDevice
became BleDeviceState.BLE_DISCONNECTED
or/and BleManager
went BleManagerState.OFF
.public static final BleTransaction.EndReason FAILED
BleTransaction.fail()
was called.public static BleTransaction.EndReason[] values()
for (BleTransaction.EndReason c : BleTransaction.EndReason.values()) System.out.println(c);
public static BleTransaction.EndReason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null