How to Enable or Disable Automatic Time Setting on the Terminal: Difference between revisions

From wizarPOS
(Created page with "The system provides the AIDL interface to Enable/Disable autotime in settings menu. When connect the service, the package name is '''com.wizarpos.wizarviewagentassistant''', a...")
 
No edit summary
Line 1: Line 1:
The system provides the AIDL interface to Enable/Disable autotime in settings menu. 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.
== Interface and Class Information ==
== API Overview ==
* Package Name: ''''com.wizarpos.wizarviewagentassistant''''
=== <big>enableAutoTime</big>===
* Class Name: ''''com.wizarpos.wizarviewagentassistant.SystemExtApiService''''
  <syntaxhighlight lang="java">void enableAutoTime(boolean enable);</syntaxhighlight>
* Ensure the ''''wizarviewagentassistant'''' package is imported when using this interface.
Enable/Disable auto time status.
== API Functions ==
 
=== <big>Enable/Disable Automatic Time</big> ===
* ''''void enableAutoTime(boolean enable)'''';
* Toggles the automatic time feature on or off based on the ''''enable'''' boolean value.
{|class="wizarpostable"
{|class="wizarpostable"
|-
|-
Line 15: Line 17:
|   
|   
|}
|}
 
=== <big>Check Automatic Time Status</big> ===
=== <big>isEnableAutoTime</big>===
* ''''boolean isEnableAutoTime()'''';
  <syntaxhighlight lang="java">boolean isEnableAutoTime();</syntaxhighlight>
* Returns the current status (enabled/disabled) of the automatic time feature.
Get status for enable/disable auto time.
 
{|class="wizarpostable"
{|class="wizarpostable"
|-
|-
Line 26: Line 26:
|  boolean || whether the auto time is enabled, true is enable, false is disable.
|  boolean || whether the auto time is enabled, true is enable, false is disable.
|}
|}
 
=== <big>Enable/Disable Automatic Time in GUI</big> ===
=== <big>enableAutoTimeGUI</big>===
* ''''void enableAutoTimeGUI(boolean enable)'''';
  <syntaxhighlight lang="java">void enableAutoTimeGUI(boolean enable);</syntaxhighlight>
* Enable or disable the display of the automatic time feature in the GUI based on the ''''enable'''' boolean value.
Enable/Disable auto time GUI display.
 
{|class="wizarpostable"
{|class="wizarpostable"
|-
|-
Line 41: Line 39:
|   
|   
|}
|}
 
=== <big>Check Automatic Time GUI Status</big> ===
=== <big>isEnableAutoTimeGUI</big>===
* ''''boolean isEnableAutoTimeGUI()'''';
  <syntaxhighlight lang="java">boolean isEnableAutoTimeGUI();</syntaxhighlight>
* Retrieves the status (enabled/disabled) of the automatic time feature in the GUI.
Get status for enable/disable auto time GUI.
 
{|class="wizarpostable"
{|class="wizarpostable"
|-
|-
Line 52: Line 48:
|  boolean || whether the auto time GUI display is enabled, true is enable, false is disable.
|  boolean || whether the auto time GUI display is enabled, true is enable, false is disable.
|}
|}
 
== Resource Downloads ==
 
* Download the necessary [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl AIDL file] and the [http://ftp.wizarpos.com/advanceSDK/apitest.zip demo] for guidance on implementation.
== Download ==
Please download the [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl AIDL file] and [http://ftp.wizarpos.com/advanceSDK/apitest.zip demo].

Revision as of 19:14, 2 January 2024

Interface and Class Information

  • Package Name: 'com.wizarpos.wizarviewagentassistant'
  • Class Name: 'com.wizarpos.wizarviewagentassistant.SystemExtApiService'
  • Ensure the 'wizarviewagentassistant' package is imported when using this interface.

API Functions

Enable/Disable Automatic Time

  • 'void enableAutoTime(boolean enable)';
  • Toggles the automatic time feature on or off based on the 'enable' boolean value.
Parameters
enable boolean: true/false.

Check Automatic Time Status

  • 'boolean isEnableAutoTime()';
  • Returns the current status (enabled/disabled) of the automatic time feature.
Returns
boolean whether the auto time is enabled, true is enable, false is disable.

Enable/Disable Automatic Time in GUI

  • 'void enableAutoTimeGUI(boolean enable)';
  • Enable or disable the display of the automatic time feature in the GUI based on the 'enable' boolean value.
Parameters
enable boolean: true/false.

Check Automatic Time GUI Status

  • 'boolean isEnableAutoTimeGUI()';
  • Retrieves the status (enabled/disabled) of the automatic time feature in the GUI.
Returns
boolean whether the auto time GUI display is enabled, true is enable, false is disable.

Resource Downloads

  • Download the necessary AIDL file and the demo for guidance on implementation.