Class: Toybox::WatchUi::GlanceView

Inherits:
View show all

Overview

The class that represents a glance view which can be used to display the widget preview content in a restricted drawing context (dc) among other widgets.

Glance view behaves mostly like a regular WatchUi.View, e.g. user can load layout and update view using View.onLayout() and View.onUpdate(), however, the dc object passed in those calls will be bounded by glance area rather than a full screen dc.

GlanceView doesn't support WatchUi.Layer or other View APIs that are associated with layering system, such as View.addLayer() View.removeLayer(), View.insertLayer(), View.clearLayers()

The widget that's running in the glance mode are prohibited from using page control functionality, as there is only one view allowed during said mode.

Raises:

Since:

  • 3.1.0

Instance Method Summary collapse

Methods inherited from View

addLayer, clearLayers, findDrawableById, getLayerIndex, getLayers, insertLayer, onHide, onLayout, onShow, onUpdate, removeLayer, setKeyToSelectableInteraction, setLayout

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initializeGlanceView

Returns a new instance of GlanceView

Since:

  • 3.1.0


16341
16342
# File 'Monkeybrains.rb', line 16341

def initialize()
end