- Installation
- Push Notification
- Customization
- Rest API
- API Reference
- Zoho SalesIQ
- Launcher
- Conversation
- Chat
- start()
- startWithTrigger()
- setWaitingTime()
- get()
- setTitle()
- setLanguage()
- setDepartment()
- setOperatorEmail()
- setVisibility()
- showOperatorImageInLauncher()
- setVisibility(MbedableComponent)
- showOfflineMessage()
- getList()
- open()
- endSession()
- fetchAttenderImage()
- setListener()
- getDepartments()
- showFeedbackAfterSkip()
- hideQueueTime()
- show()
- Chat Actions
- Calls
- Logger
- Visitor
- Visitor Tracking
- Notification
- Knowledge Base
- FAQ
- SDK 2.x, 3.x
- SDK 1.x
- Download Sample App
- Release Notes
- Additional Features
addOnCallStatusChangeCallback()
Note: This API is supported from version 8.1.0-beta01.
The addOnCallStatusChangeCallback() API registers a callback to monitor changes in the call's state.
Parameters:
- callback (ZohoSalesIQResultCallback<SalesIQCallState>): A callback function that handles updates to the call status.
- onSuccess(SalesIQCallState state): Invoked when the call status changes, providing the updated status.
- onFailure(int errorCode, String errorMessage): Invoked if an error occurs while monitoring the call status, with an error code and descriptive message.
Syntax
Copiedvoid addOnCallStatusChangeCallback(ZohoSalesIQResultCallback<SalesIQCallState> callback);
Example
CopiedFunction1<ZohoSalesIQCalls.SalesIQCallState, Unit> callback = new Function1<ZohoSalesIQCalls.SalesIQCallState, Unit>() {
@Override
public Unit invoke(ZohoSalesIQCalls.SalesIQCallState salesIQCallStatus) {
// Your code here to handle call state changes
return Unit.INSTANCE;
}
};
ZohoSalesIQCalls.addOnCallStateChangeCallback(callback);
Copiedval callback = { status: ZohoSalesIQCalls.SalesIQCallState ->
// Your code here to handle call state changes
}
ZohoSalesIQCalls.addOnCallStatusChangeCallback(callback)
© 2025, Zoho Corporation Pvt. Ltd. All Rights Reserved.