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

_willBeUnregistered: boolean
internal
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

Legend

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

Settings

Theme