summaryrefslogtreecommitdiffstats
path: root/java/BluetoothGattCharacteristic.java
blob: 07e0bd3abe0cfd8ac04e9369fc64cb0cb65194a5 (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
29
30
31
32
33
import java.util.*;

public class BluetoothGattCharacteristic extends BluetoothObject
{
    private long nativeInstance;

    public native BluetoothType getBluetoothType();
    public native BluetoothGattCharacteristic clone();
    public native byte[] readValue();
    public native boolean writeValue(byte[] argValue);
    public native boolean startNotify();
    public native boolean stopNotify();
    public native String getUuid();
    public native BluetoothGattService getService();
    public native byte[] getValue();
    public native boolean getNotifying();
    public native String[] getFlags();
    public native List<BluetoothGattDescriptor> getDescriptors();

    private native void init(BluetoothGattCharacteristic obj);
    private native void delete();

    private BluetoothGattCharacteristic(long instance)
    {
        super(instance);
        nativeInstance = instance;
    }

    protected void finalize()
    {
        delete();
    }
}