语言

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。

此成员已弃用。 use #ScanResult(BluetoothDevice, int, int, int, int, int, int, int, ScanRecord, long)

Java文档android.bluetooth.le.ScanResult.ScanResult(android.bluetooth.BluetoothDevice, android.bluetooth.le.ScanRecord, int, 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。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于