public static enum BleDevice.ReadWriteListener.Target extends Enum<BleDevice.ReadWriteListener.Target> implements UsesCustomNull
BleDevice.ReadWriteListener.ReadWriteEvent.target()
.Modifier and Type | Method and Description |
---|---|
boolean |
isNull()
Returns
true if the object's state represents what would otherwise be Java's built-in null . |
static BleDevice.ReadWriteListener.Target |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BleDevice.ReadWriteListener.Target[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleDevice.ReadWriteListener.Target NULL
BleDevice.ConnectionFailListener.ConnectionFailEvent.txnFailReason()
in some cases.public static final BleDevice.ReadWriteListener.Target CHARACTERISTIC
BleDevice.ReadWriteListener.ReadWriteEvent
returned has to do with a BluetoothGattCharacteristic
under the hood.public static final BleDevice.ReadWriteListener.Target DESCRIPTOR
BleDevice.ReadWriteListener.ReadWriteEvent
returned has to do with a BluetoothGattDescriptor
under the hood.public static final BleDevice.ReadWriteListener.Target RSSI
BleDevice.ReadWriteListener.ReadWriteEvent
is coming in from using BleDevice.readRssi(ReadWriteListener)
or
BleDevice.startRssiPoll(Interval, ReadWriteListener)
.public static final BleDevice.ReadWriteListener.Target MTU
BleDevice.ReadWriteListener.ReadWriteEvent
is coming in from using BleDevice.setMtu(int, ReadWriteListener)
or overloads.public static final BleDevice.ReadWriteListener.Target RELIABLE_WRITE
BleDevice.ReadWriteListener.ReadWriteEvent
is coming in from using reliableWrite_*()
overloads such as BleDevice.reliableWrite_begin(ReadWriteListener)
,
BleDevice.reliableWrite_execute()
, etc.public static final BleDevice.ReadWriteListener.Target CONNECTION_PRIORITY
BleDevice.ReadWriteListener.ReadWriteEvent
is coming in from using BleDevice.setConnectionPriority(BleConnectionPriority, ReadWriteListener)
or overloads.public static BleDevice.ReadWriteListener.Target[] values()
for (BleDevice.ReadWriteListener.Target c : BleDevice.ReadWriteListener.Target.values()) System.out.println(c);
public static BleDevice.ReadWriteListener.Target valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isNull()
UsesCustomNull
true
if the object's state represents what would otherwise be Java's built-in null
.isNull
in interface UsesCustomNull