public final class BleDescriptor extends P_NativeGattObject<android.bluetooth.BluetoothGattDescriptor>
BluetoothGattDescriptor
. You should always check P_NativeGattObject.isNull()
before
doing anything with the BluetoothGattDescriptor
returned from getDescriptor()
.Modifier and Type | Field and Description |
---|---|
static BleDescriptor |
NULL |
Constructor and Description |
---|
BleDescriptor(android.bluetooth.BluetoothGattDescriptor descriptor) |
BleDescriptor(UhOhListener.UhOh uhOh) |
Modifier and Type | Method and Description |
---|---|
BleCharacteristic |
getCharacteristic()
Returns this descriptor's parent characteristic.
|
android.bluetooth.BluetoothGattDescriptor |
getDescriptor()
Returns the instance of
BluetoothGattDescriptor held in this class. |
java.util.UUID |
getUuid()
Returns the
UUID of this descriptor. |
byte[] |
getValue()
Returns this descriptor's current value.
|
equals, getGattObject, getUhOh, hasUhOh, isNull
public static final BleDescriptor NULL
public BleDescriptor(android.bluetooth.BluetoothGattDescriptor descriptor)
public BleDescriptor(UhOhListener.UhOh uhOh)
public final android.bluetooth.BluetoothGattDescriptor getDescriptor()
BluetoothGattDescriptor
held in this class.public final java.util.UUID getUuid()
public final byte[] getValue()
null
, an empty byte array will be returned.public final BleCharacteristic getCharacteristic()
null
BleCharacteristic.NULL
will be returned.