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

enableDoNotDisturb

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.

fetchAuthProvider

fun fetchAuthProvider(): Single<AuthProvider>

Fetches the available AuthProvider.

fetchProviders

fun fetchProviders(): Single<List<Provider>>

Fetches the available Provider.

getLocalUser

fun getLocalUser(): Single<User>

Retrieves the information of the local user.

getSessionId

fun getSessionId(): Maybe<String>

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

updateLocalUser

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

Updates the local user.