From 83b6c2310c9ecc2956b5b2124d92cfd7d0d056c5 Mon Sep 17 00:00:00 2001 From: liuhui Date: Thu, 21 Aug 2025 09:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E9=9A=9C=E7=A2=8D1.2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=8B=86=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuhui --- api/@internal/component/ets/common.d.ts | 4 +- api/@ohos.pluginComponent.d.ts | 3 + api/arkui/component/common.static.d.ets | 664 ++++++------------------ 3 files changed, 155 insertions(+), 516 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index b9ed60bb49..be3e473350 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -2068,7 +2068,7 @@ declare enum AccessibilitySamePageMode { * @atomicservice * @since 18 */ - FULL_SILENT = 1, + FULL_SILENT = 1 } /** * Enum for accessibility component type @@ -3204,7 +3204,7 @@ declare enum AccessibilityRoleType { * @atomicservice * @since 18 */ - ROLE_NONE = 124, + ROLE_NONE = 124 } /** diff --git a/api/@ohos.pluginComponent.d.ts b/api/@ohos.pluginComponent.d.ts index 664140e643..aacb631200 100644 --- a/api/@ohos.pluginComponent.d.ts +++ b/api/@ohos.pluginComponent.d.ts @@ -18,6 +18,9 @@ * @kit ArkUI */ +import { AsyncCallback } from './@ohos.base'; +import Want from './@ohos.app.ability.Want'; + /** * Plugin component template property. * diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets index ce2c04b589..dbac7de1ad 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -478,11 +478,8 @@ export declare function $r(value: string, ...params: (Object | null | undefined) export declare function $rawfile(value: string): Resource; /** * Defines the same page mode - * @enum { number } + * @enum { int } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ export declare enum AccessibilitySamePageMode { @@ -490,1169 +487,843 @@ export declare enum AccessibilitySamePageMode { * the first page and root page event is not send.but if application load new page whith navigation,the page event will be sent. * this mode is to solve skipping focus * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SEMI_SILENT = 0, /** * the all page event is not send * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ FULL_SILENT = 1 } /** * Enum for accessibility component type - * @enum { number } + * @enum { int } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ export declare enum AccessibilityRoleType { /** * ActionSheet component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ ACTION_SHEET = 0, /** * AlertDialog component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ ALERT_DIALOG = 1, /** * AlphabetIndexer component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ INDEXER_COMPONENT = 2, /** * badge component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ BADGE_COMPONENT = 3, /** * blank component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ BLANK = 4, /** * button component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ BUTTON = 5, /** * button component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ BACK_BUTTON = 6, /** * sheet drag bar component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SHEET_DRAG_BAR = 7, /** * calendar picker component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CALENDAR_PICKER = 8, /** * calendar component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CALENDAR = 9, /** * canvas component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CANVAS = 10, /** * canvas gradient component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CANVAS_GRADIENT = 11, /** * canvas pattern component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CANVAS_PATTERN = 12, /** * checkbox component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CHECKBOX = 13, /** * checkbox group component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CHECKBOX_GROUP = 14, /** * circle component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CIRCLE = 15, /** * column split component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ COLUMN_SPLIT = 16, /** * column component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ COLUMN = 17, /** * canvas rendering context 2d component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CANVAS_RENDERING_CONTEXT_2D = 18, /** * chart component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CHART = 19, /** * counter component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ COUNTER = 20, /** * counter modal component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ CONTAINER_MODAL = 21, /** * data panel component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ DATA_PANEL = 22, /** * data picker component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ DATE_PICKER = 23, /** * dialog component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ DIALOG = 24, /** * divider component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ DIVIDER = 25, /** * drag bar component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ DRAG_BAR = 26, /** * effect component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ EFFECT_COMPONENT = 27, /** * ellipse component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ ELLIPSE = 28, /** * flex component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ FLEX = 29, /** * flow item component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ FLOW_ITEM = 30, /** * form component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ FORM_COMPONENT = 31, /** * form link component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ FORM_LINK = 32, /** * gauge component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ GAUGE = 33, /** * grid component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ GRID = 34, /** * grid col component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ GRID_COL = 35, /** * grid container component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ GRID_CONTAINER = 36, /** * grid item component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ GRID_ITEM = 37, /** * grid row component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ GRID_ROW = 38, /** * hyperlink component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ HYPERLINK = 39, /** * image component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ IMAGE = 40, /** * image animator component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ IMAGE_ANIMATOR = 41, /** * image bitmap component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ IMAGE_BITMAP = 42, /** * image data component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ IMAGE_DATA = 43, /** * image span component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ IMAGE_SPAN = 44, /** * label component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ LABEL = 45, /** * line component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ LINE = 46, /** * list component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ LIST = 47, /** * list item component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ LIST_ITEM = 48, /** * list item group component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ LIST_ITEM_GROUP = 49, /** * loading progress component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ LOADING_PROGRESS = 50, /** * marquee component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ MARQUEE = 51, /** * matrix2d component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ MATRIX2D = 52, /** * menu component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ MENU = 53, /** * menu item component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ MENU_ITEM = 54, /** * menu item group component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ MENU_ITEM_GROUP = 55, /** * navdestination component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ NAV_DESTINATION = 56, /** * navrouter component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ NAV_ROUTER = 57, /** * navigation component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ NAVIGATION = 58, /** * navigation bar component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ NAVIGATION_BAR = 59, /** * navigation menu component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ NAVIGATION_MENU = 60, /** * navigator component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ NAVIGATOR = 61, /** * offscreen canvas component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ OFFSCREEN_CANVAS = 62, /** * offscreen canvas rendering context2d component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ OFFSCREEN_CANVAS_RENDERING_CONTEXT2D = 63, /** * option component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ OPTION = 64, /** * panel component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ PANEL = 65, /** * paper page component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ PAPER_PAGE = 66, /** * path component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ PATH = 67, /** * path 2d component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ PATH2D = 68, /** * pattern lock component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ PATTERN_LOCK = 69, /** * picker component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ PICKER = 70, /** * picker view component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ PICKER_VIEW = 71, /** * plugin component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ PLUGIN_COMPONENT = 72, /** * polygon component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ POLYGON = 73, /** * polyline component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ POLYLINE = 74, /** * pop up component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ POPUP = 75, /** * progress component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ PROGRESS = 76, /** * qr code component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ QRCODE = 77, /** * radio component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ RADIO = 78, /** * rating component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ RATING = 79, /** * rect component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ RECT = 80, /** * refresh component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ REFRESH = 81, /** * relative container component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ RELATIVE_CONTAINER = 82, /** * remote window component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ REMOTE_WINDOW = 83, /** * rich editor component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ RICH_EDITOR = 84, /** * rich text component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ RICH_TEXT = 85, /** * rolepager component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ ROLE_PAGER = 86, /** * row component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ ROW = 87, /** * row split component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ ROW_SPLIT = 88, /** * scroll component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SCROLL = 89, /** * scroll bar component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SCROLL_BAR = 90, /** * search component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SEARCH = 91, /** * search field component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SEARCH_FIELD = 92, /** * select component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SELECT = 93, /** * shape component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SHAPE = 94, /** * sidebar container component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SIDEBAR_CONTAINER = 95, /** * slider component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SLIDER = 96, /** * span component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SPAN = 97, /** - * stack component type - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice + * stack component type + * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ STACK = 98, /** * stepper component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ STEPPER = 99, /** * stepper item component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ STEPPER_ITEM = 100, /** * swiper component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SWIPER = 101, /** * swiper indicator component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SWIPER_INDICATOR = 102, /** * switch component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SWITCH = 103, /** * symbol glyph component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ SYMBOL_GLYPH = 104, /** * tab content component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TAB_CONTENT = 105, /** * tab bar component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TAB_BAR = 106, /** * tabs component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TABS = 107, /** * text component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TEXT = 108, /** * text clock component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TEXT_CLOCK = 109, /** * text entry component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TEXT_ENTRY = 110, /** * text input component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TEXT_INPUT = 111, /** * text picker component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TEXT_PICKER = 112, /** * text timer component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TEXT_TIMER = 113, /** * text area component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TEXT_AREA = 114, /** * text field component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TEXT_FIELD = 115, /** * time picker component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TIME_PICKER = 116, /** * title bar component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TITLE_BAR = 117, /** * toggler component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ TOGGLER = 118, /** * uiextensioncomponent component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ UI_EXTENSION_COMPONENT = 119, /** * video component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ VIDEO = 120, /** * water flow component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ WATER_FLOW = 121, /** * web component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ WEB = 122, /** * xcomponent component type * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ XCOMPONENT = 123, /** * none component type: screen reader will not broadcast the component type. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ ROLE_NONE = 124 } /** - * Defines the callback type used in accessibility focus. The value of isFocus indicates whether the current component is focused - * @typedef {function} AccessibilityFocusCallback - * @param {boolean} isFocus - if component is focused,isFocus will be true. else isFocus is false. + * Defines the callback type used in accessibility focus. The value of indicates whether + * the current component is focused + * @typedef { function } AccessibilityFocusCallback + * @param { boolean } isFocus - if component is focused,isFocus will be true. else isFocus is false. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ export type AccessibilityFocusCallback = (isFocus: boolean) => void; + +/** + * Enum for accessibility action type + * @enum { int } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare enum AccessibilityAction { + /** + * undefined action type + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + UNDEFINED_ACTION = 0, + /** + * accessibility click action + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + ACCESSIBILITY_CLICK = 1, +} + +/** + * Enum for the result of accessibility action intercept function + * @enum { int } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare enum AccessibilityActionInterceptResult { + /** + * intercept the accessibility action + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + ACTION_INTERCEPT = 0, + /** + * the accessibility action can be continued + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + ACTION_CONTINUE = 1, + /** + * the accessibility action need to bubble up for execution + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + ACTION_RISE = 2, +} + +/** + * Defines the callback type used in accessibility action intercept. + * The value of action indicates the accessibility action type. + * @typedef { function } AccessibilityActionInterceptCallback + * @param { AccessibilityAction } action - the enum of accessibility action type. + * @returns { AccessibilityActionInterceptResult } the result of continuing to execute the action or interrupting it or bubbling up + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare type AccessibilityActionInterceptCallback = (action: AccessibilityAction) => AccessibilityActionInterceptResult; + /** * Enum for FinishCallbackType. * @@ -5430,7 +5101,6 @@ export declare interface MouseEvent extends BaseEvent { * @extends BaseEvent * @typedef AccessibilityHoverEvent * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ export declare interface AccessibilityHoverEvent extends BaseEvent { @@ -5439,64 +5109,57 @@ export declare interface AccessibilityHoverEvent extends BaseEvent { * * @type { AccessibilityHoverType } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ type: AccessibilityHoverType; /** * X coordinate of the accessibility hover point relative to the left edge of the event hit element. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ - x: number; + x: double; /** * Y coordinate of the accessibility hover point relative to the upper edge of the event hit element. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ - y: number; + y: double; /** * X coordinate of the accessibility hover point relative to the left edge of the device screen. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ - displayX: number; + displayX: double; /** * Y coordinate of the accessibility hover point relative to the upper edge of the device screen. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ - displayY: number; + displayY: double; /** * X coordinate of the accessibility hover point relative to the left edge of the current window. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ - windowX: number; + windowX: double; /** * Y coordinate of the accessibility hover point relative to the upper edge of the current window. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ - windowY: number; + windowY: double; } /** * Type of the touch event. @@ -11053,14 +10716,23 @@ export declare interface CommonMethod { /** * Trigger a accessibility hover event. * - * @param { AccessibilityCallback } callback - A callback instance used when the component is touched after accessibility mode is enabled. - * @returns { T } + * @param { AccessibilityCallback | undefined } callback - A callback instance used when the component is touched after accessibility mode is enabled. + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default onAccessibilityHover(callback: AccessibilityCallback | undefined): this; + + /** + * prompt for current component and descendants unable to handle accessibility hover event + * + * @param { AccessibilityTransparentCallback | undefined } callback - A callback instance used when current component and + * descendants not handled accessibility hover event + * @returns { this } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default onAccessibilityHoverTransparent(callback: AccessibilityTransparentCallback | undefined): this; /** * Set hover effect. * @@ -12744,12 +12416,9 @@ export declare interface CommonMethod { *
the component and all its children are treated as a single selectable unit, and the accessibility *
service will no longer focus on the individual child components.

* - * @param { boolean } value - set group with accessibility, default value is false. - * @returns { T } + * @param { boolean | undefined } value - set group with accessibility, default value is false. + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityGroupWithValue(value: boolean | undefined): this; @@ -12767,13 +12436,10 @@ export declare interface CommonMethod { *
accessibility text attribute, the system will continue to concatenate its universal text attribute. *
If a child component lacks both, it will be ignored.

* - * @param { boolean } isGroup - set group with accessibility, default value is false. - * @param { AccessibilityOptions } config - accessibilityOptions for accessibility, default value is false. - * @returns { T } + * @param { boolean | undefined } isGroup - set group with accessibility, default value is false. + * @param { AccessibilityOptions | undefined } config - accessibilityOptions for accessibility, default value is false. + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityGroupWithConfig(isGroup: boolean | undefined, config: AccessibilityOptions | undefined): this; @@ -12786,56 +12452,41 @@ export declare interface CommonMethod { * When a component does not contain a text attribute, you can use this API to set an accessibility * text attribute, so that accessibility services can announce the specified content for the component. * - * @param { string } value - set accessibility text, default value is "". - * @returns { T } + * @param { string | undefined } value - set accessibility text, default value is "". + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityTextOfStringType(value: string | undefined): this; /** * Sets accessibility next focus id - * @param { string } nextId - set component next accessibility focus id - * @returns { T } + * @param { string | undefined } nextId - set component next accessibility focus id + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityNextFocusId(nextId: string | undefined): this; /** * Sets the accessibility default foucs flag - * @param { boolean } focus - if the component is accessibility default focus,focus set true - * @returns { T } + * @param { boolean | undefined } focus - if the component is accessibility default focus,focus set true + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityDefaultFocus(focus: boolean | undefined): this; /** * Sets accessibility same page mode - * @param { AccessibilitySamePageMode } pageMode - accessibility same page mode - * @returns { T } + * @param { AccessibilitySamePageMode | undefined } pageMode - accessibility same page mode + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityUseSamePage(pageMode: AccessibilitySamePageMode | undefined): this; /** * Sets accessibilityScrollTriggerable - * @param { boolean } isTriggerable - set property of supporting scroll in accessibility - * @returns { T } + * @param { boolean | undefined } isTriggerable - set property of supporting scroll in accessibility + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityScrollTriggerable(isTriggerable: boolean | undefined): this; @@ -12847,12 +12498,9 @@ export declare interface CommonMethod { *
text, the screen reader will concatenate text from its child components (depth-first traversal). *
To prioritize accessibility text concatenation, set accessibilityPreferred in accessibilityGroup. *

- * @param { Resource } text - set accessibility text - * @returns { T } + * @param { Resource | undefined} text - set accessibility text + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityTextOfResourceType(text: Resource | undefined): this; @@ -12862,47 +12510,44 @@ export declare interface CommonMethod { overload accessibilityText { accessibilityTextOfStringType, accessibilityTextOfResourceType }; /** * Sets accessibility role,role indicates the custom type of the component - * @param { AccessibilityRoleType } role - set accessibility component type - * @returns { T } + * @param { AccessibilityRoleType | undefined } role - set accessibility component type + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityRole(role: AccessibilityRoleType | undefined): this; /** * Register accessibility focus callback,when the component is focused or out of focus,the callback will be executed - * @param { AccessibilityFocusCallback } callback - accessibility focus callback function - * @returns { T } + * @param { AccessibilityFocusCallback | undefined } callback - accessibility focus callback function + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default onAccessibilityFocus(callback: AccessibilityFocusCallback | undefined): this; + /** + * Register accessibility action intercept callback, + * when accessibility action is to be executed,the callback will be executed + * @param { AccessibilityActionInterceptCallback | undefined } callback - accessibility action intercept callback function + * @returns { this } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default onAccessibilityActionIntercept(callback: AccessibilityActionInterceptCallback | undefined): this; /** * Sets accessibilityTextHint * - * @param { string } value - set accessibility text hint - * @returns { T } + * @param { string | undefined } value - set accessibility text hint + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityTextHint(value: string | undefined): this; /** * Sets accessibilityDescription * - * @param { string } value - set description of accessibility, default value is "". - * @returns { T } + * @param { string | undefined } value - set description of accessibility, default value is "". + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityDescriptionOfStringType(value: string | undefined): this; @@ -12918,12 +12563,9 @@ export declare interface CommonMethod { *
cannot be learned from component attributes and accessibility text. If a component contains *
both text information and the accessibility description, the text is read first and then the *
accessibility description, when the component is selected.

- * @param { Resource } description - set description of accessibility - * @returns { T } + * @param { Resource | undefined } description - set description of accessibility + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityDescriptionOfResourceType(description: Resource | undefined): this; @@ -12948,48 +12590,36 @@ export declare interface CommonMethod { *
not focus on its child components, making them unrecognizable. *
3. If the parent component's accessibilityLevel is set to "no-hide-descendants", the component will not be *
recognized by accessibility services.

- * @param { string } value - set accessibility level, default value is auto. - * @returns { T } + * @param { string | undefined } value - set accessibility level, default value is auto. + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityLevel(value: string | undefined): this; /** * Sets accessibilityVirtualNode * - * @param { CustomBuilder } builder - set virtual node of accessibility - * @returns { T } + * @param { CustomBuilder | undefined } builder - set virtual node of accessibility + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityVirtualNode(builder: CustomBuilder | undefined): this; /** * Sets accessibilityChecked * - * @param { boolean } isCheck - set accessibility checked status - * @returns { T } + * @param { boolean | undefined } isCheck - set accessibility checked status + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityChecked(isCheck: boolean | undefined): this; /** * Sets accessibilitySelected * - * @param { boolean } isSelect - set accessibility selected status - * @returns { T } + * @param { boolean | undefined } isSelect - set accessibility selected status + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilitySelected(isSelect: boolean | undefined): this; @@ -13154,12 +12784,9 @@ export declare interface CommonMethod { /** * Accessibility focus draw level, and the default value is FocusDrawLevel.SELF. * - * @param { FocusDrawLevel } drawLevel - indicates accessibility focus draw level. - * @returns { T } + * @param { FocusDrawLevel | undefined } drawLevel - indicates accessibility focus draw level. + * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice * @since 20 */ default accessibilityFocusDrawLevel(drawLevel: FocusDrawLevel | undefined): this; @@ -14852,11 +14479,20 @@ export type HoverCallback = (isHover: boolean, event: HoverEvent) => void; * @param { boolean } isHover * @param { AccessibilityHoverEvent } event * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ export type AccessibilityCallback = (isHover: boolean, event: AccessibilityHoverEvent) => void; + +/** + * Defines the callback type used in accessibility hover transparent event. + * + * @typedef { function } AccessibilityTransparentCallback + * @param { TouchEvent } event - The value of event contains information about original accessibility hover event. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export type AccessibilityTransparentCallback = (event: TouchEvent) => void + /** * Defines the options about VisibleAreaEvent. * -- Gitee