From 641a663e28173fb848b005e6ce9c8aacfba5d597 Mon Sep 17 00:00:00 2001 From: "DESKTOP-H8KLN8I\\lisitao" Date: Wed, 26 Jun 2024 12:02:24 +0800 Subject: [PATCH] [NDK] fix anmate api Signed-off-by:lisitaolisitao3@huawei.com Signed-off-by: DESKTOP-H8KLN8I\lisitao --- arkui/ace_engine/native/native_type.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index b5e242020..a69380485 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. * -- Gitee