• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Globalization Subsystem
2
3The table below lists the APIs changes of the globalization subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| DeviceSettingsManager | DeviceSettingsManager | setDateTime(admin: Want, time: number, callback: AsyncCallback\<void>): void;<br>setDateTime(admin: Want, time: number): Promise\<void>; | Added|
10| ohos.enterpriseDeviceManager | enterpriseDeviceManager | getDeviceSettingsManager(callback: AsyncCallback\<DeviceSettingsManager>): void;<br>getDeviceSettingsManager(): Promise\<DeviceSettingsManager>; | Added|
11| ohos.enterpriseDeviceManager | enterpriseDeviceManager | isSuperAdmin(bundleName: String, callback: AsyncCallback\<boolean>): void;<br>isSuperAdmin(bundleName: String): Promise\<boolean>; | Added|
12| ohos.enterpriseDeviceManager | enterpriseDeviceManager | setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo, callback: AsyncCallback\<boolean>): void;<br>setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo): Promise\<boolean>; | Added|
13| ohos.enterpriseDeviceManager | enterpriseDeviceManager | getEnterpriseInfo(admin: Want, callback: AsyncCallback\<EnterpriseInfo>): void;<br>getEnterpriseInfo(admin: Want): Promise\<EnterpriseInfo>; | Added|
14| ohos.enterpriseDeviceManager | enterpriseDeviceManager | isAdminAppActive(admin: Want, callback: AsyncCallback\<boolean>): void;<br>isAdminAppActive(admin: Want): Promise\<boolean>; | Added|
15| ohos.enterpriseDeviceManager | enterpriseDeviceManager | deactivateSuperAdmin(bundleName: String, callback: AsyncCallback\<boolean>): void;<br>deactivateSuperAdmin(bundleName: String): Promise\<boolean>; | Added|
16| ohos.enterpriseDeviceManager | enterpriseDeviceManager | deactivateAdmin(admin: Want, callback: AsyncCallback\<boolean>): void;<br>deactivateAdmin(admin: Want): Promise\<boolean>; | Added|
17| ohos.enterpriseDeviceManager | enterpriseDeviceManager | activateAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType): Promise\<boolean>; | Added|
18| ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_SUPER = 0x01 | Added|
19| ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_NORMAL = 0x00 | Added|
20| ohos.enterpriseDeviceManager | EnterpriseInfo | description: string; | Added|
21| ohos.enterpriseDeviceManager | EnterpriseInfo | name: string; | Added|
22| ohos.i18n | i18n | getAppPreferredLanguage(): string; | Added|
23| ohos.resourceManager | ResourceManager | getNumberByName(resName: string): number; | Added|
24| ohos.resourceManager | ResourceManager | getNumber(resId: number): number; | Added|
25| ohos.resourceManager | ResourceManager | getBooleanByName(resName: string): boolean; | Added|
26| ohos.resourceManager | ResourceManager | getBoolean(resId: number): boolean; | Added|
27| ohos.resourceManager | ResourceManager | getStringByNameSync(resName: string): string; | Added|
28| ohos.resourceManager | ResourceManager | getStringSync(resId: number): string; | Added|
29| ohos.resourceManager | ResourceManager | getPluralStringByName(resName: string, num: number, callback: AsyncCallback\<string>): void;<br>getPluralStringByName(resName: string, num: number): Promise\<string>; | Added|
30| ohos.resourceManager | ResourceManager | getMediaBase64ByName(resName: string, callback: AsyncCallback\<string>): void;<br>getMediaBase64ByName(resName: string): Promise\<string>; | Added|
31| ohos.resourceManager | ResourceManager | getMediaByName(resName: string, callback: AsyncCallback\<Uint8Array>): void;<br>getMediaByName(resName: string): Promise\<Uint8Array>; | Added|
32| ohos.resourceManager | ResourceManager | getStringArrayByName(resName: string, callback: AsyncCallback\<Array\<string>>): void;<br>getStringArrayByName(resName: string): Promise\<Array\<string>>; | Added|
33| ohos.resourceManager | ResourceManager | getStringByName(resName: string, callback: AsyncCallback\<string>): void;<br>getStringByName(resName: string): Promise\<string>; | Added|
34