BluetoothAdapter.LeScanCallback 參考文檔
[翻譯自: android開發文檔]
Class Overview:
回調接口被用於傳輸LE掃描后的結果;
詳情參看:
onLescan(BluetoothDevice , int , byte[])
是通過startLeScan(BlueToothAdapter.LeScanCallback)函數調用之后 , 會初始化一個device對象 ; 當一個LE設備被發現的時候 , 這個對象device作為參數傳遞進來 ,
device : 識別的遠程設備
rssi : RSSI的值作為對遠程藍牙設備的報告; 0代表沒有藍牙設備;
scanRecode: 遠程設備提供的配對號(公告)
原文:
------------------
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
public abstract void onLeScan (BluetoothDevice device, int rssi, byte[] scanRecord)
Added in API level 18
Callback reporting an LE device found during a device scan initiated by the startLeScan(BluetoothAdapter.LeScanCallback) function.
Parameters
device
Identifies the remote device
rssi
The RSSI value for the remote device as reported by the Bluetooth hardware. 0 if no RSSI value is available.
scanRecord
The content of the advertisement record offered by the remote device.