diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index 1e0b4c4dfee2eca7b881132f18f4a8a34c91c6aa..dc3d30be4c1491c195b569a958e86367b7945d40 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 4d0d69e1ea932e22dbd2bafdf7c79adf70a51b7c..5cbcdce4fe3a2dc29ba2d8d8b50f0cefecea390e 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 e43a92fa2e6bb1503111cdb5091bfd59e2e200d6..06813a6f04f7fc9a49fd79d18988ee92fe9ba454 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. *