# Utility Functions

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

# enableLogging

to enable develop logging

[AIHelpSupportSDK enableLogging:YES];

# getSDKVersion

to get current SDK version

NSString* sdkVersion = [AIHelpSupportSDK getSDKVersion];

# isAIHelpShowing

to check whether AIHelp interface is showing now

bool isShowing = [AIHelpSupportSDK 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) {
  [AIHelpSupportSDK additionalSupportFor:AIHelpCN];
}
[AIHelpSupportSDK initWithApiKey:@"THIS IS YOUR APP KEY"
                  domainName:@"THIS IS YOUR APP DOMAIN"
                  appId:@"THIS IS YOUR APP ID"
                  language:@"THIS IS YOUR DEFAULT LANGUAGE(OPTIONAL)"];
Last Updated: 7/7/2024, 10:13:59 AM