RegisterBuiltinCommand
Description
Registers a callback for Builtin commands.
Syntax
// The events interface is available under most objects
const result = await shellFrame.Events.RegisterBuiltinCommand(
eventToListen,
eventSinkBase,
);
Parameters
| Name | Optionality | Type | Description |
|---|---|---|---|
| eventToListen | Required | BuiltinCommand | builtin commmand to listen to |
| eventSinkBase | Required | Function | callback function to call |
Return type
| Type | Description |
|---|---|
Promise < null | number > | Registered callback ID which can be used to cancel the event listener |