Skip to main content

ExecuteCommand

Description

Executes a user command.

Syntax

// Execute a new custom command with data parameter
await shellFrame.Commands.ExecuteCommand(commandId, {
someCustomData: 1234
});

Parameters

NameTypeDescription
commandIdnumberThe command id. Can be a built-in command enumerated value or custom command id.
argsanyCommand argument or an arguments object, if the command requires arguments.
Use null or empty value if the command does not require arguments.

Return type

TypeDescription
Promise < void >Method does not return a value