How to Set Display Sleep Mode on the Terminal: Difference between revisions
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
* 1800000 - 30 minutes | * 1800000 - 30 minutes | ||
* 2147483647(Integer.MAX_VALUE) - never. | * 2147483647(Integer.MAX_VALUE) - never. | ||
|- | |- | ||
! scope="row" colspan="2" | Returns | ! scope="row" colspan="2" | Returns |
Revision as of 20:04, 5 January 2024
Interface and Class Information
- Package Name: 'com.wizarpos.wizarviewagentassistant'
- Class Name: 'com.wizarpos.wizarviewagentassistant.SystemExtApiService'
- Import the 'wizarviewagentassistant' package when using this interface.
API Function
Set Screen Off Timeout
boolean setScreenOffTimeout(int milliseconds);
- Configure the display sleep time by specifying the timeout duration in milliseconds.
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. |
Returns | |
boolean | whether the new milliseconds has been set. |
Resource Download
- Download the necessary AIDL file for implementation.