ScanResult 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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
掃描結果被觀察的時間戳。
- 屬性
備註
建立一個新的 ScanResult。
此會員已被棄用。 用途 #ScanResult(BluetoothDevice, int, int, int, int, int, int, int, ScanRecord, long)
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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
廣告集 ID。
- txPower
- AdvertiseTxPower
傳送電力。
- rssi
- Int32
收到訊號強度。
- periodicAdvertisingInterval
- Int32
定期廣告間隔。
- scanRecord
- ScanRecord
掃描紀錄,包含廣告資料與掃描回應資料。
- timestampNanos
- Int64
掃描結果被觀察的時間戳。
- 屬性
備註
建立一個新的 ScanResult。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。