Table of Contents

Interface IBluetoothEmulation

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

Exposes the bluetooth emulation abilities.

public interface IBluetoothEmulation

Methods

DisableEmulationAsync()

Disable emulated bluetooth adapter.

Task DisableEmulationAsync()

Returns

Task

A Task that completes when the emulation is disabled.

EmulateAdapterAsync(AdapterState, bool)

Emulate Bluetooth adapter. Required for bluetooth simulations.

Task EmulateAdapterAsync(AdapterState state, bool leSupported = true)

Parameters

state AdapterState

The desired bluetooth adapter state.

leSupported bool

Mark if the adapter supports low-energy bluetooth.

Returns

Task

A Task that completes when the adapter is emulated.

SimulatePreconnectedPeripheralAsync(PreconnectedPeripheral)

Simulated preconnected Bluetooth Peripheral.

Task SimulatePreconnectedPeripheralAsync(PreconnectedPeripheral preconnectedPeripheral)

Parameters

preconnectedPeripheral PreconnectedPeripheral

The peripheral to simulate.

Returns

Task

A Task that completes when the peripheral is simulated.