setSalesIQInitCallback
For the SalesIQ configuration, you need to set up all the required configurations using the ZohoDeskPortalSalesIQ.setSalesIQInitCallback method.
Ensure that this callback is set before calling ZohoDeskPortalSDK.getInstance(getApplicationContext()).initDesk(orgId, appId, datacenterValue).
Parameters:
- onInitialized - This is called when the SalesIQ SDK is successfully initialised.
- onException - This is called when the SDK initialization fails.
Example:
Here is an example of SalesIQ configurations set within the callback.
- ZohoDeskPortalSalesIQ.setSalesIQInitCallback(object : SalesIQInitCallback {
- override fun onInitialized() { // On successfully initializing SalesIQ
- // ZohoDeskPortalSalesIQ.setChatVisibility(Component.PRECHAT_FORM,true)
- // ZohoDeskPortalSalesIQ.setConversationVisibility(true)
- }
- override fun onException(p0: Int, p1: String?) { //On Failed
- }
- })
ShowLauncher
The ZohoDeskPortalSalesIQ.setLauncherVisibility(mode: LauncherMode) API allows you to manage the SalesIQ launcher's visibility based on the specified mode.
Parameters of VisibilityMode:
- ALWAYS_VISIBLE - The launcher will always be visible.
- NEVER_VISIBLE - The launcher will always be hidden.
- VISIBLE_WHEN_ACTIVE_CHAT - The launcher will be visible only when there is an active chat.
- ZohoDeskPortalSalesIQ.setLauncherVisibility(LauncherMode.ALWAYS_VISIBLE)
enableDragToDismiss
The ZohoDeskPortalSalesIQ.enableDragToDismiss(enable: Boolean) you can close the SalesIQ launcher by dragging it and dropping it onto the close button.
- ZohoDeskPortalSalesIQ.enableDragToDismiss(false)
setConversationTitle
This ZohoDeskPortalSalesIQ.setConversationTitle(title: String) API allows you to set the title for the conversations list screen in SalesIQ.
- ZohoDeskPortalSalesIQ.setConversationTitle("History")
setConversationVisibility
This ZohoDeskPortalSalesIQ.setConversationVisibility(visible: Boolean) API can be used to enable or disable the visitor conversation history in the salesiQ UI.
Parameters:
- true - Displays the conversation screen. (Default)
- false - Hides the conversation screen.

This API cannot enable conversation history in UI if disabled in portal settings.
- ZohoDeskPortalSalesIQ.setConversationVisibility(true)
showFeedbackAfterSkip
The ZohoDeskPortalSalesIQ.showFeedbackAfterSkip(show: Boolean) API allows you to manage the duration of the feedback card for 24 hours after the chat ends.
Parameters:
- true - The feedback card will be displayed permanently. (Default)
- false - The feedback card will displayed for 24 hours until feedback is given.

The feedback card will always have the Skip option. When enable is "false" and upon clicking on Skip, the card will not be displayed again until the next chat.
- ZohoDeskPortalSalesIQ.showFeedbackAfterSkip(false)
hideQueueTime
The ZohoDeskPortalSalesIQ.hideQueueTime(show:Boolean) API controls the visibility of the chat queue time in the chat window when connecting to an operator.
Parameter:
- true - This hides chat queue time. (Default)
- false - This displays the chat Queue Time.
- ZohoDeskPortalSalesIQ.hideQueueTime(true)
setLoggerEnabled
This ZohoDeskPortalSalesIQ.setLoggerEnabled(isEnabled:Boolean) API lets you request debug logs for your application from visitors. In the SalesIQ dashboard, you can set the boolvalue to either enable or disable the request app log feature for your operators.
Parameter:
- true - Enables the logs.
- false - Disables the logs. (Default)
- ZohoDeskPortalSalesIQ.setLoggerEnabled(true)
showOfflineMessage
This showOfflineMessage(show: Boolean) API will set an offline banner in the chat window during non-business hours and when agents are busy to help visitors leave a message even when agents are unavailable.
Parameters:
- true - Displays the offline message card. (Default)
- false - Hides the offline message card.
- ZohoDeskPortalSalesIQ.showOfflineMessage(true)
setKnowledgeBaseVisibility
The ZohoDeskPortalSalesIQ.setKnowledgeBaseVisibility(enable: Boolean) API allows you to manage the resource's visibility in the Mobilisten knowledge base section.
Parameters:
true - This will display the resource type. (Default)
false - This will hide the resource type.

The API will work when "Articles" is enabled under brand settings. To check, navigate to Settings > Brands > Personalisation > Knowledge Base > Article from your SalesIQ dashboard.
- ZohoDeskPortalSalesIQ.setKnowledgeBaseVisibility(true)
setChatVisibility
This ZohoDeskPortalSalesIQ.setChatVisibility(Component, true) API lets you toggle the function of various components in SalesIQ
The components' settings are considered only if their function is enabled in portal settings.- ZohoDeskPortalSalesIQ.setChatVisibility(Component.PRECHAT_FORM,true)// Add other configurations as needed...
Parameters:
Chat component | Function description | Default setting |
preChatForm | Enable/disable the pre-chat from before initiating a chat. | Enabled |
operatorImage | Used to enable/disable the operator's profile image in the chat window. | Enabled |
visitorName | This option is used to configure the visibility of the visitor's name for all outgoing messages. | Disabled |
screenshot | Used to enable/disable the ability to take screenshots from the add attachments menu. | Enabled |
rating | Enable/disable taking photos and videos from the add attachments menu on the chat. | Enabled |
feedback | Enable/disable the option to give feedback after a chat has ended. | Enabled |
emailTranscript | Enable/disable the option to request an email transcript for a chat. | Enabled |
fileshare | Used to enable/disable the option to share files in the chat window. | Enabled |
end | Controls the visibility of the end action option in the chat window.
| Enabled |
endWhenInQueue | Controls the visibility of the end action option in the chat window when the user is in the queue. | Enabled |
endWhenBotConnected | Controls the visibility of the end action option in the chat window when the bot is connected.
| Enabled |
endWhenOperatorConnected | Controls the visibility of the end action option in the chat window when a human operator is connected. | Enabled |
reopenChat | Used to show/hide the reopen chat button in the chat window. | Enabled |
queuePosition | Controls the visibility of the queue position in the chat window. | Enabled |