




This ZDPortalSalesIQ.setChatVisibility(_ component: ZDPSalesIQComponents.ChatComponent, visible: Bool) API lets you toggle the function of various components in SalesIQ.

The components' settings are considered only if their function is enabled in the portal settings.
Parameters:
Chat component | Function description | Default setting |
preChatForm | Enable/disable the pre-chat from before initiating a chat. | Enabled |
attenderImageInChat | Enable/disable the attendee's profile image in the chat window. | Enabled |
attenderImageOnLauncher | Enable/disable the ability to display the attender's profile picture on the launcher. (this option is considered only if there is one open chat available) | Disabled |
visitorName | This option is used to configure the visibility of the visitor's name for all outgoing messages. | Disabled |
fileSharing | Enable/disable the access to send files from the files application in chat. | Enabled |
mediaCapture | Enable/disable taking photos and videos from the add attachments menu on the chat. | Enabled |
photoLibrary | Enable/disable the option to access the photo library to send images and videos in chat. | Enabled |
screenshotOption | Enable/disable the ability to take screenshots from the add attachments menu. | Enabled |
inAppNotifications | Enable/disable in-app notifications when a new message is received in chat. | Enabled |
emailTranscript | Enable/disable the option to request an email transcript for a chat. | Enabled |
rating | Enable/disable the option to rate a chat after it has ended. | Enabled |
feedback | Enable/disable the option to give feedback after a chat has ended. | Enabled |
reopen | Show or hide the chat reopen option on 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 |
queuePosition | Controls the visibility of the queue position in the chat window. | Enabled |