ExecuteCommand
Description
Executes a user command.
Syntax
// Execute a new custom command with data parameter
await shellFrame.Commands.ExecuteCommand(commandId, {
someCustomData: 1234
});
Parameters
Name | Type | Description |
---|---|---|
commandId | number | The command id. Can be a built-in command enumerated value or custom command id. |
args | any | Command argument or an arguments object, if the command requires arguments. Use null or empty value if the command does not require arguments. |
Return type
Type | Description |
---|---|
Promise < void > | Method does not return a value |