diff options
Diffstat (limited to 'java/BluetoothGattDescriptor.java')
-rw-r--r-- | java/BluetoothGattDescriptor.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/java/BluetoothGattDescriptor.java b/java/BluetoothGattDescriptor.java new file mode 100644 index 00000000..c378c2fa --- /dev/null +++ b/java/BluetoothGattDescriptor.java @@ -0,0 +1,28 @@ +import java.util.*; + +public class BluetoothGattDescriptor extends BluetoothObject +{ + public long nativeInstance; + + public native BluetoothType getBluetoothType(); + public native BluetoothAdapter clone(); + + public native List<Byte> readValue(); + public native boolean writeValue(List<Byte> argValue); + public native String getUuid(); + public native BluetoothGattCharacteristic getCharacteristic(); + public native List<Byte> getValue(); + + private native void delete(); + + private BluetoothGattDescriptor(long instance) + { + super(instance); + nativeInstance = instance; + } + + protected void finalize() + { + delete(); + } +} |