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