Java android.bluetooth BluetoothGattDescriptor fields, constructors, methods, implement or subclass

Example usage for Java android.bluetooth BluetoothGattDescriptor fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.bluetooth BluetoothGattDescriptor.

The text is from its open source code.

Field

nullENABLE_NOTIFICATION_VALUE
Value used to enable notification for a client configuration descriptor
nullENABLE_INDICATION_VALUE
Value used to enable indication for a client configuration descriptor
nullDISABLE_NOTIFICATION_VALUE
Value used to disable notifications or indicatinos
intPERMISSION_READ
Descriptor read permission
intPERMISSION_READ_ENCRYPTED
Descriptor permission: Allow encrypted read operations
intPERMISSION_READ_ENCRYPTED_MITM
Descriptor permission: Allow reading with man-in-the-middle protection
intPERMISSION_WRITE
Descriptor write permission
intPERMISSION_WRITE_ENCRYPTED
Descriptor permission: Allow encrypted writes
intPERMISSION_WRITE_ENCRYPTED_MITM
Descriptor permission: Allow encrypted writes with man-in-the-middle protection
intPERMISSION_WRITE_SIGNED
Descriptor permission: Allow signed write operations
intPERMISSION_WRITE_SIGNED_MITM
Descriptor permission: Allow signed write operations with man-in-the-middle protection

Constructor

BluetoothGattDescriptor(UUID uuid, int permissions)
Create a new BluetoothGattDescriptor.

Method

BluetoothGattCharacteristicgetCharacteristic()
Returns the characteristic this descriptor belongs to.
intgetPermissions()
Returns the permissions for this descriptor.
UUIDgetUuid()
Returns the UUID of this descriptor.
byte[]getValue()
Returns the stored value for this descriptor

This function returns the stored value for this descriptor as retrieved by calling BluetoothGatt#readDescriptor .

booleansetValue(byte[] value)
Updates the locally stored value of this descriptor.