diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index b5e242020dd83713df97dd052e3a892ff40f3b60..a693804854fcaf3a4df4d5aa88a459b5e270a84b 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -1816,6 +1816,26 @@ typedef enum { ARKUI_SWIPER_INDICATOR_TYPE_DIGIT, } ArkUI_SwiperIndicatorType; +/** + * @brief Enumerates the animation playback modes. + * + * @since 12 + */ +typedef enum { + /** The animation plays in forward loop mode. */ + ARKUI_ANIMATION_DIRECTION_NORMAL = 0, + /** The animation plays in reverse loop mode. */ + ARKUI_ANIMATION_DIRECTION_ALTERNATE, + /** The animation plays in alternating loop mode. When the animation is played for an odd number of times, the + * playback is in forward direction. When the animation is played for an even number of times, the playback is in + * reverse direction. */ + ARKUI_ANIMATION_DIRECTION_REVERSE, + /** The animation plays in reverse alternating loop mode. When the animation is played for an odd number of times, + * the playback is in reverse direction. When the animation is played for an even number of times, the playback is + * in forward direction. */ + ARKUI_ANIMATION_DIRECTION_ALTERNATE_REVERSE, +} ArkUI_AnimationDirection; + /** * @brief Define the pattern of element arrangement in the main axis direction of the Swiper component. *