Generic observer handle returned by various observation APIs. The observation remains active until the stop() method is called explicitly or the observer instance is garbage collected. Therefore, to keep the observation alive, you have to keep a reference to the corresponding observer.

Hierarchy

  • Observer

Accessors

Methods

Accessors

  • get isStopped(): boolean
  • Returns true if the observer has been explicitly stopped via the stop() method. Otherwise returns false.

    Returns boolean

Methods

  • Stops the observation. Calling this method multiple times has no effect.

    Returns void