Class BluetoothEmulationAdapter
- Namespace
- OpenQA.Selenium.DevTools.V142.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
- sessionIDevToolsSession
- The 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
- commandAddCharacteristicCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
AddDescriptor(AddDescriptorCommandSettings, CancellationToken, int?, bool)
addDescriptor
public Task<AddDescriptorCommandResponse> AddDescriptor(AddDescriptorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandAddDescriptorCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
AddService(AddServiceCommandSettings, CancellationToken, int?, bool)
addService
public Task<AddServiceCommandResponse> AddService(AddServiceCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandAddServiceCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- 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
- commandDisableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEnableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
RemoveCharacteristic(RemoveCharacteristicCommandSettings, CancellationToken, int?, bool)
removeCharacteristic
public Task<RemoveCharacteristicCommandResponse?> RemoveCharacteristic(RemoveCharacteristicCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandRemoveCharacteristicCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
RemoveDescriptor(RemoveDescriptorCommandSettings, CancellationToken, int?, bool)
removeDescriptor
public Task<RemoveDescriptorCommandResponse?> RemoveDescriptor(RemoveDescriptorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandRemoveDescriptorCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
RemoveService(RemoveServiceCommandSettings, CancellationToken, int?, bool)
removeService
public Task<RemoveServiceCommandResponse?> RemoveService(RemoveServiceCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandRemoveServiceCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetSimulatedCentralState(SetSimulatedCentralStateCommandSettings, CancellationToken, int?, bool)
setSimulatedCentralState
public Task<SetSimulatedCentralStateCommandResponse?> SetSimulatedCentralState(SetSimulatedCentralStateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetSimulatedCentralStateCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SimulateAdvertisement(SimulateAdvertisementCommandSettings, CancellationToken, int?, bool)
simulateAdvertisement
public Task<SimulateAdvertisementCommandResponse?> SimulateAdvertisement(SimulateAdvertisementCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSimulateAdvertisementCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SimulateCharacteristicOperationResponse(SimulateCharacteristicOperationResponseCommandSettings, CancellationToken, int?, bool)
simulateCharacteristicOperationResponse
public Task<SimulateCharacteristicOperationResponseCommandResponse?> SimulateCharacteristicOperationResponse(SimulateCharacteristicOperationResponseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSimulateCharacteristicOperationResponseCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SimulateDescriptorOperationResponse(SimulateDescriptorOperationResponseCommandSettings, CancellationToken, int?, bool)
simulateDescriptorOperationResponse
public Task<SimulateDescriptorOperationResponseCommandResponse?> SimulateDescriptorOperationResponse(SimulateDescriptorOperationResponseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSimulateDescriptorOperationResponseCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SimulateGATTDisconnection(SimulateGATTDisconnectionCommandSettings, CancellationToken, int?, bool)
simulateGATTDisconnection
public Task<SimulateGATTDisconnectionCommandResponse?> SimulateGATTDisconnection(SimulateGATTDisconnectionCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSimulateGATTDisconnectionCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SimulateGATTOperationResponse(SimulateGATTOperationResponseCommandSettings, CancellationToken, int?, bool)
simulateGATTOperationResponse
public Task<SimulateGATTOperationResponseCommandResponse?> SimulateGATTOperationResponse(SimulateGATTOperationResponseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSimulateGATTOperationResponseCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings, CancellationToken, int?, bool)
simulatePreconnectedPeripheral
public Task<SimulatePreconnectedPeripheralCommandResponse?> SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSimulatePreconnectedPeripheralCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
CharacteristicOperationReceived
characteristicOperationReceived
public event EventHandler<CharacteristicOperationReceivedEventArgs>? CharacteristicOperationReceivedEvent Type
DescriptorOperationReceived
descriptorOperationReceived
public event EventHandler<DescriptorOperationReceivedEventArgs>? DescriptorOperationReceivedEvent Type
GattOperationReceived
gattOperationReceived
public event EventHandler<GattOperationReceivedEventArgs>? GattOperationReceived