openharmony 鸿蒙 native-apidiff-v2.2-beta2

2023-02-03 浏览 (657)

Native API Differences

This document describes the changes of APIs in OpenHarmony 2.2 Beta2 over OpenHarmony 2.0 Canary.

Mini System API Changes

ModuleAPIChange TypeChange Type
global_i18n_litestatic LocaleInfo LocaleInfo ::ForLanguageTag(const char *languageTag, I18nStatus &status);AddedAPI added.
global_i18n_liteconst char LocaleInfo ::*GetExtension(const char *key);AddedAPI added.
global_i18n_liteWeekInfo::WeekInfo(const LocaleInfo &localeInfo, I18nStatus &status);AddedAPI added.
global_i18n_liteuint8_t WeekInfo::GetFirstDayOfWeek();AddedAPI added.
global_i18n_liteuint8_t WeekInfo::GetMinimalDaysInFirstWeek();AddedAPI added.
global_i18n_liteuint8_t WeekInfo::GetFirstDayOfWeekend();AddedAPI added.
global_i18n_liteuint8_t WeekInfo::GetLastDayOfWeekend();AddedAPI added.
global_i18n_liteint PluralFormat::GetPluralRuleIndex(double number, I18nStatus status);AddedAPI added.
powermgr_powermgr_liteconst RunningLock *CreateRunningLock(const char *name, RunningLockType type, RunningLockFlag flag);AddedAPI added.
powermgr_powermgr_litevoid DestroyRunningLock(const RunningLock *lock);AddedAPI added.
powermgr_powermgr_liteBOOL AcquireRunningLock(const RunningLock *lock);AddedAPI added.
powermgr_powermgr_liteBOOL ReleaseRunningLock(const RunningLock *lock);AddedAPI added.
powermgr_powermgr_liteBOOL IsRunningLockHolding(const RunningLock *lock);AddedAPI added.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JS API Differences

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