added in API level 18

BluetoothAdapter.LeScanCallback

public static interface BluetoothAdapter.LeScanCallback

android.bluetooth.BluetoothAdapter.LeScanCallback


Callback interface used to deliver LE scan results.

Summary

Public methods

abstract void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord)

Callback reporting an LE device found during a device scan initiated by the startLeScan(BluetoothAdapter.LeScanCallback) function.

Public methods

onLeScan

added in API level 18
void onLeScan (BluetoothDevice device, 
                int rssi, 
                byte[] scanRecord)

Callback reporting an LE device found during a device scan initiated by the startLeScan(BluetoothAdapter.LeScanCallback) 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 byte: The content of the advertisement record offered by the remote device.