开源鸿蒙 JS API Changes of the ArkUI Development Framework

  • 2022-08-09
  • 浏览 (684)

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

你可能感兴趣的文章

开源鸿蒙 JS API Changes of the Ability Framework

开源鸿蒙 JS API Changes of the Power Management Subsystem

开源鸿蒙 JS API Changes of the Bundle Management Framework

开源鸿蒙 JS API Changes of the Communication Subsystem

开源鸿蒙 JS API Changes of the DFX Subsystem

开源鸿蒙 JS API Changes of the Distributed Data Management Subsystem

开源鸿蒙 JS API Changes of the Distributed Scheduler Subsystem

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

开源鸿蒙 JS API Changes of the File Management Subsystem

开源鸿蒙 JS API Changes of the Globalization Subsystem

0  赞