setVisibility()

Note: This API is supported from version 10.0.0.

The setVisibility() API manages the visibility of various call components, such as OperatorImage, OperatorName, PreChatForm, and others.

Parameters:

  • component (CallComponent): The specific UI component to show or hide (values: .operatorName, .operatorImage, .preChatForm, and .queuePosition).
  • visible (boolean): Set to "true" to make the component visible, or "false" to hide it.

Example

Copied// To hide the operator's name
ZohoSalesIQCalls.setVisibility(.operatorName, visible: false)