ElectronWebContents.on('select-bluetooth-device') method
ElectronWebContents › on(‘select-bluetooth-device’)
Unofficial
Registers a listener for theselect-bluetooth-device event.Signature:
on($event: "select-bluetooth-device", listener: ($event: ElectronEvent, devices: ElectronBluetoothDevice[], callback: (deviceId: string) => void) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "select-bluetooth-device" | |
| listener | ($event: ElectronEvent, devices: ElectronBluetoothDevice[], callback: (deviceId: string) => void) => void | Called when the select-bluetooth-device event is emitted. |
Returns: this — This web contents instance.