openharmony 鸿蒙 js-apidiff-arkui

2023-02-03 浏览 (726)

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

你可能感兴趣的鸿蒙文章

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

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