Enumerates the states after an animation ends.
Model restriction: This API can be used only in the stage model.
Atomic service API: This API can be used in atomic services since version 4.1.0(11).
System capability: SystemCapability.Map.Core
Since: 4.1.0(11)
| Name | Value | Description |
|---|---|---|
| FORWARDS | 0 | The last frame is displayed after an animation ends. |
| BACKWARDS | 1 | The first frame is displayed after an animation ends. |
Animation replay mode.
Model restriction: This API can be used only in the stage model.
Atomic service API: This API can be used in atomic services since version 4.1.0(11).
System capability: SystemCapability.Map.Core
Since: 4.1.0(11)
| Name | Value | Description |
|---|---|---|
| RESTART | 0 | The animation is replayed from the start after it finishes. This mode is applicable to scenarios where the animation needs to be played cyclically. |
| REVERSE | 1 | The animation is replayed in reverse from the end after it finishes. This mode is applicable to scenarios requiring reverse animation playback. |