Class Observer<T>
Type Parameters
T
Hierarchy
- Observer
Index
Constructors
constructor
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
eventData: T
eventState: EventState
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
callbackSearch playground for callback
Type declaration
Defines the callback to call when the observer is notified
Parameters
eventData: T
eventState: EventState
Returns void
maskSearch playground for mask
Defines the mask of the observer (used to filter notifications)
scopeSearch playground for scope
Defines the current scope used to restore the JS context
unregister On Next CallSearch playground for unregisterOnNextCall
Gets or sets a property defining that the observer as to be unregistered after the next notification
Methods
removeSearch playground for remove
Remove the observer from its observable This can be used instead of using the observable's remove function.
Returns void
Represent an Observer registered to a given Observable object.