SessionManager

Properties

Link copied to clipboard

Indicates whether the user session is currently connected.

Link copied to clipboard
Link copied to clipboard
val state: 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

Adds a listener to receive session manager events.

Link copied to clipboard
fun connect(authentication: Authentication, context: Context, onCompletion: (SippoResourceError?) -> Unit)

Connects a new session.

Link copied to clipboard

Removes the specified listener.

Link copied to clipboard
fun restore(context: Context, onCompletion: (SippoResourceError?) -> Unit)

Restores the session.

Link copied to clipboard
fun suspend(onCompletion: (SippoResourceError?) -> Unit)

Suspend current session