Chat.setVisibility()

This API lets you toggle the function of various components in Mobilisten.

Note:
The settings for the components are taken into consideration only if their function is enabled in portal settings.

ChatComponentFunctionDefault Setting
prechatFormUsed to enable/disable the pre-chat form before starting a chat.enabled
operatorImageUsed to enable/disable attender's profile image in the chat window.enabled
visitorNameUsed to configure the visibility of the visitor's name for all outgoing messages.disabled
screenshotUsed to enable/disable the ability to take screenshots from the add attachments menu.enabled
ratingUsed to enable/disable the option to rate a chat after it is ended.enabled
feedbackUsed to enable/disable the option to give feedback after a chat is ended.enabled
emailTranscriptUsed to enable/disable the email transcript option after chat ends.enabled
fileShareUsed to enable/disable the option to share files in the chat window.enabled
endUsed to show/hide the end chat option always(This has the highest priority over the below configurations).enabled
endWhenBotConnectedUsed to show/hide the end chat option only for the bot connected chats.enabled
endWhenOperatorConnectedUsed to show/hide the end chat option only for the chats that are connected to the operator.enabled
endWhenInQueueUsed to show/hide the end chat option only when the chat is in queue.enabled
reopenChatUsed to show/hide the reopen chat button in the chat window.enabled
queuePositionUsed to show/hide the queue position of the chat in chat window and conversation history.enabled

 

 

 

Syntax:

CopiedZohoSalesIQ.Chat.setVisibility(ChatComponent component, boolean visibility)

Example:

CopiedZohoSalesIQ.Chat.setVisibility(ChatComponent.operatorImage, true)