Returns a boolean representing the associated user's current availabilty.
Returns the associated user's current presence state.
The user associated to this presence subscription.
Adds a new event listener for the specified event. The class will ignore duplicate registrations of the same listener to the same event.
The name of the event to add the listener for.
The listener callback to register.
This object, in support of a fluent API.
Returns this presence subscription as an RxJS Observable.
Provides the events emitted by this object as an Observable stream.
An Observable stream of all events emitted by this object.
Removes a single event listener for a specific event.
The name of the event to remove the listener for.
The listener callback to unregister.
This object, in support of a fluent API.
Adds a new event listener for the specified event. The class will ignore duplicate registrations of the same listener to the same event.
The name of the event to add the listener for.
The listener callback to register.
This object, in support of a fluent API.
Adds a single shot event listener for the specified event. The listener will be called the first time the specified event is fired after the event registration occurs, after which the registration will be removed and no further events will be passed to the listener.
The name of the event to add the listener for.
The listener callback to register.
This object, in support of a fluent API.
Removes all listeners for all events. This is useful for cleanup before disposing of this particular event emitter.
This object, in support of a fluent API.
Removes a single event listener for a specific event.
The name of the event to remove the listener for.
The listener callback to unregister.
This object, in support of a fluent API.
Removes all listeners bound on the given event.
the name of the event to remove listeners for
This object, in support of a fluent API.
Unsubscribes from future presence changes for the associated user, cleaning up any needed resources.
A mapping of the events a subscription could emit to each event's unique name.
The UserPresenceSubscription is a subscription to presence state and availability changes of a specific Domain User. The current state and availability can be queried from this object, OR you can use asObservable to subscribe to changes.
Instances of this can be obtained from PresenceService.subscribe.
Make sure to unsubscribe when you're done using this.