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.
context
- Application context.
xmppPort
- Port used for the XMPP server. If none is passed, the default port will be used.
val agenda: SippoService<Agenda>
Service to manage contacts logic and contact events. |
|
val chats: SippoService<Chats>
Service to manage chats logic and chat events. |
|
val conferenceLog: SippoService<ConferenceLog>
Service to manage conference log logic and new conference entry events. |
|
val conferences: Conferences
Service to manage conferences logic and new conference events. |
|
val groups: Groups
Service to manage groups logic and group events. |
|
val presences: SippoService<Presences>
Service to manage presences logic and presence events. |
|
val sessions: Sessions
Service to manage logic related to the session. |
|
val users: Users
Service to find users given a certain identifier. |
lateinit var client: SippoClient
The Sippo client instance. |
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. |
|
fun configureRTC(context: Context): Unit
Configures the WebRTC protocol used for VoIP features. It should be called once during the application lifecycle. |