sud.setKeepScreenOn
JS
sud.setKeepScreenOn(Object object)Set whether to keep the screen always on
Takes effect only in the current runtime; the setting becomes invalid after leaving the runtime
Parameters
- Object object: Input parameters, see the properties in the table below
object properties:
| Property | Type | Required | Description |
|---|---|---|---|
| keepScreenOn | boolean | Yes | Whether to keep the screen always on |
| success | function | No | Callback function for a successful API call |
| fail | function | No | Callback function for a failed API call |
| complete | function | No | Callback function for API call completion |
