summaryrefslogtreecommitdiffstats
path: root/java/BluetoothGattDescriptor.java
blob: c378c2fa260dabce1f857b5c31ddc0e7d8801e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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();
    }
}