sippo-sdk / com.quobis.sippo.sipposdk.client / SippoClient

SippoClient

class SippoClient

Sippo client instance.

This class allows the creation of a new Sippo client instance (see the configure method) which gives access to all the services provided by Sippo. It also allows configuring the WebRTC protocol, which is necessary for the proper performance of the VoIP features. IMPORTANT: A reachable server and a gateway is needed.

Parameters

context - Application context.

serverUrl - Server URL.

xmppPort - Port used for the XMPP server. If none is passed, the default port will be used.

Properties

agenda

val agenda: SippoService<Agenda>

Service to manage contacts logic and contact events.

chats

val chats: SippoService<Chats>

Service to manage chats logic and chat events.

conferenceLog

val conferenceLog: SippoService<ConferenceLog>

Service to manage conference log logic and new conference entry events.

conferences

val conferences: Conferences

Service to manage conferences logic and new conference events.

groups

val groups: Groups

Service to manage groups logic and group events.

presences

val presences: SippoService<Presences>

Service to manage presences logic and presence events.

sessions

val sessions: Sessions

Service to manage logic related to the session.

users

val users: Users

Service to find users given a certain identifier.

Companion Object Properties

client

lateinit var client: SippoClient

The Sippo client instance.

Companion Object Functions

configure

fun configure(context: Context, serverUrl: URL, xmppPort: Int? = null): 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

fun configureRTC(context: Context): Unit

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