Skip to content

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 ​

ParameterType
thisT
payloadP

Returns ​

void

The SDK is released under the Apache License 2.0