ApplicationEvent.add Method

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

Description

Add a handler to be notified when the event occurs.

Syntax

"applicationEvent_var" is a variable referencing an ApplicationEvent object.
returnValue = applicationEvent_var.add(handler)
"applicationEvent_var" is a variable referencing an ApplicationEvent object.

#include <Core/Application/ApplicationEvent.h>

returnValue = applicationEvent_var->add(handler);

Return Value

Type Description
boolean Returns true if the addition of the handler was successful.

Parameters

Name Type Description
handler ApplicationEventHandler The handler object to be called when this event is fired.

Version

Introduced in version January 2016