Type Alias: EventHandler<T, P>
ts
type EventHandler<T, P> = (this, payload) => void;Defined in: types/desktop-engine.d.ts:123
Event callback: this is the object that fired the event, and the argument is a plain object passed from native code (some events have no argument)
Type Parameters
| Type Parameter |
|---|
T |
P |
Parameters
| Parameter | Type |
|---|---|
this | T |
payload | P |
Returns
void
