Files
archived-tauri-docs/docs/api/js/classes/shell.EventEmitter.md
2022-07-11 18:09:42 +01:00

877 B

@tauri-apps/api / shell / EventEmitter

Class: EventEmitter<E>

shell.EventEmitter

Type parameters

Name Type
E extends string

Hierarchy

Constructors

constructor

new EventEmitter<E>()

Type parameters

Name Type
E extends string

Methods

on

on(event, handler): EventEmitter<E>

Listen to an event from the child process.

Parameters

Name Type Description
event E The event name.
handler (arg: any) => void The event handler.

Returns

EventEmitter<E>

The this instance for chained calls.