Observer<T>

Represent an Observer registered to a given Observable object.

Type parameters

  • T

Hierarchy

  • Observer

Index

Constructors

constructor

Find examples in Playground
  • new Observer(callback: function, mask: number, scope?: any): Observer
  • Creates a new observer

    Parameters

    • callback: function

      defines the callback to call when the observer is notified

        • Parameters

          Returns void

    • mask: number

      defines the mask of the observer (used to filter notifications)

    • Optional scope: any

      defines the current scope used to restore the JS context

    Returns Observer

Properties

callback

Find examples in Playground
callback: function

Defines the callback to call when the observer is notified

Type declaration

    • Parameters

      Returns void

mask

Find examples in Playground
mask: number

Defines the mask of the observer (used to filter notifications)

scope

Find examples in Playground
scope: any

Defines the current scope used to restore the JS context

unregisterOnNextCall

Find examples in Playground
unregisterOnNextCall: boolean

Gets or sets a property defining that the observer as to be unregistered after the next notification

Generated using TypeDoc