How to Set Display Sleep Mode on the Terminal: Difference between revisions

From wizarPOS
(Created page with "The system provides the AIDL interface to set sleep of display in settings menu. When connect the service, the package name is '''com.wizarpos.wizarviewagentassistant''', and...")
 
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/set-display-sleep}}")
Tag: Replaced
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The system provides the AIDL interface to set sleep of display 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.
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/set-display-sleep}}
== API Overview ==
=== <big>setScreenOffTimeout</big>===
  <syntaxhighlight lang="java">boolean setScreenOffTimeout(int milliseconds);</syntaxhighlight>
Set the sleep time.
 
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| milliseconds|| '''int:''' milliseconds the time you want to set, can be one of following:
*        15000 - 15s
*        30000 - 30s
*        60000 - 1 minute
*        120000 - 2 minutes
*        300000 - 5 minutes
*        600000 - 10 minutes
*        1800000 - 30 minutes
*        2147483647(Integer.MAX_VALUE) - never.
|}
 
{|class="wizarpostable"
|-
!  scope="row" colspan="2" | Returns
|-
|  boolean || whether the new milliseconds has been set.
|}
 
== Download ==
Please download the [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl AIDL file].

Latest revision as of 08:57, 7 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/settings-menu/set-display-sleep

We're making a move! Our site's content is migrating to a new URL, to provide you with an enhanced browsing experience. Please update your bookmarks accordingly. Thank you for your continuous support!