# SessionManager

class SessionManager

## Properties

isChatConnected
Link copied to clipboard
var isChatConnected: Boolean
isConferenceServiceAvailable
Link copied to clipboard
val isConferenceServiceAvailable: Boolean

Indicates whether the user session is currently connected.

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

addListener
Link copied to clipboard
fun addListener(listener: SessionManagerListener)

Adds a listener to receive session manager events.

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

Connects a new session.

removeListener
Link copied to clipboard
fun removeListener(listener: SessionManagerListener)

Removes the specified listener.

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

Restores the session.

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

Suspend current session