Class: Toybox.System.DeviceSettings
- Inherits:
-
Toybox.Lang.Object
Overview
Represents various settings available on a device.
See Also:
Instance Member Summary collapse
-
activityTrackingOn as Lang.Boolean
The activity tracking setting mode.
-
alarmCount as Lang.Number
The number of alarms set on the device.
-
connectionAvailable as Lang.Boolean
Indicates if any communication channel is connected and available for use.
-
connectionInfo as Lang.Dictionary<Lang.Symbol, System.ConnectionInfo>
The state of connections available to the device.
-
distanceUnits as System.UnitsSystem
The distance unit setting mode.
-
doNotDisturb as Lang.Boolean
The Do Not Disturb setting mode.
-
elevationUnits as System.UnitsSystem
The elevation unit setting mode.
-
firmwareVersion as [ Lang.Number, Lang.Number ]
The current firmware version of the device.
-
firstDayOfWeek as Gregorian.DayOfWeek
The first day of the week.
-
fontScale as Lang.Float
Scale factor to be used for displayed text.
-
heightUnits as System.UnitsSystem
The height unit setting mode.
-
inputButtons as System.ButtonInputs
The physical buttons supported by the device.
-
is24Hour as Lang.Boolean
The clock mode mode.
-
isEnhancedReadabilityModeEnabled as Lang.Boolean
Indicates the device is currently using Enhanced Readability Mode.
-
isGlanceModeEnabled as Lang.Boolean
Indicates if widget glances are enabled on the device.
-
isNightModeEnabled as Lang.Boolean
Indicates the device is currently using night mode colors.
-
isTouchScreen as Lang.Boolean
The availability of a touch screen on the device.
-
monkeyVersion as [ Lang.Number, Lang.Number, Lang.Number ]
The Connect IQ version supported by the device.
-
notificationCount as Lang.Number
The number of active notifications.
-
paceUnits as System.UnitsSystem
The pace unit setting mode.
-
partNumber as Lang.String
The part number of the device.
-
phoneConnected as Lang.Boolean
The phone connection status mode.
-
requiresBurnInProtection as Lang.Boolean
This flag indicates whether the device screen requires burn-in protection.
-
screenHeight as Lang.Number
The height of the device screen in pixels.
-
screenShape as System.ScreenShape
The screen shape of the device.
-
screenWidth as Lang.Number
The width of the device screen in pixels.
-
systemLanguage as System.Language
The language being used by the system.
-
temperatureUnits as System.UnitsSystem
The temperature unit setting mode.
-
tonesOn as Lang.Boolean
The tone setting mode.
-
uniqueIdentifier as Lang.String or Null
A unique alphanumeric device identifier.
-
vibrateOn as Lang.Boolean
The vibration setting mode.
-
weightUnits as System.UnitsSystem
The weight unit setting mode.
Instance Attribute Details
var activityTrackingOn as Lang.Boolean
The activity tracking setting mode.
var alarmCount as Lang.Number
The number of alarms set on the device.
var connectionAvailable as Lang.Boolean
Indicates if any communication channel is connected and available for use.
var connectionInfo as Lang.Dictionary<Lang.Symbol, System.ConnectionInfo>
The state of connections available to the device.
var distanceUnits as System.UnitsSystem
The distance unit setting mode.
var doNotDisturb as Lang.Boolean
The Do Not Disturb setting mode.
Not all devices support Do Not Disturb, so it's a good idea to perform
a has
check when attempting to use this value.
var elevationUnits as System.UnitsSystem
The elevation unit setting mode.
var firmwareVersion as [ Lang.Number, Lang.Number ]
The current firmware version of the device.
var firstDayOfWeek as Gregorian.DayOfWeek
The first day of the week.
var fontScale as Lang.Float
Scale factor to be used for displayed text.
var heightUnits as System.UnitsSystem
The height unit setting mode.
var inputButtons as System.ButtonInputs
The physical buttons supported by the device.
This returns a bitwise binary of the enumerated values defined by the System.BUTTON_INPUT_* constants that match the available buttons on a particular device. For example, a vivoactive HR returns a value of 9, which indicates Select (1) and Menu (8) button support. A fenix 5, however, returns 11, indicating support for all available button types.
var is24Hour as Lang.Boolean
The clock mode mode.
var isEnhancedReadabilityModeEnabled as Lang.Boolean
Indicates the device is currently using Enhanced Readability Mode.
var isGlanceModeEnabled as Lang.Boolean
Indicates if widget glances are enabled on the device.
If glance mode is enabled, the system will pass up / down key events to a widget base page. Otherwise, the system will mask them out.
var isNightModeEnabled as Lang.Boolean
Indicates the device is currently using night mode colors
var isTouchScreen as Lang.Boolean
The availability of a touch screen on the device.
var monkeyVersion as [ Lang.Number, Lang.Number, Lang.Number ]
The Connect IQ version supported by the device.
var notificationCount as Lang.Number
The number of active notifications.
var paceUnits as System.UnitsSystem
The pace unit setting mode.
var partNumber as Lang.String
The part number of the device.
var phoneConnected as Lang.Boolean
The phone connection status mode.
var requiresBurnInProtection as Lang.Boolean
This flag indicates whether the device screen requires burn-in protection.
Some screens require special drawing behavior when rendering content in always-on mode. If a screen requires burn-in protection the following rules must be followed: A maximum of ten-percent of the total available screen pixels can be in use at one time. Individual pixels can be on for no more than three update cycles when updating at once-per-minute intervals. If either condition is violated all screen pixels will be turned off until the device goes into high-power mode.
var screenHeight as Lang.Number
The height of the device screen in pixels.
In some cases, this can be useful to determine the device type at runtime. However, to get the height of the screen area currently available to an app, use Graphics.Dc.getHeight().
var screenShape as System.ScreenShape
The screen shape of the device.
var screenWidth as Lang.Number
The width of the device screen in pixels.
In some cases, this can be useful to determine the device type at runtime. However, to get the width of the screen area currently available to an app, use Graphics.Dc.getWidth().
var systemLanguage as System.Language
The language being used by the system
var temperatureUnits as System.UnitsSystem
The temperature unit setting mode.
var tonesOn as Lang.Boolean
The tone setting mode.
var uniqueIdentifier as Lang.String or Null
A unique alphanumeric device identifier.
The value is unique for every app, but is stable on a device across uninstall and reinstall. Any use of this value for tracking user information must be in compliance with international privacy law.
var vibrateOn as Lang.Boolean
The vibration setting mode.
var weightUnits as System.UnitsSystem
The weight unit setting mode.