Interface Signal


public interface Signal
A generic interface used to implement actions or events that are not associated with a value.
Since:
API version 1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Registers an observer that gets notified when the signal gets fired.
    void
    Fires the action or event represented by the signal object.
  • Method Details

    • addSignalObserver

      void addSignalObserver(NoArgsCallback callback)
      Registers an observer that gets notified when the signal gets fired.
      Parameters:
      callback - a callback function that does not receive any argument.
      Since:
      API version 1
    • fire

      void fire()
      Fires the action or event represented by the signal object.
      Since:
      API version 1