default function map to use. Function maps need only be used with Recorder.
Subscribe to a notification.
event notification name
to be called when events
occur. If string, then FunctionMap of the Figure
or FigureElement to which the notification manager is a property
of will be used.
how many notifications the subscriber will receive.
num = 1 will mean only the first notification will be sent to the
subscriber .num = -1 means all notifications of the event will be sent
to the subscriber (-1).
subscriber id
Publish to all subscribers
payload to pass to subscribers
set to true if payload is an array that should
be published as an array. Set to false if payload should be published as
separated arguments.
Remove subscriber from subscription *
Notification manager.
Publishes notifications of events to subscribers.
Figure, FigureElement, Recorder, and SlideNavigator all use notification managers for event nofitications.
Notification managers can also be added to custom objects, but will only publish to subscribers when it is told to publish.
Example