Class Observer<T>
Type parameters
-
T
Hierarchy
- Observer
Index
Constructors
Properties
Constructors
constructor
-
Creates a new observer
Parameters
-
callback: (eventData: T, eventState: EventState) => void
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
-
Properties
callbackSearch playground for callback
Defines the callback to call when the observer is notified
Type declaration
-
-
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 OnNext CallSearch playground for unregisterOnNextCall
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.