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

From wizarPOS
No edit summary
Line 5: Line 5:
== API Functions ==
== API Functions ==
=== <big>Enable/Disable Automatic Time</big> ===
=== <big>Enable/Disable Automatic Time</big> ===
* ''''void enableAutoTime(boolean enable)'''';
  <syntaxhighlight lang="java">void enableAutoTime(boolean enable);</syntaxhighlight>
* Toggles the automatic time feature on or off based on the ''''enable'''' boolean value.
* Toggles the automatic time feature on or off based on the ''''enable'''' boolean value.
{|class="wizarpostable"
{|class="wizarpostable"
Line 18: Line 18:
|}
|}
=== <big>Check Automatic Time Status</big> ===
=== <big>Check Automatic Time Status</big> ===
* ''''boolean isEnableAutoTime()'''';
  <syntaxhighlight lang="java">boolean isEnableAutoTime();</syntaxhighlight>
* Returns the current status (enabled/disabled) of the automatic time feature.
* Returns the current status (enabled/disabled) of the automatic time feature.
{|class="wizarpostable"
{|class="wizarpostable"
Line 27: Line 27:
|}
|}
=== <big>Enable/Disable Automatic Time in GUI</big> ===
=== <big>Enable/Disable Automatic Time in GUI</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 or disable the display of the automatic time feature in the GUI based on the ''''enable'''' boolean value.
{|class="wizarpostable"
{|class="wizarpostable"
Line 40: Line 40:
|}
|}
=== <big>Check Automatic Time GUI Status</big> ===
=== <big>Check Automatic Time GUI Status</big> ===
* ''''boolean isEnableAutoTimeGUI()'''';
  <syntaxhighlight lang="java">boolean isEnableAutoTimeGUI();</syntaxhighlight>
* Retrieves the status (enabled/disabled) of the automatic time feature in the GUI.
* Retrieves the status (enabled/disabled) of the automatic time feature in the GUI.
{|class="wizarpostable"
{|class="wizarpostable"

Revision as of 15:24, 4 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.