Files
archived-tauri-docs/docs/api/js/classes/shell.EventEmitter.md
2022-03-29 07:36:52 +02:00

998 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.

Defined in

shell.ts:173