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

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

Introduction

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

The text is from its open source code.

Field

intPROPERTY_BROADCAST
Characteristic proprty: Characteristic is broadcastable.
intPROPERTY_READ
Characteristic property: Characteristic is readable.
intPROPERTY_WRITE_NO_RESPONSE
Characteristic property: Characteristic can be written without response.
intPROPERTY_WRITE
Characteristic property: Characteristic can be written.
intPROPERTY_NOTIFY
Characteristic property: Characteristic supports notification
intPROPERTY_INDICATE
Characteristic property: Characteristic supports indication
intPROPERTY_SIGNED_WRITE
Characteristic property: Characteristic supports write with signature
intPROPERTY_EXTENDED_PROPS
Characteristic property: Characteristic has extended properties
intPERMISSION_READ
Characteristic read permission
intPERMISSION_READ_ENCRYPTED
Characteristic permission: Allow encrypted read operations
intPERMISSION_READ_ENCRYPTED_MITM
Characteristic permission: Allow reading with man-in-the-middle protection
intPERMISSION_WRITE
Characteristic write permission
intPERMISSION_WRITE_ENCRYPTED
Characteristic permission: Allow encrypted writes
intPERMISSION_WRITE_ENCRYPTED_MITM
Characteristic permission: Allow encrypted writes with man-in-the-middle protection
intPERMISSION_WRITE_SIGNED
Characteristic permission: Allow signed write operations
intPERMISSION_WRITE_SIGNED_MITM
Characteristic permission: Allow signed write operations with man-in-the-middle protection
intWRITE_TYPE_DEFAULT
Write characteristic, requesting acknoledgement by the remote device
intWRITE_TYPE_NO_RESPONSE
Write characteristic without requiring a response by the remote device
intFORMAT_UINT8
Characteristic value format type uint8
intFORMAT_UINT16
Characteristic value format type uint16
intFORMAT_UINT32
Characteristic value format type uint32
intFORMAT_SINT8
Characteristic value format type sint8

Constructor

Method

booleanaddDescriptor(BluetoothGattDescriptor descriptor)
Adds a descriptor to this characteristic.
BluetoothGattDescriptorgetDescriptor(UUID uuid)
Returns a descriptor with a given UUID out of the list of descriptors for this characteristic.
ListgetDescriptors()
Returns a list of descriptors for this characteristic.
intgetInstanceId()
Returns the instance ID for this characteristic.
IntegergetIntValue(int formatType, int offset)
Return the stored value of this characteristic.
intgetPermissions()
Returns the permissions for this characteristic.
intgetProperties()
Returns the properties of this characteristic.
BluetoothGattServicegetService()
Returns the service this characteristic belongs to.
StringgetStringValue(int offset)
Return the stored value of this characteristic.
UUIDgetUuid()
Returns the UUID of this characteristic
byte[]getValue()
Get the stored value for this characteristic.
intgetWriteType()
Gets the write type for this characteristic.
booleansetValue(byte[] value)
Updates the locally stored value of this characteristic.
booleansetValue(String value)
Set the locally stored value of this characteristic.
booleansetValue(int value, int formatType, int offset)
Set the locally stored value of this characteristic.
voidsetWriteType(int writeType)
Set the write type for this characteristic

Setting the write type of a characteristic determines how the BluetoothGatt#writeCharacteristic function write this characteristic.