From b9571a1f337c1e439ebff6b5564bb1802eb58497 Mon Sep 17 00:00:00 2001 From: echoorchid Date: Fri, 24 May 2024 16:13:51 +0800 Subject: [PATCH] fixed 74ca9c9 from https://gitee.com/echoorchid/interface_sdk_c/pulls/756 update return desc Signed-off-by: echoorchid --- web/webview/interfaces/native/arkweb_interface.h | 3 ++- web/webview/interfaces/native/native_interface_arkweb.h | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/web/webview/interfaces/native/arkweb_interface.h b/web/webview/interfaces/native/arkweb_interface.h index 90f3b80e5..872e30d52 100644 --- a/web/webview/interfaces/native/arkweb_interface.h +++ b/web/webview/interfaces/native/arkweb_interface.h @@ -63,7 +63,8 @@ typedef enum { /* * @brief Obtains the native API set of a specified type. * @param type Indicates the type of the native API set provided by ArkWeb. - * @return Returns the pointer to the native API abstract object that carries the size. + * @return Return the pointer to the native API abstract object that carries the size. + * If the type is incorrect, a null pointer is returned. * * @syscap SystemCapability.Web.Webview.Core * @since 12 diff --git a/web/webview/interfaces/native/native_interface_arkweb.h b/web/webview/interfaces/native/native_interface_arkweb.h index 149128c99..e994c46bb 100644 --- a/web/webview/interfaces/native/native_interface_arkweb.h +++ b/web/webview/interfaces/native/native_interface_arkweb.h @@ -119,7 +119,8 @@ void OH_NativeArkWeb_SetJavaScriptProxyValidCallback(const char* webTag, NativeA * @brief Get the valid callback. * * @param webTag The name of the web component. - * @return return the valid callback function registered. + * @return Return the valid callback function registered. If the valid callback function + * specified by the parameter webTag is not set, a null pointer is returned. * * @syscap SystemCapability.Web.Webview.Core * @since 11 @@ -141,7 +142,9 @@ void OH_NativeArkWeb_SetDestroyCallback(const char* webTag, NativeArkWeb_OnDestr * @brief Get the destroy callback. * * @param webTag The name of the web component. - * @return return the destroy callback function registered. + * @return Return the destroy callback function registered. If the destroy callback + * function specified by the parameter webTag is not set, + * a null pointer is returned. * * @syscap SystemCapability.Web.Webview.Core * @since 11 -- Gitee