共用方式為


BluetoothAdapter.ILeScanCallback.OnLeScan 方法

定義

回呼回報函式起始 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.bluetooth.BluetoothAdapter.LeScanCallback.onLeScan(android.bluetooth.BluetoothDevice, int, byte[])Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於