Class BluetoothEmulationAdapter
- Namespace
- OpenQA.Selenium.DevTools.V143.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
sessionIDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
sessionis 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
commandAddCharacteristicCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
AddDescriptor(AddDescriptorCommandSettings, CancellationToken, int?, bool)
addDescriptor
public Task<AddDescriptorCommandResponse> AddDescriptor(AddDescriptorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandAddDescriptorCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
AddService(AddServiceCommandSettings, CancellationToken, int?, bool)
addService
public Task<AddServiceCommandResponse> AddService(AddServiceCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandAddServiceCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandDisableCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandEnableCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
RemoveCharacteristic(RemoveCharacteristicCommandSettings, CancellationToken, int?, bool)
removeCharacteristic
public Task<RemoveCharacteristicCommandResponse?> RemoveCharacteristic(RemoveCharacteristicCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandRemoveCharacteristicCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
RemoveDescriptor(RemoveDescriptorCommandSettings, CancellationToken, int?, bool)
removeDescriptor
public Task<RemoveDescriptorCommandResponse?> RemoveDescriptor(RemoveDescriptorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandRemoveDescriptorCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
RemoveService(RemoveServiceCommandSettings, CancellationToken, int?, bool)
removeService
public Task<RemoveServiceCommandResponse?> RemoveService(RemoveServiceCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandRemoveServiceCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SetSimulatedCentralState(SetSimulatedCentralStateCommandSettings, CancellationToken, int?, bool)
setSimulatedCentralState
public Task<SetSimulatedCentralStateCommandResponse?> SetSimulatedCentralState(SetSimulatedCentralStateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSetSimulatedCentralStateCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SimulateAdvertisement(SimulateAdvertisementCommandSettings, CancellationToken, int?, bool)
simulateAdvertisement
public Task<SimulateAdvertisementCommandResponse?> SimulateAdvertisement(SimulateAdvertisementCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSimulateAdvertisementCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SimulateCharacteristicOperationResponse(SimulateCharacteristicOperationResponseCommandSettings, CancellationToken, int?, bool)
simulateCharacteristicOperationResponse
public Task<SimulateCharacteristicOperationResponseCommandResponse?> SimulateCharacteristicOperationResponse(SimulateCharacteristicOperationResponseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSimulateCharacteristicOperationResponseCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SimulateDescriptorOperationResponse(SimulateDescriptorOperationResponseCommandSettings, CancellationToken, int?, bool)
simulateDescriptorOperationResponse
public Task<SimulateDescriptorOperationResponseCommandResponse?> SimulateDescriptorOperationResponse(SimulateDescriptorOperationResponseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSimulateDescriptorOperationResponseCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SimulateGATTDisconnection(SimulateGATTDisconnectionCommandSettings, CancellationToken, int?, bool)
simulateGATTDisconnection
public Task<SimulateGATTDisconnectionCommandResponse?> SimulateGATTDisconnection(SimulateGATTDisconnectionCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSimulateGATTDisconnectionCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SimulateGATTOperationResponse(SimulateGATTOperationResponseCommandSettings, CancellationToken, int?, bool)
simulateGATTOperationResponse
public Task<SimulateGATTOperationResponseCommandResponse?> SimulateGATTOperationResponse(SimulateGATTOperationResponseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSimulateGATTOperationResponseCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings, CancellationToken, int?, bool)
simulatePreconnectedPeripheral
public Task<SimulatePreconnectedPeripheralCommandResponse?> SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandSimulatePreconnectedPeripheralCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Events
CharacteristicOperationReceived
characteristicOperationReceived
public event EventHandler<CharacteristicOperationReceivedEventArgs>? CharacteristicOperationReceived
Event Type
DescriptorOperationReceived
descriptorOperationReceived
public event EventHandler<DescriptorOperationReceivedEventArgs>? DescriptorOperationReceived
Event Type
GattOperationReceived
gattOperationReceived
public event EventHandler<GattOperationReceivedEventArgs>? GattOperationReceived