.setTabOrder()

This API allows you to change the order of the tabs in the SalesIQ SDK inside the mobile app.

Note:  By default, the first tab will be conversation and followed by the Knowledge Base. The constant for the faq has been deprecated in version 4.0.0. Instead, use the knowledgeBase constant.

Syntax

CopiedZohoSalesIQ.setTabOrder(List<SIQTab> tabOrder);

Example

Copiedimport 'package:salesiq_mobilisten/tab.dart';
...
ZohoSalesIQ.setTabOrder([SIQTab.conversations, SIQTab.knowledgeBase]);

From the above sample snippet, the Knowledge Base will be the first tab, followed by the Conversations tab.

CopiedZohoSalesIQ.knowledgeBase.setVisibility(ResourceType.articles, true/false);
ZohoSalesIQ.setConversationVisibility(true/false);

The above code allows you to set the visibility of the tabs in the SalesIQ chat window. If any of the tab's visibility is set as 'false', that tab will be hidden even when mentioned in the setTabOrder API. If the tab's visibility is set as 'true,' then the tab will be shown at the last, even when not mentioned in the setTabOrder API.