Skip to content

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:

PropertyTypeRequiredDescription
keepScreenOnbooleanYesWhether to keep the screen always on
successfunctionNoCallback function for a successful API call
failfunctionNoCallback function for a failed API call
completefunctionNoCallback function for API call completion