VICalls
Interface that creates calls, conferences.
Methods
initialize
fun initialize(): Unit
Initialize the VICalls module to make calls.
Returns
type:
Unit
createCall
fun createCall(number: String
, callSettings: ): Call?
Creates a new call instance. Call should be then started via Call.start API.
Parameters
number:
String
SIP URI, username or phone number to make call to. Actual routing is then performed by VoxEngine scenario. See /docs/getting-started/basic-concepts/routing-rules to learn more about routing
callSettings:
Call settings with additional call parameters, such as preferred video codec, custom data, extra headers etc.
Returns
type:
Call?
createConference
fun createConference(number: String
, conferenceSettings: ):
Creates a conference instance.
Parameters
number:
String
The conference name. For SIP compatibility reasons it should be a non-empty string.
conferenceSettings:
Conference settings with additional conference parameters, such as preferred video codec, custom data, extra headers etc.
Returns
type:
setIncomingCallListener
fun setIncomingCallListener(listener: ): Unit
Sets IncomingCallListener to handle incoming calls.
Parameters
listener:
OptionalThe listener to be notified of incoming calls. If null, previous listener is removed
Returns
type:
Unit
getMissingPermissions
@JvmStaticfun getMissingPermissions(videoSupportEnabled: Boolean
): List<String>
Gets the list of required permissions that have not been granted by user yet.
Parameters
videoSupportEnabled:
Boolean
Whether permissions for video calls are required
Returns
type:
List<String>
Props
version
val version: String
Returns
type:
String
eglBase
var eglBase: EglBase?
Externally created WebRTC EglBase.
Returns
type:
EglBase?
conferences
val conferences: Map<String, Conference>
Returns all active conferences.
Returns
type:
Map<String, Conference>