public static enum ReadWriteListener.Target extends java.lang.Enum<ReadWriteListener.Target> implements UsesCustomNull
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 ReadWriteListener.Target |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReadWriteListener.Target[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadWriteListener.Target NULL
DeviceReconnectFilter.ConnectFailEvent.txnFailReason()
in some cases.public static final ReadWriteListener.Target CHARACTERISTIC
ReadWriteListener.ReadWriteEvent
returned has to do with a BluetoothGattCharacteristic
under the hood.public static final ReadWriteListener.Target CHARACTERISTIC_TEST_MTU
ReadWriteListener.ReadWriteEvent
returned has to do with testing the MTU size change after calling BleDevice.negotiateMtu(int)
. Functionally,
this is no different that a normal write, this target just calls out this particular write as being used to test the new MTU size.public static final ReadWriteListener.Target DESCRIPTOR
ReadWriteListener.ReadWriteEvent
returned has to do with a BluetoothGattDescriptor
under the hood.public static final ReadWriteListener.Target RSSI
ReadWriteListener.ReadWriteEvent
is coming in from using BleDevice.readRssi(ReadWriteListener)
or
BleDevice.startRssiPoll(Interval, ReadWriteListener)
.public static final ReadWriteListener.Target MTU
ReadWriteListener.ReadWriteEvent
is coming in from using BleDevice.negotiateMtu(int, ReadWriteListener)
or overloads.public static final ReadWriteListener.Target RELIABLE_WRITE
ReadWriteListener.ReadWriteEvent
is coming in from using reliableWrite_*()
overloads such as BleDevice.reliableWrite_begin(ReadWriteListener)
,
BleDevice.reliableWrite_execute()
, etc.public static final ReadWriteListener.Target CONNECTION_PRIORITY
ReadWriteListener.ReadWriteEvent
is coming in from using BleDevice.setConnectionPriority(BleConnectionPriority, ReadWriteListener)
or overloads.public static final ReadWriteListener.Target PHYSICAL_LAYER
ReadWriteListener.ReadWriteEvent
is coming in from using BleDevice.setPhyOptions(Phy, ReadWriteListener)
to set Bluetooth 5 specific features.public static ReadWriteListener.Target[] values()
for (ReadWriteListener.Target c : ReadWriteListener.Target.values()) System.out.println(c);
public static ReadWriteListener.Target 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 nullpublic final boolean isNull()
UsesCustomNull
true
if the object's state represents what would otherwise be Java's built-in null
.isNull
in interface UsesCustomNull