java.lang.Object | |
↳ | android.bluetooth.BluetoothGattDescriptor |
Represents a Bluetooth GATT Descriptor
GATT Descriptors contain additional information and attributes of a GATT
characteristic, BluetoothGattCharacteristic
. They can be used to describe
the characteristic's features or to control certain behaviours of the characteristic.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PERMISSION_READ | Descriptor read permission | |||||||||
int | PERMISSION_READ_ENCRYPTED | Descriptor permission: Allow encrypted read operations | |||||||||
int | PERMISSION_READ_ENCRYPTED_MITM | Descriptor permission: Allow reading with man-in-the-middle protection | |||||||||
int | PERMISSION_WRITE | Descriptor write permission | |||||||||
int | PERMISSION_WRITE_ENCRYPTED | Descriptor permission: Allow encrypted writes | |||||||||
int | PERMISSION_WRITE_ENCRYPTED_MITM | Descriptor permission: Allow encrypted writes with man-in-the-middle protection | |||||||||
int | PERMISSION_WRITE_SIGNED | Descriptor permission: Allow signed write operations | |||||||||
int | PERMISSION_WRITE_SIGNED_MITM | Descriptor permission: Allow signed write operations with man-in-the-middle protection |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DISABLE_NOTIFICATION_VALUE | Value used to disable notifications or indicatinos | ||||||||||
ENABLE_INDICATION_VALUE | Value used to enable indication for a client configuration descriptor | ||||||||||
ENABLE_NOTIFICATION_VALUE | Value used to enable notification for a client configuration descriptor |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new BluetoothGattDescriptor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the characteristic this descriptor belongs to.
| |||||||||||
Returns the permissions for this descriptor.
| |||||||||||
Returns the UUID of this descriptor.
| |||||||||||
Returns the stored value for this descriptor
This function returns the stored value for this descriptor as
retrieved by calling | |||||||||||
Updates the locally stored value of this descriptor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Descriptor read permission
Descriptor permission: Allow encrypted read operations
Descriptor permission: Allow reading with man-in-the-middle protection
Descriptor write permission
Descriptor permission: Allow encrypted writes
Descriptor permission: Allow encrypted writes with man-in-the-middle protection
Descriptor permission: Allow signed write operations
Descriptor permission: Allow signed write operations with man-in-the-middle protection
Value used to disable notifications or indicatinos
Value used to enable indication for a client configuration descriptor
Value used to enable notification for a client configuration descriptor
Create a new BluetoothGattDescriptor.
Requires BLUETOOTH
permission.
uuid | The UUID for this descriptor |
---|---|
permissions | Permissions for this descriptor |
Returns the characteristic this descriptor belongs to.
Returns the permissions for this descriptor.
Returns the UUID of this descriptor.
Returns the stored value for this descriptor
This function returns the stored value for this descriptor as
retrieved by calling readDescriptor(BluetoothGattDescriptor)
. The cached
value of the descriptor is updated as a result of a descriptor read
operation.
Updates the locally stored value of this descriptor.
This function modifies the locally stored cached value of this
descriptor. To send the value to the remote device, call
writeDescriptor(BluetoothGattDescriptor)
to send the value to the
remote device.
value | New value for this descriptor |
---|