共用方式為


ScanResult 建構函式

定義

多載

ScanResult(BluetoothDevice, ScanRecord, Int32, Int64)

建構新的 ScanResult。

ScanResult(BluetoothDevice, Int32, ScanSettingsPhy, ScanSettingsPhy, Int32, AdvertiseTxPower, Int32, Int32, ScanRecord, Int64)

建構新的 ScanResult。

ScanResult(BluetoothDevice, ScanRecord, Int32, Int64)

建構新的 ScanResult。

[Android.Runtime.Register(".ctor", "(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/le/ScanRecord;IJ)V", "")]
public ScanResult (Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.LE.ScanRecord? scanRecord, int rssi, long timestampNanos);
[<Android.Runtime.Register(".ctor", "(Landroid/bluetooth/BluetoothDevice;Landroid/bluetooth/le/ScanRecord;IJ)V", "")>]
new Android.Bluetooth.LE.ScanResult : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.LE.ScanRecord * int * int64 -> Android.Bluetooth.LE.ScanResult

參數

device
BluetoothDevice

找到遠端藍牙裝置。

scanRecord
ScanRecord

掃描記錄,包括廣告數據和掃描響應數據。

rssi
Int32

已接收訊號強度。

timestampNanos
Int64

觀察到掃描結果的時間戳。

屬性

備註

android.bluetooth.le.ScanResult.ScanResult(android.bluetooth.BluetoothDevice, android.bluetooth.le.ScanRecord, int, long)Java 檔。

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

適用於

ScanResult(BluetoothDevice, Int32, ScanSettingsPhy, ScanSettingsPhy, Int32, AdvertiseTxPower, Int32, Int32, ScanRecord, Int64)

建構新的 ScanResult。

[Android.Runtime.Register(".ctor", "(Landroid/bluetooth/BluetoothDevice;IIIIIIILandroid/bluetooth/le/ScanRecord;J)V", "", ApiSince=26)]
public ScanResult (Android.Bluetooth.BluetoothDevice? device, int eventType, Android.Bluetooth.LE.ScanSettingsPhy primaryPhy, Android.Bluetooth.LE.ScanSettingsPhy secondaryPhy, int advertisingSid, Android.Bluetooth.LE.AdvertiseTxPower txPower, int rssi, int periodicAdvertisingInterval, Android.Bluetooth.LE.ScanRecord? scanRecord, long timestampNanos);
[<Android.Runtime.Register(".ctor", "(Landroid/bluetooth/BluetoothDevice;IIIIIIILandroid/bluetooth/le/ScanRecord;J)V", "", ApiSince=26)>]
new Android.Bluetooth.LE.ScanResult : Android.Bluetooth.BluetoothDevice * int * Android.Bluetooth.LE.ScanSettingsPhy * Android.Bluetooth.LE.ScanSettingsPhy * int * Android.Bluetooth.LE.AdvertiseTxPower * int * int * Android.Bluetooth.LE.ScanRecord * int64 -> Android.Bluetooth.LE.ScanResult

參數

device
BluetoothDevice

找到遠端藍牙裝置。

eventType
Int32

事件類型。

primaryPhy
ScanSettingsPhy

主要廣告物理。

secondaryPhy
ScanSettingsPhy

次要廣告物理。

advertisingSid
Int32

廣告集標識碼。

txPower
AdvertiseTxPower

傳輸電源。

rssi
Int32

已接收訊號強度。

periodicAdvertisingInterval
Int32

定期廣告間隔。

scanRecord
ScanRecord

掃描記錄,包括廣告數據和掃描響應數據。

timestampNanos
Int64

觀察到掃描結果的時間戳。

屬性

備註

android.bluetooth.le.ScanResult.ScanResult(android.bluetooth.BluetoothDevice, int, int, int, int, int, int, int, android.bluetooth.le.ScanRecord, long)Java 檔。

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

適用於