How to Set Language Programmatically Using API

From wizarPOS
Revision as of 09:54, 26 June 2023 by Mahong (talk | contribs) (Created page with "The system provides the AIDL interface to set language, When connect the service, the package name is '''com.wizarpos.wizarviewagentassistant''', and the class name is '''com....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The system provides the AIDL interface to set language, When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.SystemExtApiService. When the application uses the interface, it must import wizarviewagentassistant.

Version of wizarviewagentassistant should equal or larger than 2.10.60.

API Overview

setLanguage

boolean setLanguage(String language, String country, String variant);

Set language.

Parameters
language String : (Null is not allowed)An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length. See the Locale class description about valid language values.
country String : (Null is allowed)An ISO 3166 alpha-2 country code or a UN M.49 numeric-3 area code. See the Locale class description about valid country values.
variant String : (Null is allowed)Any arbitrary value used to indicate a variation of a Locale. See the Locale class description for the details.
Returns
boolean true:set success ; false: set failed;

Download

AIDL

Please download the AIDL

Demo

Please download the demo