> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
The **<ImageAnimator>** component enables images to be played frame by frame. The list of images to be played can be configured, and the duration of each image can be configured.
The **\<ImageAnimator>** component enables images to be played frame by frame. The list of images to be played can be configured, and the duration of each image can be configured.
## Required Permissions
## Required Permissions
...
@@ -15,7 +15,7 @@ None
...
@@ -15,7 +15,7 @@ None
## Child Components
## Child Components
None
Not supported
## APIs
## APIs
...
@@ -54,7 +54,7 @@ ImageAnimator()
...
@@ -54,7 +54,7 @@ ImageAnimator()
## Events
## Events
| Name | Description |
| Name | Description |
| -------- | -------- |
| -------- | -------- | -------- |
| onStart() => void | Triggered when the animation starts to play. |
| onStart() => void | Triggered when the animation starts to play. |
| onPause() => void | Triggered when the animation playback is paused. |
| onPause() => void | Triggered when the animation playback is paused. |
| onRepeat() => void | Triggered when the animation playback is repeated. |
| onRepeat() => void | Triggered when the animation playback is repeated. |
...
@@ -78,6 +78,7 @@ struct ImageAnimatorExample {
...
@@ -78,6 +78,7 @@ struct ImageAnimatorExample {
ImageAnimator()
ImageAnimator()
.images([
.images([
{
{
// The comment folder is at the same level as the pages folder.