Skip to main content
Version: v1.0

hmSetting.getScreenType()

Get the current screen Screen information.

Type​

() => screenType

Parameters​

screenType: number​

ValueDescription
hmSetting.screen_type.APPWithin the js application
hmSetting.screen_type.WATCHFACEIn the js table main screen
hmSetting.screen_type.SETTINGSIn the js application configuration or Watchface edit page
hmSetting.screen_type.AODIn the hibernation screen

Code examples​

const screenType = hmSetting.getScreenType()