The SequenceImages tag creates an animation from a sequence of images.
Syntax
<SequenceImages loopCount="integer" thumbnail="string"> <Image /> ... </SequenceImages>
Attributes
The SequenceImages element can contain the following optional attributes:
- loopCount
- How many times to repeat an animation before it stops. Defaults to 1.
- thumbnail
- A resource ID referring to a representative thumbnail for the animation. This
can be used to render in place of the SequenceImageswhere animation is not supported (for example, in previews in the watch face carousel).
- frameRate
- Allows developers to set the speed at which frames included in the - SequenceImagesshould be played. For example, if the- frameRateof- SequenceImageswith 30 images is set to- 15, it is animated to show 30 frames in 2 seconds. If the- frameRateis set to- 30, 30 frames are played in 1 second.
- Note also that this attribute determines the playback speed, but the device may skip frames if it doesn't support the requested framerate. For example, if a device with a framerate limit of 15 FPS shows a watch face where - frameRateis set to- 30in a- SequenceImageselement, that element shows every other frame to emulate the requested framerate.
Inner elements
The SequenceImages element can contain any number of Image
elements.
Recommended for you
- Note: link text is displayed when JavaScript is off
- Bluetooth permissions
- Resources in Compose
- Content parameters
