harmony(鸿蒙)Native API Differences

2022-08-09 浏览 (649)

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/5459133db66849b3adf865a95a0da52a