bn.setKeepScreenOn
▸ 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
bn.setKeepScreenOn({ keepScreenOn: true })
Parameters
| Name | Type |
|---|---|
options | SetKeepScreenOnOption |
Returns
Promise<void>
Interface: SetKeepScreenOnOption
| Name | Type | Description |
|---|---|---|
| keepScreenOn | boolean | Keep the screen bright |