ApplicationCommandEvent.add Method

Parent Object: ApplicationCommandEvent
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/ApplicationCommandEvent.h>

Description

Adds an event handler object to this event endpoint.

Syntax

"applicationCommandEvent_var" is a variable referencing an ApplicationCommandEvent object.
returnValue = applicationCommandEvent_var.add(handler)
"applicationCommandEvent_var" is a variable referencing an ApplicationCommandEvent object.

#include <Core/UserInterface/ApplicationCommandEvent.h>

returnValue = applicationCommandEvent_var->add(handler);

Return Value

Type Description
boolean Returns true if the handler was successfully added to the set of event handlers.

Parameters

Name Type Description
handler ApplicationCommandEventHandler The ApplicationCommandEventHandler to be called when this event is triggered.

Version

Introduced in version November 2015