Update Language (UpdateLanguage)
AndroidiOSPC
If you are using Unreal Engine, see UpdateLanguage in the Unreal Engine SDK.
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
| Name | Type | Explanation |
|---|---|---|
| lan | FString | SDK 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);