harmony 鸿蒙JS API Changes of the ArkUI Development Framework

  • 2023-02-03
  • 浏览 (576)

JS API Changes of the ArkUI Development Framework

The table below lists the APIs changes of the ArkUI development framework in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release.

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
common function getContext(component?: Object): Object; Added
sidebar SideBarContainerAttribute autoHide(value: boolean): SideBarContainerAttribute; Added
state_management LocalStorage clear(): boolean; Added
state_management LocalStorage delete(propName: string): boolean; Added
state_management LocalStorage setAndProp<T>(propName: string, defaultValue: T, propUser?: T, subscribersName?: string): T; Added
state_management LocalStorage prop<T>(propName: string, propUser?: T, subscribersName?: string): T; Added
state_management LocalStorage setAndLink<T>(propName: string, defaultValue: T, linkUser?: T, subscribersName?: string): T; Added
state_management LocalStorage link<T>(propName: string, linkUser?: T, subscribersName?: string): T; Added
state_management LocalStorage setOrCreate<T>(propName: string, newValue?: T): boolean; Added
state_management LocalStorage set<T>(propName: string, newValue: T): boolean; Added
state_management LocalStorage get<T>(propName: string): T; Added
state_management LocalStorage size(): number; Added
state_management LocalStorage keys(): IterableIterator<string>; Added
state_management LocalStorage has(propName: string): boolean; Added
state_management LocalStorage static GetShared(): LocalStorage; Added
state_management LocalStorage constructor(initializingProperties?: Object); Added

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙JS API Changes of the Ability Framework

harmony 鸿蒙JS API Changes of the Power Management Subsystem

harmony 鸿蒙JS API Changes of the Bundle Management Framework

harmony 鸿蒙JS API Changes of the Communication Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

harmony 鸿蒙JS API Changes of the Distributed Data Management Subsystem

harmony 鸿蒙JS API Changes of the Common Event and Notification Subsystem

harmony 鸿蒙JS API Changes of the File Management Subsystem

harmony 鸿蒙JS API Changes of the Globalization Subsystem

0  赞