Question: How to set a sports watch to keep the screen on continuously?
Short Answer:
onShow() {
let that = this;
// Set the screen to turn on every three minutes.
that.setBrightnessKeepScreenOn();
timer = setInterval(function () {
console.log("Trigger the screen-on operation every 3 minutes.")
that.setBrightnessKeepScreenOn();
},3 * 60 * 1000);
},
setBrightnessKeepScreenOn() {
brightness.setKeepScreenOn({
keepScreenOn: true
});
},
Top comments (0)