Enable/Disable Automatic Time

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

for the auto time setting, a boolean value is used: true enables auto time, while false disables it.

Check Automatic Time Status

boolean isEnableAutoTime();

Returns the current status (enabled/disabled) of the automatic time feature.

Returns

boolean

a boolean representation of the result.

true if enable,

false if 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

for the auto time GUI setting, a boolean value is used: true enables auto time GUI, while false disables it.

Check Automatic Time GUI Status

boolean isEnableAutoTimeGUI();

Retrieves the status (enabled/disabled) of the automatic time feature in the GUI.

Returns

boolean

a boolean representation of the result.

true if enable,

false if disable.

Resource Download

  • Refer to the cloudpos apidemo - demo.

Last updated