Class BluetoothEmulationAdapter
- Namespace
- OpenQA.Selenium.DevTools.V136.BluetoothEmulation
- Assembly
- WebDriver.dll
Represents an adapter for the BluetoothEmulation domain to simplify the command interface.
public class BluetoothEmulationAdapter
- Inheritance
-
BluetoothEmulationAdapter
- Inherited Members
Constructors
BluetoothEmulationAdapter(IDevToolsSession)
Initializes a new instance of the BluetoothEmulationAdapter class.
public BluetoothEmulationAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
session
is null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
AddCharacteristic(AddCharacteristicCommandSettings, CancellationToken, int?, bool)
addCharacteristic
public Task<AddCharacteristicCommandResponse> AddCharacteristic(AddCharacteristicCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
AddCharacteristicCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
AddService(AddServiceCommandSettings, CancellationToken, int?, bool)
addService
public Task<AddServiceCommandResponse> AddService(AddServiceCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
AddServiceCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
RemoveCharacteristic(RemoveCharacteristicCommandSettings, CancellationToken, int?, bool)
removeCharacteristic
public Task<RemoveCharacteristicCommandResponse?> RemoveCharacteristic(RemoveCharacteristicCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
RemoveCharacteristicCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
RemoveService(RemoveServiceCommandSettings, CancellationToken, int?, bool)
removeService
public Task<RemoveServiceCommandResponse?> RemoveService(RemoveServiceCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
RemoveServiceCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetSimulatedCentralState(SetSimulatedCentralStateCommandSettings, CancellationToken, int?, bool)
setSimulatedCentralState
public Task<SetSimulatedCentralStateCommandResponse?> SetSimulatedCentralState(SetSimulatedCentralStateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetSimulatedCentralStateCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SimulateAdvertisement(SimulateAdvertisementCommandSettings, CancellationToken, int?, bool)
simulateAdvertisement
public Task<SimulateAdvertisementCommandResponse?> SimulateAdvertisement(SimulateAdvertisementCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SimulateAdvertisementCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SimulateGATTOperationResponse(SimulateGATTOperationResponseCommandSettings, CancellationToken, int?, bool)
simulateGATTOperationResponse
public Task<SimulateGATTOperationResponseCommandResponse?> SimulateGATTOperationResponse(SimulateGATTOperationResponseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SimulateGATTOperationResponseCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings, CancellationToken, int?, bool)
simulatePreconnectedPeripheral
public Task<SimulatePreconnectedPeripheralCommandResponse?> SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SimulatePreconnectedPeripheralCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
GattOperationReceived
gattOperationReceived
public event EventHandler<GattOperationReceivedEventArgs>? GattOperationReceived