Class SimulateAdapterCommandParameters
- Namespace
- WebDriverBiDi.Bluetooth
- Assembly
- WebDriverBiDi.dll
Provides parameters for the bluetooth.simulateAdapter command.
public class SimulateAdapterCommandParameters : CommandParameters<SimulateAdapterCommandResult>
- Inheritance
-
SimulateAdapterCommandParameters
- Inherited Members
Constructors
SimulateAdapterCommandParameters(string, AdapterState)
Initializes a new instance of the SimulateAdapterCommandParameters class.
public SimulateAdapterCommandParameters(string browsingContextId, AdapterState state)
Parameters
browsingContextIdstringThe ID of the browsing context for which to simulate the Bluetooth adapter.
stateAdapterStateThe simulated state of the Bluetooth adapter.
Properties
BrowsingContextId
Gets or sets the ID of the browsing context for which to simulate the Bluetooth adapter.
[JsonPropertyName("context")]
public string BrowsingContextId { get; set; }
Property Value
IsLowEnergySupported
Gets or sets a value indicating whether the simulated Bluetooth adapter supports Low Energy. When null, the property is omitted and the remote end applies its default.
[JsonPropertyName("leSupported")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? IsLowEnergySupported { get; set; }
Property Value
- bool?
Remarks
The value describes an adapter as it is created. When the browsing context already has a simulated
adapter, a command that carries a non-null value is rejected by the remote end with an
invalid argument error; send it as null to update such an adapter.
MethodName
Gets the method name of the command.
[JsonIgnore]
public override string MethodName { get; }
Property Value
State
Gets or sets the simulated state of the Bluetooth adapter.
[JsonPropertyName("state")]
public AdapterState State { get; set; }