diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index d44314beaff4a3cb366e86f194a91ff2a2669043..a7c27f13b9d0c1241e7597d91c558172bc803c64 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -710,5 +710,9 @@ { "first_introduced": "12", "name": "OH_ArkUI_GetNodeContentFromNapiValue" + }, + { + "first_introduced": "12", + "name": "OH_NativeXComponent_GetNativeXComponent" } ] \ No newline at end of file diff --git a/arkui/ace_engine/native/native_interface_xcomponent.h b/arkui/ace_engine/native/native_interface_xcomponent.h index d988ff6ff04caec5947b70ca1907d720be50073a..c907822ec9b245f1156f6ee1d4cf65ba75beae21 100644 --- a/arkui/ace_engine/native/native_interface_xcomponent.h +++ b/arkui/ace_engine/native/native_interface_xcomponent.h @@ -731,6 +731,17 @@ int32_t OH_NativeXComponent_RegisterOnTouchInterceptCallback( int32_t OH_NativeXComponent_GetTouchEventSourceType( OH_NativeXComponent* component, int32_t pointId, OH_NativeXComponent_EventSourceType* sourceType); +/** + * @brief Obtains the pointer to an OH_NativeXComponent instance based on the specified component + * instance created by the native API. + * + * @param node Indicates the pointer to the component instance created by the native API. + * @return Returns the pointer to the OH_NativeXComponent instance. + * @since 12 + * @version 1.0 + */ +OH_NativeXComponent* OH_NativeXComponent_GetNativeXComponent(ArkUI_NodeHandle node); + #ifdef __cplusplus }; #endif