diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 57325d3d9edc6996ff5b74407931cf3972e34579..7de600559a32b98dd65567b1fa34067e2da92c2a 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -353,7 +353,7 @@ declare class FileSelectorParam { /** * Gets the title of this file selector. - * @return Return the title of this file selector. + * @returns Return the title of this file selector. * * @since 9 */ @@ -361,7 +361,7 @@ declare class FileSelectorParam { /** * Gets the FileSelectorMode of this file selector. - * @return Return the FileSelectorMode of this file selector. + * @returns Return the FileSelectorMode of this file selector. * * @since 9 */ @@ -369,7 +369,7 @@ declare class FileSelectorParam { /** * Gets an array of acceptable MMIE type. - * @return Return an array of acceptable MMIE type. + * @returns Return an array of acceptable MMIE type. * * @since 9 */ @@ -377,7 +377,7 @@ declare class FileSelectorParam { /** * Gets whether this file selector use a live media captured value. - * @return Return {@code true} if captured media; return {@code false} otherwise. + * @returns Return {@code true} if captured media; return {@code false} otherwise. * @since 9 */ isCapture(): boolean; @@ -621,7 +621,7 @@ declare class WebContextMenuParam { /** * Horizontal offset coordinates of the menu within the Web component. - * @return The context menu x coordinate. + * @returns The context menu x coordinate. * * @since 9 */ @@ -629,7 +629,7 @@ declare class WebContextMenuParam { /** * Vertical offset coordinates for the menu within the Web component. - * @return The context menu y coordinate. + * @returns The context menu y coordinate. * * @since 9 */ @@ -637,7 +637,7 @@ declare class WebContextMenuParam { /** * If the long-press location is the link returns the link's security-checked URL. - * @return If relate to a link return link url, else return null. + * @returns If relate to a link return link url, else return null. * * @since 9 */ @@ -645,7 +645,7 @@ declare class WebContextMenuParam { /** * If the long-press location is the link returns the link's original URL. - * @return If relate to a link return unfiltered link url, else return null. + * @returns If relate to a link return unfiltered link url, else return null. * * @since 9 */ @@ -653,7 +653,7 @@ declare class WebContextMenuParam { /** * Returns the SRC URL if the selected element has a SRC attribute. - * @return If this context menu is "src" attribute, return link url, else return null. + * @returns If this context menu is "src" attribute, return link url, else return null. * * @since 9 */ @@ -661,7 +661,7 @@ declare class WebContextMenuParam { /** * Long press menu location has image content. - * @return Return whether this context menu has image content. + * @returns Return whether this context menu has image content. * * @since 9 */ @@ -722,7 +722,7 @@ declare class ConsoleMessage { /** * Gets the message of a console message. - * @return Return the message of a console message. + * @returns Return the message of a console message. * * @since 8 */ @@ -730,7 +730,7 @@ declare class ConsoleMessage { /** * Gets the Web source file's path and name of a console message. - * @return Return the Web source file's path and name of a console message. + * @returns Return the Web source file's path and name of a console message. * * @since 8 */ @@ -738,7 +738,7 @@ declare class ConsoleMessage { /** * Gets the line number of a console message. - * @return Return the line number of a console message. + * @returns Return the line number of a console message. * * @since 8 */ @@ -746,7 +746,7 @@ declare class ConsoleMessage { /** * Gets the message level of a console message. - * @return Return the message level of a console message, which can be {@link MessageLevel}. + * @returns Return the message level of a console message, which can be {@link MessageLevel}. * * @since 8 */ @@ -771,7 +771,7 @@ declare class WebResourceRequest { /** * Gets request headers. - * @return Return the request headers + * @returns Return the request headers * * @since 8 */ @@ -779,7 +779,7 @@ declare class WebResourceRequest { /** * Gets the request URL. - * @return Return the request URL. + * @returns Return the request URL. * * @since 8 */ @@ -787,7 +787,7 @@ declare class WebResourceRequest { /** * Check whether the request is associated with gesture. - * @return Return {@code true} if the request is associated with gesture;return {@code false} otherwise. + * @returns Return {@code true} if the request is associated with gesture;return {@code false} otherwise. * * @since 8 */ @@ -795,7 +795,7 @@ declare class WebResourceRequest { /** * Check whether the request is for getting the main frame. - * @return Return {@code true} if the request is associated with gesture for getting the main frame; return {@code false} otherwise. + * @returns Return {@code true} if the request is associated with gesture for getting the main frame; return {@code false} otherwise. * * @since 8 */ @@ -803,7 +803,7 @@ declare class WebResourceRequest { /** * Check whether the request redirects. - * @return Return {@code true} if the request redirects; return {@code false} otherwise. + * @returns Return {@code true} if the request redirects; return {@code false} otherwise. * * @since 8 */ @@ -824,7 +824,7 @@ declare class WebResourceRequest { /** * Gets the response data. - * @return Return the response data. + * @returns Return the response data. * * @since 8 */ @@ -832,7 +832,7 @@ declare class WebResourceRequest { /** * Gets the response encoding. - * @return Return the response encoding. + * @returns Return the response encoding. * * @since 8 */ @@ -840,7 +840,7 @@ declare class WebResourceRequest { /** * Gets the response MIME type. - * @return Return the response MIME type. + * @returns Return the response MIME type. * * @since 8 */ @@ -848,7 +848,7 @@ declare class WebResourceRequest { /** * Gets the reason message. - * @return Return the reason message. + * @returns Return the reason message. * * @since 8 */ @@ -856,7 +856,7 @@ declare class WebResourceRequest { /** * Gets the response headers. - * @return Return the response headers. + * @returns Return the response headers. * * @since 8 */ @@ -864,7 +864,7 @@ declare class WebResourceRequest { /** * Gets the response code. - * @return Return the response code. + * @returns Return the response code. * * @since 8 */ @@ -950,7 +950,7 @@ declare class WebResourceError { /** * Gets the info of the Web resource error. - * @return Return the info of the Web resource error. + * @returns Return the info of the Web resource error. * * @since 8 */ @@ -958,7 +958,7 @@ declare class WebResourceError { /** * Gets the code of the Web resource error. - * @return Return the code of the Web resource error. + * @returns Return the code of the Web resource error. * * @since 8 */ @@ -1000,7 +1000,7 @@ declare class WebCookie { /** * Get whether cookies can be send or accepted. - * @return true if can send and accept cookies else false. + * @returns true if can send and accept cookies else false. * * @since 9 */ @@ -1008,7 +1008,7 @@ declare class WebCookie { /** * Get whether third party cookies can be send or accepted. - * @return true if can send and accept third party cookies else false. + * @returns true if can send and accept third party cookies else false. * * @since 9 */ @@ -1016,7 +1016,7 @@ declare class WebCookie { /** * Get whether file scheme cookies can be send or accepted. - * @return true if can send and accept else false. + * @returns true if can send and accept else false. * @since 9 */ isFileURICookieAllowed(): boolean; @@ -1077,7 +1077,7 @@ declare class WebCookie { * Gets all cookies for the given URL. * * @param url the URL for which the cookies are requested. - * @return the cookie value for the given URL. + * @returns the cookie value for the given URL. * * @since 9 */ @@ -1086,7 +1086,7 @@ declare class WebCookie { /** * Check whether exists any cookies. * - * @return true if exists cookies else false; + * @returns true if exists cookies else false; * @since 9 */ existCookie(): boolean; @@ -1389,7 +1389,7 @@ declare class WebCookie { /** * Gets the url of current Web page. - * @return the url of current Web page. + * @returns the url of current Web page. * @since 9 */ getUrl(): string; @@ -1836,7 +1836,7 @@ declare class WebAttribute extends CommonMethod { * Triggered when the resources loading is intercepted. * @param callback The triggered callback when the resources loading is intercepted. * - * @return If the response value is null, the Web will continue to load the resources. Otherwise, the response value will be used + * @returns If the response value is null, the Web will continue to load the resources. Otherwise, the response value will be used * @since 9 */ onInterceptRequest(callback: (event?: { request: WebResourceRequest}) => WebResourceResponse): WebAttribute; @@ -1854,7 +1854,7 @@ declare class WebAttribute extends CommonMethod { * Triggered when called to allow custom display of the context menu. * @param callback The triggered callback when called to allow custom display of the context menu. * - * @return If custom display return true.Otherwise, default display return false. + * @returns If custom display return true.Otherwise, default display return false. * @since 9 */ onContextMenuShow(callback: (event?: { param: WebContextMenuParam, result: WebContextMenuResult }) => boolean): WebAttribute; diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 0bdb35eb44fd679b883ae60d9aaba55bdfc5b7b0..164a1ef7521e7b275f01238449df211ec577a2fa 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -194,7 +194,7 @@ declare namespace webview { class WebDataBase { /** * Get whether instances holds any http authentication credentials. - * @return { boolean } true if instances saved any http authentication credentials otherwise false. + * @returns { boolean } true if instances saved any http authentication credentials otherwise false. * * @since 9 */ @@ -212,7 +212,7 @@ declare namespace webview { * @param { string } host - The host to which the credentials apply. * @param { string } realm - The realm to which the credentials apply. * @throws { BusinessError } 401 - Invalid input parameter. - * @return { Array } Return an array containing username and password. + * @returns { Array } Return an array containing username and password. * @since 9 */ static getHttpAuthCredentials(host: string, realm: string): Array; @@ -320,7 +320,7 @@ declare namespace webview { * geographic location permission status. * @throws { BusinessError } 401 - Invalid input parameter. * @throws { BusinessError } 17100011 - Invalid origin. - * @return { Promise } Return whether there is a saved result. + * @returns { Promise } Return whether there is a saved result. * * @since 9 */ @@ -332,7 +332,7 @@ declare namespace webview { * @param { AsyncCallback } callback - Return all source information of * stored geographic location permission status. * @throws { BusinessError } 401 - Invalid input parameter. - * @return { Promise> } Return whether there is a saved result. + * @returns { Promise> } Return whether there is a saved result. * * @since 9 */ @@ -376,7 +376,7 @@ declare namespace webview { * * @param { AsyncCallback } callback - Called after the cookies have been saved. * @throws { BusinessError } 401 - Invalid input parameter. - * @return { Promise } A promise resolved after the cookies have been saved. + * @returns { Promise } A promise resolved after the cookies have been saved. * * @since 9 */