# 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();

# enableLogging()

to enable develop logging

AIHelpSupport.enableLogging(true);

# 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
  • Mainland China

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

if (USER_FROM_MAINLAND_CHINA) {
  AIHelpSupport.additionalSupportFor(PublishCountryOrRegion.CN);
}
AIHelpSupport.init(this, "appKey", "domain", "appId", "defaultLanguage(optional)");
Last Updated: 7/7/2024, 10:13:59 AM