From db0af1f8aa041ea56860ffebf4ed5f96b9448ab7 Mon Sep 17 00:00:00 2001 From: kangshihui Date: Mon, 8 Sep 2025 14:17:37 +0800 Subject: [PATCH] =?UTF-8?q?CAPI=20Image=E7=BB=84=E4=BB=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=86=85=E5=AE=B9=E8=BD=AC=E5=9C=BA=E5=8A=A8=E6=95=88?= =?UTF-8?q?=20Signed-off-by:kangshihui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6a2d498fd9b6147851c72975c0c84b566cc24a72 --- arkui/ace_engine/native/libace.ndk.json | 4 ++++ arkui/ace_engine/native/native_node.h | 13 +++++++++++++ arkui/ace_engine/native/native_type.h | 16 ++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index 1e0b4c4dfee..dc3d30be4c1 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -4134,5 +4134,9 @@ { "first_introduced": "21", "name": "OH_ArkUI_ListItemSwipeAction_Collapse" + }, + { + "first_introduced": "21", + "name": "OH_ArkUI_ContentTransitionEffect_Create" } ] \ No newline at end of file diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 4d0d69e1ea9..5cbcdce4fe3 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -3006,6 +3006,19 @@ typedef enum { * @since 21 */ NODE_IMAGE_SUPPORT_SVG2 = 4021, + /** + * @brief Set the animation effect for the image content transformation. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .object: The parameter type is {@link ArkUI_ContentTransitionEffect}.\n + * + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .object: The parameter type is {@link ArkUI_ContentTransitionEffect}.\n + * + * @since 21 + */ + NODE_IMAGE_CONTENT_TRANSITION = 4022, /** * @brief Defines the color of the component when it is selected. * This attribute can be set, reset, and obtained as required through APIs. diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index e43a92fa2e6..06813a6f04f 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -4043,6 +4043,22 @@ const char* OH_ArkUI_BarrierOption_GetReferencedId( */ int32_t OH_ArkUI_BarrierOption_GetReferencedIdSize(ArkUI_BarrierOption* barrierStyle, int32_t index); +/** + * @brief Set the types and parameters related to content transition effects. + * + * @since 21 + */ +typedef struct ArkUI_ContentTransitionEffect ArkUI_ContentTransitionEffect; + +/** + * @brief creates content switching animation effects. + * + * @param type content transition type: 0-identity, 1-opacity. + * @return content transition effect. + * @since 21 + */ +ArkUI_ContentTransitionEffect* OH_ArkUI_ContentTransitionEffect_Create(int32_t type); + /** * @brief creates alignment rule information for subcomponents in relative containers. * -- Gitee