public class BluetoothDescriptor extends BluetoothAttribute
BluetoothDescriptor class represents a remote or a local GATT descriptor.
Remote descriptors may be retrieved by getting the descriptors of
a remote characteristic.
Local descriptors may be retrieved by adding a local service to the adapter.
This class provides a method to get the characteristic to which the descriptor belongs.
| Modifier and Type | Method and Description |
|---|---|
BluetoothCharacteristic |
getCharacteristic()
Returns the characteristic to which this descriptor belongs.
|
getService, getUuid@Nullable public BluetoothCharacteristic getCharacteristic()
This method returns null if this is a local descriptor and it has not been added to a characteristic.