Puppeteer 中文文档v25.8.0

BluetoothEmulation.simulatePreconnectedPeripheral() 方法

模拟已预连接的蓝牙外设。参见 bluetooth.simulatePreconnectedPeripheral

签名

interface BluetoothEmulation {
  simulatePreconnectedPeripheral(
    preconnectedPeripheral: PreconnectedPeripheral,
  ): Promise<void>;
}

参数

参数

类型

说明

preconnectedPeripheral

PreconnectedPeripheral

要模拟的外设。

返回值:

Promise<void>