设备应用 APIhmApp 设备模块setScreenKeep版本:v1.0On this pagehmApp.setScreenKeep(option)默认情况下,在小程序某个页面中触发系统息屏,10s 后系统会退出该小程序,再次唤醒手表时进入表盘页面。 当设置了 hmApp.setScreenKeep(true),在小程序某个页面中触发系统息屏,10s 后系统会退出该小程序,再次唤醒手表后会重新打开该小程序,并进入到对应页面。 类型 (option: boolean) => void 参数 option 说明必填类型默认值息屏 10s 后是否回到小程序,true 为是是boolean- 代码示例 hmApp.setScreenKeep(true)