An animation controller controls the playback of animations on the watch face.
<AnimationController play="TAP | ON_VISIBLE | ON_NEXT_SECOND | ON_NEXT_MINUTE | ON_NEXT_HOUR" delayPlay="float" delayRepeat="float repeat="boolean" loopCount="integer" resumePlayback="boolean" beforePlaying="string" afterPlaying="string" />
AnimationController element must contain the following attributes:
An event trigger type which determines when the animation plays. Possible values include the following:
TAP: The animation plays when the user taps on the element.
ON_VISIBLE: The animation plays when the element next becomes visible.
ON_NEXT_SECOND: The animation plays when the next second begins.
ON_NEXT_MINUTE: The animation plays when the next minute begins.
ON_NEXT_HOUR: The animation plays when the next hour begins.
AnimatedImage element can optionally contain the following attributes:
- A delay in seconds before the animation plays. Defaults to 0.
- A delay in seconds before an animation repeats. Defaults to 0.
- Whether to repeat the animation when it finishes, playing it indefinitely.
- How many times to repeat an animation before it stops. If
repeatis set to
TRUE, it takes precedence and this value is ignored. Defaults to 1.
- Animations pause when the watch face is not visible. If
TRUE, the animation continues from the same frame that was shown when the watch face previously became not visible. If
autoResumeis set to
FALSE, the animation restarts from the beginning when the watch face becomes visible again. Defaults to
Define the state of the animation element before it can play, or after it has finished. These attributes can be set to the following values:
DO_NOTHINGcauses no change to the rendered state of the element.
FIRST_FRAMEfixes the rendering of the element to the first frame of the animation.
THUMBNAILfixes the rendering of the element to the thumbnail resource provided by the animated resource.
HIDEhides the animation.
Both attributes default to