Session.on('serial-port-added') method
Session › on(‘serial-port-added’)
Unofficial
Emitted after a new serial port becomes available.Signature:
on(event: "serial-port-added", listener: (event: ElectronEvent, port: ElectronSerialPort, webContents: ElectronWebContents) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "serial-port-added" | |
| listener | (event: ElectronEvent, port: ElectronSerialPort, webContents: ElectronWebContents) => void |
Returns: this