# Companion

object Companion

## Properties

chatManager
Link copied to clipboard
@JvmStatic
lateinit var chatManager: ChatManager

The chat manager instance. Is available when the client is configured and the user is logged in.

client
Link copied to clipboard
@JvmStatic
lateinit var client: SippoClient

The Sippo client instance.

hostMetaFile
Link copied to clipboard
@JvmStatic
lateinit var hostMetaFile: HostMetaFile

The host meta file to access AuthUrl and WebUrl.

sessionManager
Link copied to clipboard
@JvmStatic
lateinit var sessionManager: SessionManager

The session manager instance. Is available when the client is configured.

## Functions

configure
Link copied to clipboard
@JvmStatic
fun configure(context: Context, serverUrl: URL, logger: SippoLogger = SippoLogger.Builder().build(), onCompletion: (SippoResourceError?) -> Unit)

Creates and configures a new Sippo client instance. If another instance exists, it will continue alive until an explicit logout is made. Also, after an explicit logout, the current instance is no longer valid and a new one needs to be configured.

configureRTC
Link copied to clipboard
@JvmStatic
fun configureRTC(context: Context)

Configures the WebRTC protocol used for VoIP features. It should be called once during the application lifecycle.