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 fetchProviders(): Single<List<Map<String, String>>>
Fetches the available providers. |
|
fun getLocalUser(): Single<User>
Retrieves the information of the local user. |
|
fun updateLocalUser(user: User): Single<User>
Updates the local user. |