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

2022-08-09 浏览 (859)

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

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
commonfunction getContext(component?: Object): Object;Added
sidebarSideBarContainerAttributeautoHide(value: boolean): SideBarContainerAttribute;Added
state_managementLocalStorageclear(): boolean;Added
state_managementLocalStoragedelete(propName: string): boolean;Added
state_managementLocalStoragesetAndProp<T>(propName: string, defaultValue: T, propUser?: T, subscribersName?: string): T;Added
state_managementLocalStorageprop<T>(propName: string, propUser?: T, subscribersName?: string): T;Added
state_managementLocalStoragesetAndLink<T>(propName: string, defaultValue: T, linkUser?: T, subscribersName?: string): T;Added
state_managementLocalStoragelink<T>(propName: string, linkUser?: T, subscribersName?: string): T;Added
state_managementLocalStoragesetOrCreate<T>(propName: string, newValue?: T): boolean;Added
state_managementLocalStorageset<T>(propName: string, newValue: T): boolean;Added
state_managementLocalStorageget<T>(propName: string): T;Added
state_managementLocalStoragesize(): number;Added
state_managementLocalStoragekeys(): IterableIterator<string>;Added
state_managementLocalStoragehas(propName: string): boolean;Added
state_managementLocalStoragestatic GetShared(): LocalStorage;Added
state_managementLocalStorageconstructor(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

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/0fc46d402809470cb4a9f5b85358c914