Options
All
  • Public
  • Public/Protected
  • All
Menu

Represent an Observer registered to a given Observable object.

Type Parameters

  • T

Hierarchy

  • Observer

Index

Constructors

  • new Observer<T>(callback: ((eventData: T, eventState: EventState) => void), mask: number, scope?: any): Observer<T>
  • Creates a new observer

    Type Parameters

    • T

    Parameters

    • callback: ((eventData: T, eventState: EventState) => void)

      defines the callback to call when the observer is notified

        • 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<T>

Properties

callback: ((eventData: T, eventState: EventState) => void)

Type declaration

    • 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)

scope: any

Defines the current scope used to restore the JS context

unregisterOnNextCall: boolean

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

Methods

  • remove(): void
  • Remove the observer from its observable This can be used instead of using the observable's remove function.

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme