How to Enable or Disable Automatic Time Setting on the Terminal

From wizarPOS

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.