Table of Contents

Class ScanRecord

Namespace
WebDriverBiDi.Bluetooth
Assembly
WebDriverBiDi.dll

Provides information about a record retrieved when scanning for Bluetooth devices.

public class ScanRecord
Inheritance
ScanRecord
Inherited Members

Constructors

ScanRecord()

Initializes a new instance of the ScanRecord class.

public ScanRecord()

Properties

Appearance

Gets or sets the appearance value of the Bluetooth device.

[JsonPropertyName("appearance")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public uint? Appearance { get; set; }

Property Value

uint?

ManufacturerData

Gets the list of manufacturer data for this scan record.

[JsonIgnore]
public List<BluetoothManufacturerData> ManufacturerData { get; }

Property Value

List<BluetoothManufacturerData>

Remarks

This property is optional in the protocol, and omitting it has the same meaning as sending an empty array: the advertising event the remote end fires starts from an empty manufacturer data map and is populated only from the entries this record carries. An empty list therefore means "not specified": the property is omitted from the JSON payload entirely. Add entries to the list to populate it.

Name

Gets or sets the local name of the Bluetooth device, or a prefix of it.

[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; set; }

Property Value

string

UUIDs

Gets the list of Service UUIDs that this scan record says the Bluetooth device's GATT server supports.

[JsonIgnore]
public List<string> UUIDs { get; }

Property Value

List<string>

Remarks

This property is optional in the protocol, and omitting it has the same meaning as sending an empty array: the advertising event the remote end fires starts from an empty list of UUIDs and is populated only from the entries this record carries. An empty list therefore means "not specified": the property is omitted from the JSON payload entirely. Add entries to the list to populate it.