SessionsRx

Reactive API of Sessions.

This class exposes the session state included in Sessions but using a Rx observable.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val state: Observable<Session.State>

Emits the session state whenever it changes. When a subscriber is added, it will also emit the current session state.

Functions

Link copied to clipboard
fun enableDoNotDisturb(context: Context, isEnabled: Boolean): Completable

Enables/Disables the Do-Not-Disturb option. When activated, disables the current Firebase token to avoid receiving push notifications from the server and blocks incoming calls received through socket.

Link copied to clipboard
fun fetchAuthProvider(): Single<AuthProvider>

Fetches the available AuthProvider.

Link copied to clipboard
fun getLocalUser(): Single<WacUser>

Retrieves the information of the local user.

Link copied to clipboard
fun getSessionId(): Maybe<String>

Retrieves the session identifier in the signaling server if it has been established.

Link copied to clipboard
fun updateLocalUser(user: WacUser): Single<WacUser>

Updates the local user.