Skip to content

ElectronWebContents.on('select-bluetooth-device') method

ElectronWebContents › on(‘select-bluetooth-device’)

Unofficial

Registers a listener for the select-bluetooth-device event.

Signature:

on(event: "select-bluetooth-device", listener: (event: ElectronEvent, devices: ElectronBluetoothDevice[], callback: (deviceId: string) => void) => void): this

Parameters:

Parameter Type Description
event "select-bluetooth-device" The event name.
listener (event: ElectronEvent, devices: ElectronBluetoothDevice[], callback: (deviceId: string) => void) => void Called when the select-bluetooth-device event is emitted.

Returns: thisThis web contents instance.