harmony 鸿蒙ArkUI子系统JS API变更

  • 2022-12-22
  • 浏览 (711)

ArkUI子系统JS API变更

OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,ArkUI子系统的API变更如下:

接口变更

模块名 类名 方法/属性/枚举/常量 变更类型
ArkUI WebAttribute onClientAuthenticationRequest(callback: (event: {handler : ClientAuthenticationHandler, host : string, port : number, keyTypes : Array<string>, issuers : Array<string>}) => void): WebAttribute; 新增
ArkUI WebAttribute onSslErrorEventReceive(callback: (event: { handler: SslErrorHandler, error: SslError }) => void): WebAttribute; 新增
ArkUI WebAttribute onScroll(callback: (event: {xOffset: number, yOffset: number}) => void): WebAttribute; 新增
ArkUI WebAttribute onSearchResultReceive(callback: (event?: {activeMatchOrdinal: number, numberOfMatches: number, isDoneCounting: boolean}) => void): WebAttribute 新增
ArkUI WebAttribute mediaPlayGestureAccess(access: boolean): WebAttribute; 新增
ArkUI WebAttribute onContextMenuShow(callback: (event?: { param: WebContextMenuParam, result: WebContextMenuResult }) => boolean): WebAttribute; 新增
ArkUI WebAttribute onPermissionRequest(callback: (event?: { request: PermissionRequest }) => void): WebAttribute; 新增
ArkUI WebAttribute textZoomRatio(textZoomRatio: number): WebAttribute; 新增
ArkUI WebController clearClientAuthenticationCache(): void; 新增
ArkUI WebController clearSslCache(): void; 新增
ArkUI WebController searchNext(forward: boolean): void; 新增
ArkUI WebController clearMatches(): void; 新增
ArkUI WebController searchAllAsync(searchString: string): void; 新增
ArkUI WebController postMessage(options: { message: WebMessageEvent, uri: string}): void; 新增
ArkUI WebController createWebMessagePorts(): Array<WebMessagePort>; 新增
ArkUI WebContextMenuResult copyImage(): void; 新增
ArkUI WebContextMenuResult closeContextMenu(): void; 新增
ArkUI WebContextMenuResult constructor(); 新增
ArkUI WebContextMenuParam existsImageContents(): boolean; 新增
ArkUI WebContextMenuParam getSourceUrl(): string; 新增
ArkUI WebContextMenuParam getUnfilterendLinkUrl(): string; 新增
ArkUI WebContextMenuParam getLinkUrl(): string; 新增
ArkUI WebContextMenuParam y(): number; 新增
ArkUI WebContextMenuParam x(): number; 新增
ArkUI WebContextMenuParam constructor(); 新增
ArkUI PermissionRequest grant(resources: Array<string>): void; 新增
ArkUI PermissionRequest getAccessibleResource(): Array<string>; 新增
ArkUI PermissionRequest getOrigin(): string; 新增
ArkUI PermissionRequest deny(): void; 新增
ArkUI PermissionRequest constructor(); 新增
ArkUI ProtectedResourceType MidiSysex = “TYPE_MIDI_SYSEX” 新增
ArkUI ClientAuthenticationHandler ignore(): void; 新增
ArkUI ClientAuthenticationHandler cancel(): void; 新增
ArkUI ClientAuthenticationHandler confirm(priKeyFile : string, certChainFile : string): void; 新增
ArkUI ClientAuthenticationHandler constructor(); 新增
ArkUI SslErrorHandler handleCancel(): void; 新增
ArkUI SslErrorHandler handleConfirm(): void; 新增
ArkUI SslErrorHandler constructor(); 新增
ArkUI SslError Untrusted 新增
ArkUI SslError DateInvalid 新增
ArkUI SslError HostMismatch 新增
ArkUI SslError Invalid 新增
ArkUI WebMessageEvent setPorts(ports: Array<WebMessagePort>): void; 新增
ArkUI WebMessageEvent getPorts(): Array<WebMessagePort>; 新增
ArkUI WebMessageEvent setData(data: string): void; 新增
ArkUI WebMessageEvent getData(): string; 新增
ArkUI WebMessageEvent constructor(); 新增
ArkUI WebMessagePort onMessageEvent(callback: (result: string) => void): void; 新增
ArkUI WebMessagePort postMessageEvent(message: WebMessageEvent): void; 新增
ArkUI WebMessagePort close(): void; 新增
ArkUI WebMessagePort constructor(); 新增
ArkUI ColorFilter constructor(value: number[]); 新增
ArkUI TextInputAttribute style(value: TextInputStyle): TextInputAttribute; 新增
ArkUI TextInputStyle Inline 新增
ArkUI TextInputStyle Default 新增
ArkUI TabsAttribute barPosition(value: BarPosition): TabsAttribute; 新增
ArkUI SideBarContainerAttribute sideBarPosition(value: SideBarPosition): SideBarContainerAttribute; 新增
ArkUI SideBarPosition End 新增
ArkUI SideBarPosition Start 新增
ArkUI WindowAnimationTarget readonly missionId: number; 新增
ArkUI PanelAttribute onHeightChange(callback: (value: number) => void): PanelAttribute; 新增
ArkUI PanelAttribute backgroundMask(color: ResourceColor): PanelAttribute; 新增
ArkUI ListItemGroupAttribute divider(value: {strokeWidth: Length;color?: ResourceColor;startMargin?: Length;endMargin?: Length;} |null,): ListItemGroupAttribute; 新增
ArkUI ListItemGroupInterface (options?: ListItemGroupOptions): ListItemGroupAttribute; 新增
ArkUI ListItemGroupOptions space?: number |string; 新增
ArkUI ListItemGroupOptions footer?: CustomBuilder; 新增
ArkUI ListItemGroupOptions header?: CustomBuilder; 新增
ArkUI ListItemAttribute swipeAction(value: SwipeActionOptions): ListItemAttribute; 新增
ArkUI SwipeActionOptions edgeEffect?: SwipeEdgeEffect; 新增
ArkUI SwipeActionOptions end?: CustomBuilder; 新增
ArkUI SwipeActionOptions start?: CustomBuilder; 新增
ArkUI SwipeEdgeEffect None 新增
ArkUI SwipeEdgeEffect Spring 新增
ArkUI ListAttribute sticky(value: StickyStyle): ListAttribute; 新增
ArkUI StickyStyle Footer = 2 新增
ArkUI StickyStyle Header = 1 新增
ArkUI StickyStyle None = 0 新增
ArkUI ImageAttribute copyOption(value: CopyOptions): ImageAttribute; 新增
ArkUI ImageAttribute colorFilter(value: ColorFilter): ImageAttribute; 新增
ArkUI GutterOption y?: Length |GridRowSizeOption 新增
ArkUI GutterOption x?: Length |GridRowSizeOption, 新增
ArkUI FormDimension Dimension_2_1 新增
ArkUI HitTestMode None 新增
ArkUI HitTestMode Transparent 新增
ArkUI HitTestMode Block 新增
ArkUI HitTestMode Default 新增
ArkUI CopyOptions LocalDevice = 2 新增
ArkUI CopyOptions InApp = 1 新增
ArkUI CopyOptions None = 0 新增
ArkUI Color Transparent 新增
ArkUI CommonMethod focusOnTouch(value: boolean): T; 新增
ArkUI CommonMethod groupDefaultFocus(value: boolean): T; 新增
ArkUI CommonMethod defaultFocus(value: boolean): T; 新增
ArkUI CommonMethod hitTestBehavior(value: HitTestMode): T; 新增
ArkUI CustomPopupOptions arrowOffset?: Length; 新增
ArkUI PopupOptions arrowOffset?: Length; 新增
ArkUI focusControl function requestFocus(value: string): boolean; 新增
basic BusinessError data?: T; 新增
canvaspattern CanvasPattern setTransform(transform?: Matrix2D): void; 新增
canvaspattern Matrix2D scaleX?: number; 新增
canvaspattern Matrix2D rotateY?: number; 新增
canvaspattern Matrix2D rotateX?: number; 新增
canvaspattern Matrix2D scaleY?: number; 新增
canvaspattern Matrix2D translateX?: number; 新增
canvaspattern Matrix2D translateY?: number; 新增
canvaspattern Matrix2D identity(): Matrix2D; 新增
canvaspattern Matrix2D invert(): Matrix2D; 新增
canvaspattern Matrix2D multiply(other?: Matrix2D): Matrix2D; 新增
canvaspattern Matrix2D rotate(rx?: number, ry?: number): Matrix2D; 新增
canvaspattern Matrix2D translate(tx?: number, ty?: number): Matrix2D; 新增
canvaspattern Matrix2D scale(sx?: number, sy?: number): Matrix2D; 新增
canvaspattern Matrix2D constructor(); 新增
ohos.curves curves function responsiveSpringMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve; 新增
ohos.curves curves function springMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve; 新增
ArkUI CanvasPattern setTransform(transform?: Matrix2D): void; 删除
ArkUI GetterOption y?: Length |GridRowSizeOption 删除
ArkUI GetterOption x?: Length |GridRowSizeOption, 删除
ArkUI CopyOption CrossDevice = 2 删除
ArkUI CopyOption LocalDevice = 1 删除
ArkUI CopyOption InApp = 0 删除
ArkUI WebAttribute textZoomAtio(textZoomAtio: number): WebAttribute; 废弃
ArkUI CommonMethod touchable(value: boolean): T; 废弃
system.app App static requestFullWindow(options?: RequestFullWindowOptions): void; 废弃

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙元能力子系统JS API变更

harmony 鸿蒙无障碍子系统JS API变更

harmony 鸿蒙帐号子系统JS API变更

harmony 鸿蒙电源服务子系统JS API变更

harmony 鸿蒙包管理子系统JS API变更

harmony 鸿蒙基础通信子系统JS API变更

harmony 鸿蒙公共基础库子系统JS API变更

harmony 鸿蒙DFX子系统JS API变更

harmony 鸿蒙分布式数据管理子系统JS API变更

0  赞