How to Set Language Programmatically Using API: Difference between revisions

From wizarPOS
(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....")
 
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/set-language-api}}")
Tag: Replaced
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
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.
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/set-language-api}}
 
Version of wizarviewagentassistant should equal or larger than 2.10.60.
== API Overview ==
=== <big>setLanguage</big>===
  <syntaxhighlight lang="java">boolean setLanguage(String language, String country, String variant);</syntaxhighlight>
Set language.
 
{|class="wizarpostable"
|-
! scope="row" colspan="2" | 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.
|}
{|
|-
|}
{|class="wizarpostable"
|-
!  scope="row" colspan="2" | Returns
|-
|  boolean || true:set success ; false: set failed;
|}
 
== Download ==
=== AIDL===
Please download the [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl AIDL]
=== Demo ===
Please download the [http://ftp.wizarpos.com/advanceSDK/example_enableethernet_mtp_setlanguage.7z demo]

Latest revision as of 08:59, 7 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/set-language-api

We're making a move! Our site's content is migrating to a new URL, to provide you with an enhanced browsing experience. Please update your bookmarks accordingly. Thank you for your continuous support!