mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
859 B
859 B
sidebar_label
| sidebar_label |
|---|
| BluetoothEmulation.emulateAdapter |
BluetoothEmulation.emulateAdapter() method
Emulate Bluetooth adapter. Required for bluetooth simulations See bluetooth.simulateAdapter.
Signature
interface BluetoothEmulation {
emulateAdapter(state: AdapterState, leSupported?: boolean): Promise<void>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
state |
The desired bluetooth adapter state. | |
|
leSupported |
boolean |
(Optional) Mark if the adapter supports low-energy bluetooth. |
Returns:
Promise<void>