Package | Description |
---|---|
ej.bluetooth |
Contains Bluetooth classes.
|
ej.bluetooth.callbacks |
Contains interfaces for Bluetooth callbacks.
|
ej.bluetooth.callbacks.impl |
Contains default implementations for Bluetooth callbacks.
|
Modifier and Type | Method and Description |
---|---|
BluetoothDescriptor |
BluetoothCharacteristic.findDescriptor(BluetoothUuid descriptorUuid)
Finds the descriptor of this characteristic which matches the given UUID.
|
BluetoothDescriptor[] |
BluetoothCharacteristic.getDescriptors()
Returns the list of descriptors of this characteristic.
|
Modifier and Type | Method and Description |
---|---|
void |
BluetoothCharacteristic.addDescriptor(BluetoothDescriptor descriptor)
Adds a descriptor to this characteristic.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientCallbacks.onReadCompleted(BluetoothDescriptor descriptor,
int status,
byte[] value)
Called when a response to a read descriptor request is received.
|
void |
ServerCallbacks.onReadRequest(BluetoothDescriptor descriptor,
BluetoothDevice device)
Called when a read descriptor request is received.
|
void |
ClientCallbacks.onWriteCompleted(BluetoothDescriptor descriptor,
int status)
Called when a response to a write descriptor request is received.
|
void |
ServerCallbacks.onWriteRequest(BluetoothDescriptor descriptor,
BluetoothDevice device,
byte[] value)
Called when a write descriptor request is received.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultClientCallbacks.onReadCompleted(BluetoothDescriptor descriptor,
int status,
byte[] value) |
void |
DefaultServerCallbacks.onReadRequest(BluetoothDescriptor descriptor,
BluetoothDevice device) |
void |
DefaultClientCallbacks.onWriteCompleted(BluetoothDescriptor descriptor,
int status) |
void |
DefaultServerCallbacks.onWriteRequest(BluetoothDescriptor descriptor,
BluetoothDevice device,
byte[] value) |