Skip to main content

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

NameType
optionsSetKeepScreenOnOption

Returns

Promise<void>

Interface: SetKeepScreenOnOption#

NameTypeDescription
keepScreenOnbooleanKeep the screen bright