Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Table of Contents

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 IDevToolsSession

The 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

IDevToolsSession

Methods

AddCharacteristic(AddCharacteristicCommandSettings, CancellationToken, int?, bool)

addCharacteristic

public Task<AddCharacteristicCommandResponse> AddCharacteristic(AddCharacteristicCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command AddCharacteristicCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<AddCharacteristicCommandResponse>

AddService(AddServiceCommandSettings, CancellationToken, int?, bool)

addService

public Task<AddServiceCommandResponse> AddService(AddServiceCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command AddServiceCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<AddServiceCommandResponse>

Disable(DisableCommandSettings?, CancellationToken, int?, bool)

disable

public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command DisableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<DisableCommandResponse>

Enable(EnableCommandSettings, CancellationToken, int?, bool)

enable

public Task<EnableCommandResponse?> Enable(EnableCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command EnableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<EnableCommandResponse>

RemoveCharacteristic(RemoveCharacteristicCommandSettings, CancellationToken, int?, bool)

removeCharacteristic

public Task<RemoveCharacteristicCommandResponse?> RemoveCharacteristic(RemoveCharacteristicCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RemoveCharacteristicCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RemoveCharacteristicCommandResponse>

RemoveService(RemoveServiceCommandSettings, CancellationToken, int?, bool)

removeService

public Task<RemoveServiceCommandResponse?> RemoveService(RemoveServiceCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RemoveServiceCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RemoveServiceCommandResponse>

SetSimulatedCentralState(SetSimulatedCentralStateCommandSettings, CancellationToken, int?, bool)

setSimulatedCentralState

public Task<SetSimulatedCentralStateCommandResponse?> SetSimulatedCentralState(SetSimulatedCentralStateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetSimulatedCentralStateCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetSimulatedCentralStateCommandResponse>

SimulateAdvertisement(SimulateAdvertisementCommandSettings, CancellationToken, int?, bool)

simulateAdvertisement

public Task<SimulateAdvertisementCommandResponse?> SimulateAdvertisement(SimulateAdvertisementCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SimulateAdvertisementCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SimulateAdvertisementCommandResponse>

SimulateGATTOperationResponse(SimulateGATTOperationResponseCommandSettings, CancellationToken, int?, bool)

simulateGATTOperationResponse

public Task<SimulateGATTOperationResponseCommandResponse?> SimulateGATTOperationResponse(SimulateGATTOperationResponseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SimulateGATTOperationResponseCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SimulateGATTOperationResponseCommandResponse>

SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings, CancellationToken, int?, bool)

simulatePreconnectedPeripheral

public Task<SimulatePreconnectedPeripheralCommandResponse?> SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SimulatePreconnectedPeripheralCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SimulatePreconnectedPeripheralCommandResponse>

Events

GattOperationReceived

gattOperationReceived

public event EventHandler<GattOperationReceivedEventArgs>? GattOperationReceived

Event Type

EventHandler<GattOperationReceivedEventArgs>