• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Native API Differences
2This document describes the changes of APIs in OpenHarmony 2.2 Beta2 over OpenHarmony 2.0 Canary.
3## Mini System API Changes
4
5| Module | API | Change Type | Change Type |
6|  --------  |  --------  |  --------  |  --------  |
7| global_i18n_lite                                   | static LocaleInfo LocaleInfo ::ForLanguageTag(const char *languageTag, I18nStatus &status); | Added                                      | API added.                                                    |
8| global_i18n_lite                                   | const char LocaleInfo ::*GetExtension(const char *key);      | Added                                      | API added.                                                    |
9| global_i18n_lite                                   | WeekInfo::WeekInfo(const LocaleInfo &localeInfo, I18nStatus &status); | Added                                      | API added.                                                    |
10| global_i18n_lite                                   | uint8_t WeekInfo::GetFirstDayOfWeek();                       | Added                                      | API added.                                                    |
11| global_i18n_lite                                   | uint8_t WeekInfo::GetMinimalDaysInFirstWeek();               | Added                                      | API added.                                                    |
12| global_i18n_lite                                   | uint8_t WeekInfo::GetFirstDayOfWeekend();                    | Added                                      | API added.                                                    |
13| global_i18n_lite                                   | uint8_t WeekInfo::GetLastDayOfWeekend();                     | Added                                      | API added.                                                    |
14| global_i18n_lite                                   | int PluralFormat::GetPluralRuleIndex(double number, I18nStatus status); | Added                                      | API added.                                                    |
15| powermgr_powermgr_lite                                   | const RunningLock *CreateRunningLock(const char *name, RunningLockType type, RunningLockFlag flag); | Added                                      | API added.                                                    |
16| powermgr_powermgr_lite                                   | void DestroyRunningLock(const RunningLock *lock); | Added                                      | API added.                                                    |
17| powermgr_powermgr_lite                                   | BOOL AcquireRunningLock(const RunningLock *lock); | Added                                      | API added.                                                    |
18| powermgr_powermgr_lite                                   | BOOL ReleaseRunningLock(const RunningLock *lock); | Added                                      | API added.                                                    |
19| powermgr_powermgr_lite                                   | BOOL IsRunningLockHolding(const RunningLock *lock); | Added                                      | API added.                                                    |
20