Class: EventStream
The event stream of the form viewer.
Constructors
new EventStream()
new EventStream(
stream
):EventStream
Creates the event stream of the form viewer.
Parameters
• stream: Observable
<ActionEventArgs
>
the set of observable events.
Returns
Methods
filter()
filter(
predicate
):EventStream
Returns the event stream filtered by the specified predicate function.
Parameters
• predicate
the predicate function.
Returns
the event stream filtered by the specified predicate function.
keys()
keys(...
keys
):EventStream
Returns the event stream filtered by the specified sender keys.
Parameters
• ...keys: string
[]
the sender key array.
Returns
the event stream filtered by the specified sender keys.
listen()
Adds the specified observer to the stream of observed events.
Param
the observer.
listen(next)
listen(
next
): () =>void
Adds the subscriber to the stream of observed events.
Parameters
• next
the subscriber function.
Returns
Function
the unsubscribe function.
Returns
void
Param
the observer.
listen(observer)
listen(
observer
): () =>void
Adds the specified observer to the stream of observed events.
Parameters
• observer: Partial
<Observer
<ActionEventArgs
>>
the observer.
Returns
Function
the unsubscribe function.
Returns
void
Param
the observer.
types()
types(...
types
):EventStream
Returns the event stream filtered by the specified event types.
Parameters
• ...types: string
[]
the array of event types.
Returns
the event stream filtered by the specified event types.