ScanResult 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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。
此成员已弃用。 use #ScanResult(BluetoothDevice, int, int, int, int, int, int, int, ScanRecord, long)
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。