Skip to content

Session.on('select-hid-device') method

Session › on(‘select-hid-device’)

Unofficial

Emitted when a HID device needs to be selected.

Signature:

on(event: "select-hid-device", listener: (event: ElectronEvent, details: ElectronSelectHidDeviceDetails, callback: (deviceId?: string | null | undefined) => void) => void): this

Parameters:

Parameter Type Description
event "select-hid-device"
listener (event: ElectronEvent, details: ElectronSelectHidDeviceDetails, callback: (deviceId?: string | null | undefined) => void) => void

Returns: this