diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 84c89035daf8c5e3ae9e1f9a5721bab88c794128..f8cf8d1b22cec59aa4e4e51b092d7df28bffd70f 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -1785,6 +1785,46 @@ declare class FileSelectorParam { * @arkts 1.1&1.2 */ getMimeTypes(): Array; + + /** + * Gets suggested file names. + * + * @returns { string } Return the suggested file names. + * @syscap SystemCapability.Web.Webview.Core + * @since 22 + * @arkts 1.1&1.2 + */ + getSuggestedName(): string; + + /** + * Get the default path opened when pulling up the selector. + * + * @returns { string } Return to the default path opened when pulling up the selector. + * @syscap SystemCapability.Web.Webview.Core + * @since 22 + * @arkts 1.1&1.2 + */ + getDefaultPath(): string; + + /** + * Gets a description array of file types. + * + * @returns { Array } Return an array of description of the file type. + * @syscap SystemCapability.Web.Webview.Core + * @since 22 + * @arkts 1.1&1.2 + */ + getDescriptions(): Array; + + /** + * Gets whether to filter fully matching file types. + * + * @returns { boolean } Return whether to filter all matching file types. + * @syscap SystemCapability.Web.Webview.Core + * @since 22 + * @arkts 1.1&1.2 + */ + isExcludeAcceptAllOptions(): boolean; } /** @@ -3503,7 +3543,7 @@ declare class WebContextMenuResult { *

API Note:
* Permissions need to be configured: ohos.permission.READ_PASTEBOARD. *

- * + * * @syscap SystemCapability.Web.Webview.Core * @since 20 */ @@ -9084,16 +9124,16 @@ declare class WebAttribute extends CommonMethod { /** * Notify the global scroll position of the web page - * + * * Description: - * + * * What is notified is the global scroll position of the page. * Changes in the local scroll position cannot trigger this callback. - * - * Determine whether the page is globally scrolled and print window.pagYOffset + * + * Determine whether the page is globally scrolled and print window.pagYOffset * or window.pagXOffset before and after scrolling. - * - * If it is global scrolling, the value of window.pagYOffset + * + * If it is global scrolling, the value of window.pagYOffset * or window.pagXOffset will change before and after scrolling, and vice versa. * * @param { function } callback Function triggered when the web page scroll to the specified position. @@ -9103,16 +9143,16 @@ declare class WebAttribute extends CommonMethod { */ /** * Notify the global scroll position of the web page - * + * * Description: - * + * * What is notified is the global scroll position of the page. * Changes in the local scroll position cannot trigger this callback. - * - * Determine whether the page is globally scrolled and print window.pagYOffset + * + * Determine whether the page is globally scrolled and print window.pagYOffset * or window.pagXOffset before and after scrolling. - * - * If it is global scrolling, the value of window.pagYOffset + * + * If it is global scrolling, the value of window.pagYOffset * or window.pagXOffset will change before and after scrolling, and vice versa. * * @param { function } callback Function triggered when the web page scroll to the specified position. @@ -9124,16 +9164,16 @@ declare class WebAttribute extends CommonMethod { */ /** * Notify the global scroll position of the web page - * + * * Description: - * + * * What is notified is the global scroll position of the page. * Changes in the local scroll position cannot trigger this callback. - * - * Determine whether the page is globally scrolled and print window.pagYOffset + * + * Determine whether the page is globally scrolled and print window.pagYOffset * or window.pagXOffset before and after scrolling. - * - * If it is global scrolling, the value of window.pagYOffset + * + * If it is global scrolling, the value of window.pagYOffset * or window.pagXOffset will change before and after scrolling, and vice versa. * * @param { Callback } callback Function triggered when the web page scroll to the specified position. @@ -9538,7 +9578,7 @@ declare class WebAttribute extends CommonMethod { * * Scroll bar resident is not supported in full expansion mode, * that is, when layoutMode is WebLayoutMode.FIT_CONTENT mode, the parameter enabled is false. - * + * * @param { boolean } enabled {@code true} means show; {@code false} otherwise. default is false. * @returns { WebAttribute } * @syscap SystemCapability.Web.Webview.Core