start()
Note: This API is supported from version 8.1.0-beta01.
The start() API initiates a call to a specified user using their unique ID anywhere within the application. You can optionally include custom attributes for the call and a callback function to handle the success or failure of the call initiation.
Parameters:
- id (String) (Optional): The unique ID of the chat to call.
- displayActiveCall (Boolean): Opens the call screen if there is an ongoing call.
- attributes (@Nullable SalesIQConversationAttributes) (Optional): Attributes to customize the call, including the user's name, additional info, or display picture metadata.
- Callback (@Nullable ZohoSalesIQResultCallback<Unit>): A callback function to handle the result of the call initiation. It includes:
- onSuccess(Unit result): Called when the call is successfully initiated.
- onFailure(int errorCode, String errorMessage): Called if the call fails to start, providing an error code and a descriptive error message.
Note: Pass null if you do not require result handling.