Package | Description |
---|---|
ej.bluetooth.listeners |
Contains interfaces for Bluetooth listeners.
|
ej.bluetooth.listeners.impl |
Contains default implementations for Bluetooth listeners.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectionListener.onConnected(BluetoothConnection connection)
Called when a connection attempt is successful or when a remote device connects to the adapter.
|
void |
ConnectionListener.onDisconnected(BluetoothConnection connection)
Called when the connection with a device is closed.
|
void |
ConnectionListener.onDiscoveryCompleted(BluetoothConnection connection)
Called when a service discovery is completed.
|
void |
ConnectionListener.onDiscoveryResult(BluetoothConnection connection,
BluetoothService service)
Called when a service provided by a device has been discovered.
|
void |
LocalServiceListener.onExecuteWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
boolean execute)
Called when an execute write request is received.
|
void |
RemoteServiceListener.onNotificationReceived(BluetoothConnection connection,
BluetoothCharacteristic characteristic,
byte[] value)
Called when a characteristic notification or indication is received.
|
void |
LocalServiceListener.onNotificationSent(BluetoothConnection connection,
BluetoothCharacteristic characteristic,
boolean success)
Called when a characteristic notification or indication is sent.
|
void |
ConnectionListener.onPairCompleted(BluetoothConnection connection,
boolean success)
Called when the pairing procedure with a device is completed.
|
void |
ConnectionListener.onPairRequest(BluetoothConnection connection)
Called when a pairing request from a device is received.
|
void |
ConnectionListener.onPasskeyGenerated(BluetoothConnection connection,
int passkey)
Called when a passkey is generated to be displayed to the user.
|
void |
ConnectionListener.onPasskeyRequest(BluetoothConnection connection)
Called when a passkey request from a device is received.
|
void |
LocalServiceListener.onPrepareWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
byte[] value,
int offset)
Called when a prepare write request is received.
|
void |
LocalServiceListener.onReadBlobRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
int offset)
Called when a read blob request is received.
|
void |
RemoteServiceListener.onReadCompleted(BluetoothConnection connection,
BluetoothAttribute attribute,
byte status,
byte[] value)
Called when a response to a read request is received.
|
void |
LocalServiceListener.onReadRequest(BluetoothConnection connection,
BluetoothAttribute attribute)
Called when a read request is received.
|
void |
RemoteServiceListener.onWriteCompleted(BluetoothConnection connection,
BluetoothAttribute attribute,
byte status)
Called when a response to a write request is received.
|
void |
LocalServiceListener.onWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
byte[] value)
Called when a write request is received.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultConnectionListener.onConnected(BluetoothConnection connection) |
void |
DefaultConnectionListener.onDisconnected(BluetoothConnection connection) |
void |
DefaultConnectionListener.onDiscoveryCompleted(BluetoothConnection connection) |
void |
DefaultConnectionListener.onDiscoveryResult(BluetoothConnection connection,
BluetoothService service) |
void |
DefaultLocalServiceListener.onExecuteWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
boolean execute) |
void |
DefaultRemoteServiceListener.onNotificationReceived(BluetoothConnection connection,
BluetoothCharacteristic characteristic,
byte[] value) |
void |
DefaultLocalServiceListener.onNotificationSent(BluetoothConnection connection,
BluetoothCharacteristic characteristic,
boolean success) |
void |
DefaultConnectionListener.onPairCompleted(BluetoothConnection connection,
boolean success) |
void |
DefaultConnectionListener.onPairRequest(BluetoothConnection connection) |
void |
DefaultConnectionListener.onPasskeyGenerated(BluetoothConnection connection,
int passkey) |
void |
DefaultConnectionListener.onPasskeyRequest(BluetoothConnection connection) |
void |
DefaultLocalServiceListener.onPrepareWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
byte[] value,
int offset) |
void |
DefaultLocalServiceListener.onReadBlobRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
int offset) |
void |
DefaultRemoteServiceListener.onReadCompleted(BluetoothConnection connection,
BluetoothAttribute attribute,
byte status,
byte[] value) |
void |
DefaultLocalServiceListener.onReadRequest(BluetoothConnection connection,
BluetoothAttribute attribute) |
void |
DefaultRemoteServiceListener.onWriteCompleted(BluetoothConnection connection,
BluetoothAttribute attribute,
byte status) |
void |
DefaultLocalServiceListener.onWriteRequest(BluetoothConnection connection,
BluetoothAttribute attribute,
byte[] value) |