Skip to content

Session.on('select-serial-port') method

Session › on(‘select-serial-port’)

Unofficial

Emitted when a serial port needs to be selected.

Signature:

on(event: "select-serial-port", listener: (event: ElectronEvent, portList: ElectronSerialPort[], webContents: ElectronWebContents, callback: (portId: string) => void) => void): this

Parameters:

Parameter Type Description
event "select-serial-port"
listener (event: ElectronEvent, portList: ElectronSerialPort[], webContents: ElectronWebContents, callback: (portId: string) => void) => void

Returns: this