From 56810193a86e6be4bee7f22813f9f4aef680522b Mon Sep 17 00:00:00 2001 From: wangbowen36 Date: Wed, 2 Apr 2025 17:41:51 +0800 Subject: [PATCH] Interface export napi_onLoad 5.1.0 Issue: https://gitee.com/openharmony/interface_sdk_c/issues/IC06MI Signed-off-by: wangbowen36 --- arkui/napi/native_api.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arkui/napi/native_api.h b/arkui/napi/native_api.h index c1dd962f8..788a6df98 100644 --- a/arkui/napi/native_api.h +++ b/arkui/napi/native_api.h @@ -1639,6 +1639,13 @@ NAPI_EXTERN napi_status napi_define_class(napi_env env, size_t property_count, const napi_property_descriptor* properties, napi_value* result); + +/** + * @brief To load native libraries and this interface is defined in native libraries. + * + * @since 17 + */ +NAPI_EXTERN void napi_onLoad(); #ifdef __cplusplus } #endif -- Gitee