public static final class DescriptorFilter.DescriptorEvent extends Event
DescriptorFilter.onEvent(DescriptorEvent)
method of the
DescriptorFilter
interface. This holds the service, characteristic, and current
descriptor, and descriptor value.Modifier and Type | Method and Description |
---|---|
android.bluetooth.BluetoothGattCharacteristic |
characteristic()
Convenience method which returns the current
BluetoothGattCharacteristic . |
android.bluetooth.BluetoothGattDescriptor |
descriptor()
Convenience method which returns the
BluetoothGattDescriptor . |
android.bluetooth.BluetoothGattService |
service()
Convenience method which returns the
BluetoothGattService . |
byte[] |
value()
Convenience method to return the value stored in the
BluetoothGattDescriptor . |
public final byte[] value()
BluetoothGattDescriptor
. This is what you will check to determine if the
current BluetoothGattCharacteristic
is the one you want to operate on.public final android.bluetooth.BluetoothGattService service()
BluetoothGattService
.public final android.bluetooth.BluetoothGattCharacteristic characteristic()
BluetoothGattCharacteristic
.public final android.bluetooth.BluetoothGattDescriptor descriptor()
BluetoothGattDescriptor
. If DescriptorFilter.descriptorUuid()
is returning null
,
then this will always be null
as well.