Set Display Sleep
Interface and Class Information
Package Name: 'com.wizarpos.wizarviewagentassistant'
Class Name: 'com.wizarpos.wizarviewagentassistant.SystemExtApiService'
Import the 'wizarviewagentassistant' package when using this interface.
Required Permissions
To use the API method, include the following permission in your application's manifest: 'android.permission.CLOUDPOS_SET_SCREEN_OFF_TIMEOUT'.
API Function
Set Screen Off Timeout
Configure the display sleep time by specifying the timeout duration in milliseconds.
Parameters
milliseconds
the milliseconds the time you want to set, can be one of following values:
Returns
boolean
a boolean representation of the result.
true if success. false if failure.
Resource Download
Last updated