.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
preChatForm

Used to enable/disable the pre-chat form before starting a chat

enabled
voiceMessages

Used to enable/disable option to record and send voice messages in chat.​

disabled

attenderImageInChat

Used to enable/disable attender's profile image in chat window.enabled

attenderImageOnLauncher

Used to enable/disable the display of the attender's profile picture on the launcher(this option is taken into consideration only if there is 1 open chat).

disabled
visitorName

This option is used to configure the visibility of the visitor's name for all outgoing messages

disabled
fileSharing

Used to enable/disable access to send files from the Files application in chat

enabled
mediaCapture

Used to enable/disable taking photos and videos from the add attachments menu from chat

enabled
photoLibrary

Used to enable/disable the option to access the photo library to send images and videos in chat

enabled

screenshotOption

Used to enable/disable the ability to take screenshots from the add attachments menu

enabled
inAppNotifications

Used to enable/disable in-app notifications when a new message is recieved in chat.

enabled
emailTranscript

Used to enable/disable the option to request for an email transcript for a chat

enabled
rating

Used to enable/disable the option to rate a chat after it is ended

enabled
feedback

Used to enable/disable the option to give feedback after a chat is ended.

enabled

 

 

 

Syntax

CopiedZohoSalesIQ.Chat.setVisibility(component: ChatComponent, visible: Bool)