Documentation - v19.2.0-dev
    Preparing search index...

    Class ViewerSignal<THandler>

    Type Parameters

    • THandler extends (...args: any[]) => any

    Hierarchy

    Index

    Constructors

    Methods

    • Override the connect method of the Signal class to set the isPublic property by default to false

      Parameters

      • callback: THandler
      • __namedParameters: ConnectOptions = {}

      Returns SignalConnection

    • Unsubscribe from this signal with the original callback instance. While you can use this method, the SignalConnection returned by connect() will not be updated!

      Parameters

      • callback: THandler

        The callback you passed to connect().

      Returns boolean

    • Disconnect all handlers from this signal event.

      Returns void

    • Publish this signal event (call all handlers).

      Parameters

      Returns void

    • Parameters

      Returns void

    • Returns number

      The number of connections on this signal.

    • Returns boolean

      true if this signal has connections.

    • Parameters

      Returns () => boolean