mapCommand

Adds a mapping where the value to map is given by the constant name and will be mapped to a fixed destination of Dispatch.Keys.COMMAND_NAME.

Command names are always appended to any command already in Dispatch.Keys.COMMAND_NAME, whether it was in the original payload or mapped by a previous mapping, so multiple commands can be collected.

Returns a CommandOptions with which to configure some options if required.

Parameters

name

The command name to map to the constant command key, Dispatch.Keys.COMMAND_NAME