Adds an event handler object to this event endpoint.
"commandEvent_var" is a variable referencing a CommandEvent object. |
"commandEvent_var" is a variable referencing a CommandEvent object. |
| Type | Description |
| boolean | Returns true if the handler was successfully added to the set of event handlers. |
| Name | Type | Description |
| handler | CommandEventHandler | The client implemented CommandEventHandler to be called when this event is triggered. |
| Name | Description |
| Command Inputs API Sample | Creates a command dialog that demonstrates all of the available command inputs. To use the sample, create a new Python or C++ script and copy and paste this code, replacing the default code. You also need to unpack this zip file which contains a resource folder into the same folder where the source code file (.py or .cpp) is. |