Package | Description |
---|---|
ej.bluetooth |
Contains Bluetooth classes.
|
ej.bluetooth.listeners |
Contains interfaces for Bluetooth listeners.
|
ej.bluetooth.listeners.impl |
Contains default implementations for Bluetooth listeners.
|
Modifier and Type | Method and Description |
---|---|
BluetoothAddress |
BluetoothConnection.getAddress()
Returns the Bluetooth address of the device.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BluetoothAdapter.connect(BluetoothAddress address)
Initiates a connection to the device with the given address.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectionListener.onConnectFailed(BluetoothAddress address)
Called when a connection attempt fails.
|
void |
ConnectionListener.onScanResult(BluetoothAddress address,
byte[] advertisementData,
int rssi)
Called when a advertisement or a scan response is received.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultConnectionListener.onConnectFailed(BluetoothAddress address) |
void |
DefaultConnectionListener.onScanResult(BluetoothAddress address,
byte[] advertisementData,
int rssi) |