How to Enable or Disable Auto Time Zone on the Terminal

From wizarPOS
Revision as of 05:41, 20 June 2022 by Mahong (talk | contribs)

The system provides the AIDL interface to Enable/Disable autotimezone 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.

API Overview

enableAutoTimezone

void enableAutoTimezone(boolean enable);

Enable/Disable auto timezone status.

Parameters
enable boolean: true/false.

isEnableAutoTimezone

boolean isEnableAutoTimezone();

Get status for enable/disable auto timezone.

Returns
boolean whether the auto timezone is enabled, true is enable, false is disable.

enableAutoTimezoneGUI

void enableAutoTimezoneGUI(boolean enable);

Enable/Disable auto timezone GUI display.

Parameters
enable boolean: true/false.

isEnableAutoTimezoneGUI

boolean isEnableAutoTimezoneGUI();

Get status for enable/disable auto timezone GUI.

Returns
boolean whether the auto timezone GUI display is enabled, true is enable, false is disable.


Download

Please download the AIDL file and demo.