Register
Description
Registers a handler object/function for handling the specified type of events.
Syntax
// The events interface is available under most objects
const result = await shellFrame.Events.Register(eventToListen, eventSink);
Parameters
Name | Type | Description |
---|---|---|
eventToListen | Event | The event type to handle. |
eventSink | Function | The event sink to register. |
Return type
Type | Description |
---|---|
Promise < number > | Returns handle to the registered event handler. This handle can be used later to unregister the handler. |