Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Observer

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

Index

Accessors

Methods

Accessors

isStopped

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

    Returns boolean

Methods

stop

  • stop(): void
  • Stops the observation. Calling this method multiple times has no effect.

    Returns void