figureone
    Preparing search index...

    Class Notification

    A single subscription

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Add a subscriber to an event.

      Parameters

      • callback: string | (() => void)

        to be called when events are published. If string, then FunctionMap of the Figure or FigureElement to which the notification manager is a property of will be used.

      • numberOfPublications: number = -1

      Returns number

      subscirber id

    • Publish to all subscribers

      Parameters

      • functionArgument: any = undefined

        argument to pass to subscriber callback

      • asArray: boolean = true

      Returns void

    • Remove subscriber - the subscirber id is returned by this object's add method

      Parameters

      • subscirberId: string | number

      Returns void