Class Observer<T>
Type Parameters
- T
Implements
Index
Constructors
constructor
-
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
- mask: number
defines the mask of the observer (used to filter notifications)
- scope: any = null
defines the current scope used to restore the JS context
Returns Observer<T>
Properties
callback
Defines the callback to call when the observer is notified
mask
mask: number
Defines the mask of the observer (used to filter notifications)
scope
scope: any = null
[null] Defines the current scope used to restore the JS context
unregister On Next Call
unregisterOnNextCall: boolean = false
Gets or sets a property defining that the observer as to be unregistered after the next notification
Represent an observer registered to a given Observable object.