• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the ArkUI Development Framework
2
3The table below lists the APIs changes of the ArkUI development framework in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ArkUI                                                                              | WebAttribute                | onClientAuthenticationRequest(callback: (event: {handler : ClientAuthenticationHandler, host : string, port : number, keyTypes : Array\<string>, issuers : Array\<string>}) => void): WebAttribute; | Added                         |
10| ArkUI                                                                              | WebAttribute                | onSslErrorEventReceive(callback: (event: { handler: SslErrorHandler, error: SslError }) => void): WebAttribute;                                 | Added|
11| ArkUI                                                                              | WebAttribute                | onScroll(callback: (event: {xOffset: number, yOffset: number}) => void): WebAttribute;                                                          | Added|
12| ArkUI                                                                              | WebAttribute                | onSearchResultReceive(callback: (event?: {activeMatchOrdinal: number, numberOfMatches: number, isDoneCounting: boolean}) => void): WebAttribute | Added|
13| ArkUI                                                                              | WebAttribute                | mediaPlayGestureAccess(access: boolean): WebAttribute;                                                                                          | Added|
14| ArkUI                                                                              | WebAttribute                | onContextMenuShow(callback: (event?: { param: WebContextMenuParam, result: WebContextMenuResult }) => boolean): WebAttribute;                   | Added|
15| ArkUI                                                                              | WebAttribute                | onPermissionRequest(callback: (event?: { request: PermissionRequest }) => void): WebAttribute;                                                  | Added|
16| ArkUI                                                                              | WebAttribute                | textZoomRatio(textZoomRatio: number): WebAttribute;                                                                                             | Added|
17| ArkUI                                                                              | WebController               | clearClientAuthenticationCache(): void;                                                                                                         | Added|
18| ArkUI                                                                              | WebController               | clearSslCache(): void;                                                                                                                          | Added|
19| ArkUI                                                                              | WebController               | searchNext(forward: boolean): void;                                                                                                             | Added|
20| ArkUI                                                                              | WebController               | clearMatches(): void;                                                                                                                           | Added|
21| ArkUI                                                                              | WebController               | searchAllAsync(searchString: string): void;                                                                                                     | Added|
22| ArkUI                                                                              | WebController               | postMessage(options: { message: WebMessageEvent, uri: string}): void;                                                                           | Added|
23| ArkUI                                                                              | WebController               | createWebMessagePorts(): Array\<WebMessagePort>;                                                                                                | Added|
24| ArkUI                                                                              | WebContextMenuResult        | copyImage(): void;                                                                                                                              | Added|
25| ArkUI                                                                              | WebContextMenuResult        | closeContextMenu(): void;                                                                                                                       | Added|
26| ArkUI                                                                              | WebContextMenuResult        | constructor();                                                                                                                                  | Added|
27| ArkUI                                                                              | WebContextMenuParam         | existsImageContents(): boolean;                                                                                                                 | Added|
28| ArkUI                                                                              | WebContextMenuParam         | getSourceUrl(): string;                                                                                                                         | Added|
29| ArkUI                                                                              | WebContextMenuParam         | getUnfilterendLinkUrl(): string;                                                                                                                | Added|
30| ArkUI                                                                              | WebContextMenuParam         | getLinkUrl(): string;                                                                                                                           | Added|
31| ArkUI                                                                              | WebContextMenuParam         | y(): number;                                                                                                                                    | Added|
32| ArkUI                                                                              | WebContextMenuParam         | x(): number;                                                                                                                                    | Added|
33| ArkUI                                                                              | WebContextMenuParam         | constructor();                                                                                                                                  | Added|
34| ArkUI                                                                              | PermissionRequest           | grant(resources: Array\<string>): void;                                                                                                         | Added|
35| ArkUI                                                                              | PermissionRequest           | getAccessibleResource(): Array\<string>;                                                                                                        | Added|
36| ArkUI                                                                              | PermissionRequest           | getOrigin(): string;                                                                                                                            | Added|
37| ArkUI                                                                              | PermissionRequest           | deny(): void;                                                                                                                                   | Added|
38| ArkUI                                                                              | PermissionRequest           | constructor();                                                                                                                                  | Added|
39| ArkUI                                                                              | ProtectedResourceType       | MidiSysex = "TYPE_MIDI_SYSEX"                                                                                                                   | Added|
40| ArkUI                                                                              | ClientAuthenticationHandler | ignore(): void;                                                                                                                                 | Added|
41| ArkUI                                                                              | ClientAuthenticationHandler | cancel(): void;                                                                                                                                 | Added|
42| ArkUI                                                                              | ClientAuthenticationHandler | confirm(priKeyFile : string, certChainFile : string): void;                                                                                     | Added|
43| ArkUI                                                                              | ClientAuthenticationHandler | constructor();                                                                                                                                  | Added|
44| ArkUI                                                                              | SslErrorHandler             | handleCancel(): void;                                                                                                                           | Added|
45| ArkUI                                                                              | SslErrorHandler             | handleConfirm(): void;                                                                                                                          | Added|
46| ArkUI                                                                              | SslErrorHandler             | constructor();                                                                                                                                  | Added|
47| ArkUI                                                                              | SslError                    | Untrusted                                                                                                                                       | Added|
48| ArkUI                                                                              | SslError                    | DateInvalid                                                                                                                                     | Added|
49| ArkUI                                                                              | SslError                    | HostMismatch                                                                                                                                    | Added|
50| ArkUI                                                                              | SslError                    | Invalid                                                                                                                                         | Added|
51| ArkUI                                                                              | WebMessageEvent             | setPorts(ports: Array\<WebMessagePort>): void;                                                                                                  | Added|
52| ArkUI                                                                              | WebMessageEvent             | getPorts(): Array\<WebMessagePort>;                                                                                                             | Added|
53| ArkUI                                                                              | WebMessageEvent             | setData(data: string): void;                                                                                                                    | Added|
54| ArkUI                                                                              | WebMessageEvent             | getData(): string;                                                                                                                              | Added|
55| ArkUI                                                                              | WebMessageEvent             | constructor();                                                                                                                                  | Added|
56| ArkUI                                                                              | WebMessagePort              | onMessageEvent(callback: (result: string) => void): void;                                                                                       | Added|
57| ArkUI                                                                              | WebMessagePort              | postMessageEvent(message: WebMessageEvent): void;                                                                                               | Added|
58| ArkUI                                                                              | WebMessagePort              | close(): void;                                                                                                                                  | Added|
59| ArkUI                                                                              | WebMessagePort              | constructor();                                                                                                                                  | Added|
60| ArkUI                                                                              | ColorFilter                 | constructor(value: number[]);                                                                                                                   | Added|
61| ArkUI                                                                              | TextInputAttribute          | style(value: TextInputStyle): TextInputAttribute;                                                                                               | Added|
62| ArkUI                                                                              | TextInputStyle              | Inline                                                                                                                                          | Added|
63| ArkUI                                                                              | TextInputStyle              | Default                                                                                                                                         | Added|
64| ArkUI                                                                              | TabsAttribute               | barPosition(value: BarPosition): TabsAttribute;                                                                                                 | Added|
65| ArkUI                                                                              | SideBarContainerAttribute   | sideBarPosition(value: SideBarPosition): SideBarContainerAttribute;                                                                             | Added|
66| ArkUI                                                                              | SideBarPosition             | End                                                                                                                                             | Added|
67| ArkUI                                                                              | SideBarPosition             | Start                                                                                                                                           | Added|
68| ArkUI                                                                              | WindowAnimationTarget       | readonly missionId: number;                                                                                                                     | Added|
69| ArkUI                                                                              | PanelAttribute              | onHeightChange(callback: (value: number) => void): PanelAttribute;                                                                              | Added|
70| ArkUI                                                                              | PanelAttribute              | backgroundMask(color: ResourceColor): PanelAttribute;                                                                                           | Added|
71| ArkUI                                                                              | ListItemGroupAttribute      | divider(value: {strokeWidth: Length;color?: ResourceColor;startMargin?: Length;endMargin?: Length;} \| null,): ListItemGroupAttribute;                                                      | Added                         |
72| ArkUI                                                                              | ListItemGroupInterface      | (options?: ListItemGroupOptions): ListItemGroupAttribute;                                                                                       | Added|
73| ArkUI                                                                              | ListItemGroupOptions        | space?: number \| string;                                                                                                                        | Added|
74| ArkUI                                                                              | ListItemGroupOptions        | footer?: CustomBuilder;                                                                                                                         | Added|
75| ArkUI                                                                              | ListItemGroupOptions        | header?: CustomBuilder;                                                                                                                         | Added|
76| ArkUI                                                                              | ListItemAttribute           | swipeAction(value: SwipeActionOptions): ListItemAttribute;                                                                                      | Added|
77| ArkUI                                                                              | SwipeActionOptions          | edgeEffect?: SwipeEdgeEffect;                                                                                                                   | Added|
78| ArkUI                                                                              | SwipeActionOptions          | end?: CustomBuilder;                                                                                                                            | Added|
79| ArkUI                                                                              | SwipeActionOptions          | start?: CustomBuilder;                                                                                                                          | Added|
80| ArkUI                                                                              | SwipeEdgeEffect             | None                                                                                                                                            | Added|
81| ArkUI                                                                              | SwipeEdgeEffect             | Spring                                                                                                                                          | Added|
82| ArkUI                                                                              | ListAttribute               | sticky(value: StickyStyle): ListAttribute;                                                                                                      | Added|
83| ArkUI                                                                              | StickyStyle                 | Footer = 2                                                                                                                                      | Added|
84| ArkUI                                                                              | StickyStyle                 | Header = 1                                                                                                                                      | Added|
85| ArkUI                                                                              | StickyStyle                 | None = 0                                                                                                                                        | Added|
86| ArkUI                                                                              | ImageAttribute              | copyOption(value: CopyOptions): ImageAttribute;                                                                                                 | Added|
87| ArkUI                                                                              | ImageAttribute              | colorFilter(value: ColorFilter): ImageAttribute;                                                                                                | Added|
88| ArkUI                                                                              | GutterOption                | y?: Length \| GridRowSizeOption                                                                                                                  | Added|
89| ArkUI                                                                              | GutterOption                | x?: Length \| GridRowSizeOption,                                                                                                                 | Added|
90| ArkUI                                                                              | FormDimension               | Dimension_2_1                                                                                                                                   | Added|
91| ArkUI                                                                              | HitTestMode                 | None                                                                                                                                            | Added|
92| ArkUI                                                                              | HitTestMode                 | Transparent                                                                                                                                     | Added|
93| ArkUI                                                                              | HitTestMode                 | Block                                                                                                                                           | Added|
94| ArkUI                                                                              | HitTestMode                 | Default                                                                                                                                         | Added|
95| ArkUI                                                                              | CopyOptions                 | LocalDevice = 2                                                                                                                                 | Added|
96| ArkUI                                                                              | CopyOptions                 | InApp = 1                                                                                                                                       | Added|
97| ArkUI                                                                              | CopyOptions                 | None = 0                                                                                                                                        | Added|
98| ArkUI                                                                              | Color                       | Transparent                                                                                                                                     | Added|
99| ArkUI                                                                              | CommonMethod                | focusOnTouch(value: boolean): T;                                                                                                                | Added|
100| ArkUI                                                                              | CommonMethod                | groupDefaultFocus(value: boolean): T;                                                                                                           | Added|
101| ArkUI                                                                              | CommonMethod                | defaultFocus(value: boolean): T;                                                                                                                | Added|
102| ArkUI                                                                              | CommonMethod                | hitTestBehavior(value: HitTestMode): T;                                                                                                         | Added|
103| ArkUI                                                                              | CustomPopupOptions          | arrowOffset?: Length;                                                                                                                           | Added|
104| ArkUI                                                                              | PopupOptions                | arrowOffset?: Length;                                                                                                                           | Added|
105| ArkUI                                                                              | focusControl                | function requestFocus(value: string): boolean;                                                                                                  | Added|
106| basic                                                                              | BusinessError               | data?: T;                                                                                                                                       | Added|
107| canvaspattern                                                                      | CanvasPattern               | setTransform(transform?: Matrix2D): void;                                                                                                       | Added|
108| canvaspattern                                                                      | Matrix2D                    | scaleX?: number;                                                                                                                                | Added|
109| canvaspattern                                                                      | Matrix2D                    | rotateY?: number;                                                                                                                               | Added|
110| canvaspattern                                                                      | Matrix2D                    | rotateX?: number;                                                                                                                               | Added|
111| canvaspattern                                                                      | Matrix2D                    | scaleY?: number;                                                                                                                                | Added|
112| canvaspattern                                                                      | Matrix2D                    | translateX?: number;                                                                                                                            | Added|
113| canvaspattern                                                                      | Matrix2D                    | translateY?: number;                                                                                                                            | Added|
114| canvaspattern                                                                      | Matrix2D                    | identity(): Matrix2D;                                                                                                                           | Added|
115| canvaspattern                                                                      | Matrix2D                    | invert(): Matrix2D;                                                                                                                             | Added|
116| canvaspattern                                                                      | Matrix2D                    | multiply(other?: Matrix2D): Matrix2D;                                                                                                           | Added|
117| canvaspattern                                                                      | Matrix2D                    | rotate(rx?: number, ry?: number): Matrix2D;                                                                                                     | Added|
118| canvaspattern                                                                      | Matrix2D                    | translate(tx?: number, ty?: number): Matrix2D;                                                                                                  | Added|
119| canvaspattern                                                                      | Matrix2D                    | scale(sx?: number, sy?: number): Matrix2D;                                                                                                      | Added|
120| canvaspattern                                                                      | Matrix2D                    | constructor();                                                                                                                                  | Added|
121| ohos.curves                                                                        | curves                      | function responsiveSpringMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;                                 | Added|
122| ohos.curves                                                                        | curves                      | function springMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;                                           | Added|
123| ArkUI | CanvasPattern | setTransform(transform?: Matrix2D): void; | Deleted|
124| ArkUI | GetterOption  | y?: Length \| GridRowSizeOption            | Deleted|
125| ArkUI | GetterOption  | x?: Length \| GridRowSizeOption,           | Deleted|
126| ArkUI | CopyOption    | CrossDevice = 2                           | Deleted|
127| ArkUI | CopyOption    | LocalDevice = 1                           | Deleted|
128| ArkUI | CopyOption    | InApp = 0                                 | Deleted|
129| ArkUI      | WebAttribute | textZoomAtio(textZoomAtio: number): WebAttribute;                   | Deprecated|
130| ArkUI      | CommonMethod | touchable(value: boolean): T;                                       | Deprecated|
131| system.app | App          | static requestFullWindow(options?: RequestFullWindowOptions): void; | Deprecated|
132