How to Enable or Disable Auto Time Zone on the Terminal: Difference between revisions
(Created page with "The system provides the AIDL interface to Enable/Disable autotimezone in settings menu. When connect the service, the package name is '''com.wizarpos.wizarviewagentassistant''...") |
No edit summary |
||
Line 18: | Line 18: | ||
=== <big>isEnableAutoTimezone</big>=== | === <big>isEnableAutoTimezone</big>=== | ||
<syntaxhighlight lang="java">boolean isEnableAutoTimezone();</syntaxhighlight> | <syntaxhighlight lang="java">boolean isEnableAutoTimezone();</syntaxhighlight> | ||
Get status for enable/disable auto timezone | Get status for enable/disable auto timezone. | ||
{|class="wizarpostable" | {|class="wizarpostable" | ||
Line 44: | Line 44: | ||
=== <big>isEnableAutoTimezoneGUI</big>=== | === <big>isEnableAutoTimezoneGUI</big>=== | ||
<syntaxhighlight lang="java">boolean isEnableAutoTimezoneGUI();</syntaxhighlight> | <syntaxhighlight lang="java">boolean isEnableAutoTimezoneGUI();</syntaxhighlight> | ||
Get status for enable/disable auto timezone | Get status for enable/disable auto timezone GUI. | ||
{|class="wizarpostable" | {|class="wizarpostable" |
Revision as of 05:41, 20 June 2022
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. |