BluetoothAdapter.ILeScanCallback.OnLeScan 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回呼回報函式起始 BluetoothAdapter#startLeScan
的裝置掃描期間找到的 LE 裝置。
[Android.Runtime.Register("onLeScan", "(Landroid/bluetooth/BluetoothDevice;I[B)V", "GetOnLeScan_Landroid_bluetooth_BluetoothDevice_IarrayBHandler:Android.Bluetooth.BluetoothAdapter/ILeScanCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnLeScan (Android.Bluetooth.BluetoothDevice? device, int rssi, byte[]? scanRecord);
[<Android.Runtime.Register("onLeScan", "(Landroid/bluetooth/BluetoothDevice;I[B)V", "GetOnLeScan_Landroid_bluetooth_BluetoothDevice_IarrayBHandler:Android.Bluetooth.BluetoothAdapter/ILeScanCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnLeScan : Android.Bluetooth.BluetoothDevice * int * byte[] -> unit
參數
- device
- BluetoothDevice
識別遠端裝置
- rssi
- Int32
藍牙硬體所報告的遠端裝置 RSSI 值。 如果沒有可用的 RSSI 值,則為 0。
- scanRecord
- Byte[]
遠端裝置所提供的廣告記錄內容。
- 屬性
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。