Control whether the device screen stays on while the Mini App is active. Only affects the current Mini App instance — screen behavior returns to normal when the user exits.Documentation Index
Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| keepScreenOn | Boolean | Yes | true keeps screen on, false restores default behavior |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Code Example
Related APIs
my.getScreenBrightness
Get current brightness
my.setScreenBrightness
Set brightness level