Class: $.DeviceView

Inherits:
WatchUi.View show all

Overview

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _dataModel as $.DeviceDataModel

Instance Method Details

drawIndicator(dc as Graphics.Dc, bitmap as Lang.ResourceId, value as Lang.Numeric or Null, format as Lang.String, units as Lang.String, cell as Lang.Number) as Void

Draw the indicator with the given bitmap and text

Parameters:

  • dc —

    Device context

  • bitmap —

    Identifier for a bitmap

  • value —

    The value

  • format —

    Formatting string for the value

  • units —

    The units for the value

  • cell —

    Which cell to place the indicator in

getSetting(id as Keys.Key) as Lang.Boolean

Get a setting from Application Storage

Parameters:

  • id —

    The setting to get, defaults to true if not found

initialize(dataModel as $.DeviceDataModel)

Constructor

Parameters:

  • dataModel —

    The data to show

onUpdate(dc as Graphics.Dc) as Void

Update the view

Parameters:

  • dc —

    Device Context


Generated Jun 9, 2026, 8:45:51 AM