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

  • Create a new signal.

    Type parameters

    • T

    Returns Signal<T>

Methods

  • add(listener: (T: any) => void): void
  • Add a event listener.

    Parameters

    • listener: (T: any) => void

      the listener to add.

        • (T: any): void
        • Parameters

          • T: any

          Returns void

    Returns void

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

    Parameters

    • value: T

      the value to provide to the listeners.

    Returns void

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

    Parameters

    • value: any

      the value to provide to the listeners.

    Returns void

  • remove(listener: (T: any) => void): void
  • Remove an event listener.

    Parameters

    • listener: (T: any) => void

      the listener to remove.

        • (T: any): void
        • Parameters

          • T: any

          Returns void

    Returns void