# Utility Functions

In order to facilitate your access and debugging, we provide some util API, you can choose according to the situation.

# close()

To close all AIHelp pages at one time

AIHelpSupport.close();

# getSDKVersion()

to get current SDK version

String sdkVersion = AIHelpSupport.getSDKVersion();

# isAIHelpShowing()

to check whether AIHelp interface is showing now

boolean isShowing = AIHelpSupport.isAIHelpShowing();

# additionalSupportFor()

To provide domain support for the following country or region:

  • India in
  • Mainland China cn

Be aware, this function should be called BEFORE init API:

if (USER_FROM_MAINLAND_CHINA) {
  AIHelpSupport.additionalSupportFor("cn");
}
let initConfig = {
  domain: "THIS IS YOUR APP DOMAIN",
  appId: "THIS IS YOUR APP ID",
  language: "THIS IS YOUR DEFAULT LANGUAGE(OPTIONAL)"
};
AIHelpSupport.initialize(initConfig);
Last Updated: 7/26/2024, 6:29:04 AM