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:

ParameterTypeDescription
$event"select-bluetooth-device"
listener($event: ElectronEvent, devices: ElectronBluetoothDevice[], callback: (deviceId: string) => void) => voidCalled when the select-bluetooth-device event is emitted.

Returns: this — This web contents instance.