Interface IBluetoothEmulation
- Namespace
- PuppeteerSharp
- Assembly
- PuppeteerSharp.dll
Exposes the bluetooth emulation abilities.
public interface IBluetoothEmulation
Methods
DisableEmulationAsync()
Disable emulated bluetooth adapter.
Task DisableEmulationAsync()
Returns
EmulateAdapterAsync(AdapterState, bool)
Emulate Bluetooth adapter. Required for bluetooth simulations.
Task EmulateAdapterAsync(AdapterState state, bool leSupported = true)
Parameters
stateAdapterStateThe desired bluetooth adapter state.
leSupportedboolMark if the adapter supports low-energy bluetooth.
Returns
SimulatePreconnectedPeripheralAsync(PreconnectedPeripheral)
Simulated preconnected Bluetooth Peripheral.
Task SimulatePreconnectedPeripheralAsync(PreconnectedPeripheral preconnectedPeripheral)
Parameters
preconnectedPeripheralPreconnectedPeripheralThe peripheral to simulate.