setVisibility()

Note: This API is supported from version 8.1.0-beta01.

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 (e.g., OperatorImage, OperatorName, PreChatForm).
  • visible (boolean): Set to "true" to make the component visible, or "false" to hide it.

Syntax

Copiedvoid setVisibility(CallComponent component, boolean visible);

Example

CopiedZohoSalesIQCalls.setVisibility(ZohoSalesIQCalls.CallComponent.PreChatForm, false);
CopiedZohoSalesIQCalls.setVisibility(ZohoSalesIQCalls.CallComponent.PreChatForm, false)