Setting the Language
Function
This API is used to set the language. The default language is Chinese.
Function Prototype
setLanguage(languageInfo: LanguageInfo, onSetLanguageResult?: (ret: SDKERR, reason: string) => void): voidsetLanguage(languageInfo: LanguageInfo, onSetLanguageResult?: (ret: SDKERR, reason: string) => void): void
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
languageInfo | Yes | LanguageInfo | Language type information. |
onSetLanguageResult | Yes | (ret: SDKERR, reason: string) => void | Callback of setting the language. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
type | Yes | Language | Language type. |
languageCode | No | string | Code of the custom language. |
Enumeration Name | Enumerated Value | Description |
---|---|---|
HWM_LANGUAGE_ZH_CN | 0 | Chinese. |
HWM_LANGUAGE_EN_GB | 1 | English. |
HWM_LANGUAGE_CUSTOMIZED | 2 | Custom language. |
Return Values
void
Callback Method Parameters
(ret: SDKERR, reason: string) => void
Parameter | Type | Description |
---|---|---|
ret | For details about SDKERR, see Error Code Reference. | Error code. |
reason | string | Error description. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot