â–¸ setKeepScreenOn(options): Promise<void>
description Sets whether or not to always light. Only the current Mini Program is in effect
and the settings are disabled after leaving the Mini Program.
example
Code
Parameters
| Name | Type |
|---|---|
options | SetKeepScreenOnOption |
Returns
Promise<void>
Interface: SetKeepScreenOnOption
| Name | Type | Description |
|---|---|---|
| keepScreenOn | boolean | Keep the screen bright |
Was this page helpful?
Last modified on