Skip to main content

Update Language (UpdateLanguage)

AndroidiOSWindows
If you are using Unreal Engine, see Unreal Engine SDK's UpdateLanguage.

Update language. This interface can only be called after receiving the asynchronous callback from InitCustomer.

Function Definition

public static void UpdateLanguage(string lan);

Input Parameters

NameTypeExplanation
lanFStringSDK language. The language type uses the RFC 4646 standard, e.g., en.See Language Type Definition for details.

Callback processing

The callback interface is CustomerResultObserver.
The callback data structure is CustomerResult.

The callback ID is INTL_CUSTOMER_UPDATE_LANGUAGE.

Code example

var lan = "zh-Hans";
INTLAPI.UpdateLanguage(lan);