SDK Release Notes
v1.7.1
Added new connection state
BACKGROUNDEDto correctly handle cases where the app goes to background, screen turns off, or the call is interrupted.
ConnectionState.BACKGROUNDED -> {
// Occurs when the app goes to background, screen turns off, or a call interrupts.
// Fragment should be removed from stack.
removeFragment(videoCallFragment)
}
General minor fixes
v1.6.0
The
onExceptioncallback has been deprecated and replaced with the newonErrorcallback for improved error handling.
// ❌ Deprecated
@Deprecated
override fun onException(exception: String) {
removeFragment(videoCallFragment)
}
// ✅ New method
override fun onError(error: String) {
// Handles any error during the call
removeFragment(videoCallFragment)
}
Fixed an internal minor bug fix on video call process when doLeave() is triggered
v1.5.0
Added a confirmation alert dialog option on UI when the user clicks the Call End button in the Video SDK UI.
This change helps prevent accidental call termination by prompting the user with a confirmation before proceeding.
When the user clicks the "Call End" button:
- A dialog appears asking:
"Are you sure you want to end the call? If this was accidental, press No to continue the call. Press OK to end it." - If the user presses OK, the call ends via
removeFragment(videoCallFragment). - If the user presses NO, the dialog closes and the call continues uninterrupted.
This feature can be used as shown in the example below to display a confirmation dialog before ending the call.
Alternatively, developers who prefer to end the call directly without confirmation may continue to use:
override fun onUiEvent(
amaniVideoButtonEvents: AmaniVideoButtonEvents,
isActivated: Boolean
) {
when (amaniVideoButtonEvents) {
AmaniVideoButtonEvents.CALL_END -> {
if (isActivated) {
alertDialog(
title = "Are you sure?",
message = "Are you sure you want to end the call? If this was " +
"accidental, press No to continue the call. Press OK to end it.",
positiveButton = "OK",
negativeButton = "NO",
positiveClick = {
snackBar("Call is ended")
removeFragment(videoCallFragment)
},
negativeClick = {
// User canceled the action; do nothing
}
)
}
}
else -> {}
}
}
OR
override fun onUiEvent(
amaniVideoButtonEvents: AmaniVideoButtonEvents,
isActivated: Boolean
) {
when (amaniVideoButtonEvents) {
AmaniVideoButtonEvents.CALL_END -> {
if (isActivated) {
removeFragment(videoCallFragment)
}
}
else -> {}
}
}
v1.4.1
Add new AmaniVideoRemoteEvents.CALL_ESCALATED whether to check call is escalated from agent to another agent
AmaniVideoRemoteEvents.CALL_ESCALATED -> {
//The event triggered when the studio requests the call
//to be transferred/forwarded to another agent. In this case, the call can be
//set to escalated true again and started as in the example.
}
Add new new method to start escalated call, non mandatory method, usage is below;
VideoSDK.Builder()
..
.escalatedCall(escalated = true/false)
..
.build()
Update current compileSdk to 34
Update compiled Java Version to JavaVersion.VERSION_17