Update Language (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
| 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);