Sdílet prostřednictvím


ScanResult Constructors

Definition

Overloads

ScanResult(BluetoothDevice, ScanRecord, Int32, Int64)

Constructs a new ScanResult.

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

Constructs a new ScanResult.

ScanResult(BluetoothDevice, ScanRecord, Int32, Int64)

Constructs a new 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

Parameters

device
BluetoothDevice

Remote Bluetooth device found.

scanRecord
ScanRecord

Scan record including both advertising data and scan response data.

rssi
Int32

Received signal strength.

timestampNanos
Int64

Timestamp at which the scan result was observed.

Attributes

Remarks

Java documentation for android.bluetooth.le.ScanResult.ScanResult(android.bluetooth.BluetoothDevice, android.bluetooth.le.ScanRecord, int, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

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

Constructs a new 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

Parameters

device
BluetoothDevice

Remote Bluetooth device found.

eventType
Int32

Event type.

primaryPhy
ScanSettingsPhy

Primary advertising phy.

secondaryPhy
ScanSettingsPhy

Secondary advertising phy.

advertisingSid
Int32

Advertising set ID.

txPower
AdvertiseTxPower

Transmit power.

rssi
Int32

Received signal strength.

periodicAdvertisingInterval
Int32

Periodic advertising interval.

scanRecord
ScanRecord

Scan record including both advertising data and scan response data.

timestampNanos
Int64

Timestamp at which the scan result was observed.

Attributes

Remarks

Java documentation for android.bluetooth.le.ScanResult.ScanResult(android.bluetooth.BluetoothDevice, int, int, int, int, int, int, int, android.bluetooth.le.ScanRecord, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to