Added in API level 18
LeScanCallback
interface LeScanCallback
| android.bluetooth.BluetoothAdapter.LeScanCallback |
Callback interface used to deliver LE scan results.
Summary
| Public methods | |
|---|---|
| abstract Unit |
onLeScan(device: BluetoothDevice!, rssi: Int, scanRecord: ByteArray!)Callback reporting an LE device found during a device scan initiated by the android. |
Public methods
onLeScan
Added in API level 18
abstract fun onLeScan(
device: BluetoothDevice!,
rssi: Int,
scanRecord: ByteArray!
): Unit
Callback reporting an LE device found during a device scan initiated by the android.bluetooth.BluetoothAdapter#startLeScan function.
| Parameters | |
|---|---|
device |
BluetoothDevice!: Identifies the remote device |
rssi |
Int: The RSSI value for the remote device as reported by the Bluetooth hardware. 0 if no RSSI value is available. |
scanRecord |
ByteArray!: The content of the advertisement record offered by the remote device. |