Skip to main content

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

NameTypeDescription
eventToListenEventThe event type to handle.
eventSinkFunctionThe event sink to register.

Return type

TypeDescription
Promise < number >Returns handle to the registered event handler.
This handle can be used later to unregister the handler.