Class: $.AnimationWatchFaceView
- Inherits:
-
WatchUi.WatchFace
-
WatchUi.WatchFace
-
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
- _backgroundAnimationLayer as WatchUi.AnimationLayer
- _drawLayer as WatchUi.Layer
- _drawLayerArea as Lang.Array<Lang.Number>
- _foregroundAnimationLayer as WatchUi.AnimationLayer
- _majorTextOffsetX as Lang.Number
- _majorTextOffsetY as Lang.Number
- _minorTextOffsetX as Lang.Number
- _minorTextOffsetY as Lang.Number
- _partialUpdateClip as Lang.Array<Lang.Number>
- _playCount as Lang.Number
Instance Method Summary collapse
-
getPlayCount() as Lang.Number
Get 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.
-
onLayout(dc as Graphics.Dc) as Void
Set the layout and layers for the view.
-
onPartialUpdate(dc as Graphics.Dc) as Void
Handle the partial update event.
-
onShow() as Void
Called when this View is brought to the foreground.
-
onUpdate(dc as Graphics.Dc) as Void
Update the view.
-
play() as Void
Play the animation.
-
updateWatchOverlay(isFullUpdate as Lang.Boolean) as Void
Update the clock.
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
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
onPartialUpdate(dc as Graphics.Dc) as Void
Handle the partial update event
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
play() as Void
Play the animation
updateWatchOverlay(isFullUpdate as Lang.Boolean) as Void
Update the clock