Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Signal models an event emitter. This class has platform specific behaviors.

The CSharp version has a public "SignalEvent" event property to which "Action" delegates can be added or removed. The property signature is: "public event Action SignalEvent"

Type parameters

  • T

Hierarchy

  • Signal

Index

Constructors

constructor

  • Create a new signal.

    Returns Signal

Methods

add

  • add(listener: function): void
  • Add a event listener.

    Parameters

    • listener: function

      the listener to add.

        • (T: any): void
        • Parameters

          • T: any

          Returns void

    Returns void

dispatch

  • dispatch(value: T): void
  • Dispatch a value.

    Parameters

    • value: T

      the value to provide to the listeners.

    Returns void

dispatchObject

  • dispatchObject(value: any): void
  • Dispatch an untyped value.

    Parameters

    • value: any

      the value to provide to the listeners.

    Returns void

remove

  • remove(listener: function): void
  • Remove an event listener.

    Parameters

    • listener: function

      the listener to remove.

        • (T: any): void
        • Parameters

          • T: any

          Returns void

    Returns void