hmSetting.getScreenType()
Get the current screen Screen information.
Type
() => screenType
Parameters
screenType: number
Value | Description |
---|---|
hmSetting.screen_type.APP | Within the js application |
hmSetting.screen_type.WATCHFACE | In the js table main screen |
hmSetting.screen_type.SETTINGS | In the js application configuration or Watchface edit page |
hmSetting.screen_type.AOD | In the hibernation screen |
Code examples
const screenType = hmSetting.getScreenType()