sippo-sdk / com.quobis.sippo.sipposdk.session / SessionsRx

SessionsRx

class SessionsRx

Reactive API of Sessions.

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

Properties

state

val state: Observable<State>

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

Functions

fetchProviders

fun fetchProviders(): Single<List<Map<String, String>>>

Fetches the available providers.

getLocalUser

fun getLocalUser(): Single<User>

Retrieves the information of the local user.

updateLocalUser

fun updateLocalUser(user: User): Single<User>

Updates the local user.