class SessionsRx
Reactive API of Sessions.
This class exposes the session state included in Sessions but using a Rx observable.
val state: Observable<State>
Emits the session state whenever it changes. When a subscriber is added, it will also emit the current session state. |
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. |
|
fun fetchAuthProvider(): Single<AuthProvider>
Fetches the available AuthProvider. |
|
fun fetchProviders(): Single<List<Provider>>
Fetches the available Provider. |
|
fun getLocalUser(): Single<User>
Retrieves the information of the local user. |
|
fun getSessionId(): Maybe<String>
Retrieves the session identifier in the signaling server if it has been established. |
|
fun updateLocalUser(user: User): Single<User>
Updates the local user. |