Android Calling UI Framework
The Calling UI SDK for Android native app developers minimizes your coding effort for integrating with the CallKit interface. Using EnableX Calling UI framework, you can enable an app-to-app calling feature in less than 5 minutes alongwith the EnableX UIKit.
Android Calling UI SDK v1.0
Released: June 15, 2022EnableX also provides a powerful UIKit framework, which is built on top of UIKit, using which you can create audio and video UI in a few lines of code.
For more information, see Video UI Kit.
Pre-requisites
You must meet the following requirement to enable the Calling UI framework in your existing application:
- The VoIP feature is enabled for the application in the background mode.
- Notification service is integrated with the application as EnableX does not provide it.
Integrate in Android Native App
For integrating the Calling UI framework in Android, create an instance of the EnxCallKitView
class and handle the Callback functions.
- Observer:
EnxCallKitStateObserver
- Class:
EnxCallKitView
// Create an instance of this Class. - Parameters:
this
: Pass reference of your activityname
: Name of the callerint
: reference of iconthis
: reference of Observer
- Callbacks:
callAnswer()
: When you receive incoming callcallReject()
: When you reject incoming callcallTimeOut()
: When you didn’t respond to incoming call notification, it times out in 45 seconds.
var callKitView = EnxCallKitView.getInstance(this@ConferenceActivity,"name",com.enxcallkit.R.mipmap.ic_launcher_round,this)override fun callAnswer() {// When you receive incoming call}override fun callReject() {// When you reject incoming call}override fun callTimeOut() {// When you didn't respond to incoming call notification,// it times out in 45 seconds.}