Most visited

Recently visited

Added in API level 18

BluetoothAdapter.LeScanCallback

public static interface BluetoothAdapter.LeScanCallback

android.bluetooth.BluetoothAdapter.LeScanCallback


用于提供LE扫描结果的回调界面。

也可以看看:

Summary

Public methods

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

回叫报告在 startLeScan(BluetoothAdapter.LeScanCallback)功能启动的设备扫描期间发现的LE设备。

Public methods

onLeScan

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

回调报告在由 startLeScan(BluetoothAdapter.LeScanCallback)功能启动的设备扫描期间发现的LE设备。

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.

Hooray!