Class: $.AnimationWatchFaceView

Inherits:
WatchUi.WatchFace show all

Overview

Displays the animated watch face

Constant Summary

Constant Variables

Type Name Value Since Description
Type GAP 10
Type MAJOR_FONT Graphics.FONT_NUMBER_MEDIUM
Type MINOR_FONT Graphics.FONT_NUMBER_MILD
Type RAND_BASE 0x7FFFFFFF

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _backgroundAnimationLayer as WatchUi.AnimationLayer

var _drawLayer as WatchUi.Layer

var _drawLayerArea as Lang.Array<Lang.Number>

var _foregroundAnimationLayer as WatchUi.AnimationLayer

var _majorTextOffsetX as Lang.Number

var _majorTextOffsetY as Lang.Number

var _minorTextOffsetX as Lang.Number

var _minorTextOffsetY as Lang.Number

var _partialUpdateClip as Lang.Array<Lang.Number>

var _playCount as Lang.Number

Instance Method Details

getPlayCount() as Lang.Number

Get the play count

Returns:

  • The play count

initialize()

Constructor

onEnterSleep() as Void

During sleep mode, stop the animation

onExitSleep() as Void

When not in sleep mode, play the animation

onHide() as Void

Called when this View is removed from the screen. Save the state of your app here.

onLayout(dc as Graphics.Dc) as Void

Set the layout and layers for the view

Parameters:

  • dc —

    Device context

onPartialUpdate(dc as Graphics.Dc) as Void

Handle the partial update event

Parameters:

  • dc —

    Device Context

onShow() as Void

Called when this View is brought to the foreground. Restore the state of this View and prepare it to be shown. This includes loading resources into memory.

onUpdate(dc as Graphics.Dc) as Void

Update the view

Parameters:

  • dc —

    Device Context

play() as Void

Play the animation

updateWatchOverlay(isFullUpdate as Lang.Boolean) as Void

Update the clock

Parameters:

  • isFullUpdate —

    True if updating everything, false if partial update


Generated Oct 20, 2026, 8:20:26 AM