harmony(鸿蒙)全球化子系统JS API变更

  • 2022-08-09
  • 浏览 (801)

全球化子系统JS API变更

OpenHarmony 3.2 Beta2版本相较于OpenHarmony 3.2 Beta1版本,全球化子系统的API变更如下:

接口变更

模块名 类名 方法/属性/枚举/常量 变更类型
ohos.EnterpriseAdminExtensionAbility EnterpriseAdminExtensionAbility onAdminDisabled(): void; 新增
ohos.EnterpriseAdminExtensionAbility EnterpriseAdminExtensionAbility onAdminEnabled(): void; 新增
ohos.enterpriseDeviceManager enterpriseDeviceManager isAdminEnabled(admin: Want, callback: AsyncCallback<boolean>): void;
isAdminEnabled(admin: Want, userId: number, callback: AsyncCallback<boolean>): void;
isAdminEnabled(admin: Want, userId?: number): Promise<boolean>;
新增
ohos.enterpriseDeviceManager enterpriseDeviceManager disableSuperAdmin(bundleName: String, callback: AsyncCallback<boolean>): void;
disableSuperAdmin(bundleName: String): Promise<boolean>;
新增
ohos.enterpriseDeviceManager enterpriseDeviceManager disableAdmin(admin: Want, callback: AsyncCallback<boolean>): void;
disableAdmin(admin: Want, userId: number, callback: AsyncCallback<boolean>): void;
disableAdmin(admin: Want, userId?: number): Promise<boolean>;
新增
ohos.enterpriseDeviceManager enterpriseDeviceManager enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback<boolean>): void;
enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number, callback: AsyncCallback<boolean>): void;
enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number): Promise<boolean>;
新增
ohos.i18n i18n getUsingLocalDigit(): boolean; 新增
ohos.i18n i18n setUsingLocalDigit(flag: boolean): boolean; 新增
ohos.i18n Transliterator transform(text: string): string; 新增
ohos.i18n Transliterator static getInstance(id: string): Transliterator; 新增
ohos.i18n Transliterator static getAvailableIDs(): string[]; 新增
ohos.i18n TimeZone static getTimezoneFromCity(cityID: string): TimeZone; 新增
ohos.i18n TimeZone static getCityDisplayName(cityID: string, locale: string): string; 新增
ohos.i18n TimeZone static getAvailableZoneCityIDs(): Array<string>; 新增
ohos.i18n TimeZone static getAvailableIDs(): Array<string>; 新增
ohos.i18n PhoneNumberFormat getLocationName(number: string, locale: string): string; 新增
ohos.i18n Util getDateOrder(locale: string): string; 新增
resource Resource id: number; 新增
resource Resource moduleName: string; 新增
resource Resource bundleName: string; 新增
ohos.enterpriseDeviceManager enterpriseDeviceManager isAdminAppActive(admin: Want, callback: AsyncCallback<boolean>): void;
isAdminAppActive(admin: Want): Promise<boolean>;
删除
ohos.enterpriseDeviceManager enterpriseDeviceManager deactivateSuperAdmin(bundleName: String, callback: AsyncCallback<boolean>): void;
deactivateSuperAdmin(bundleName: String): Promise<boolean>;
删除
ohos.enterpriseDeviceManager enterpriseDeviceManager deactivateAdmin(admin: Want, callback: AsyncCallback<boolean>): void;
deactivateAdmin(admin: Want): Promise<boolean>;
删除
ohos.enterpriseDeviceManager enterpriseDeviceManager activateAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback<boolean>): void;
activateAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType): Promise<boolean>;
删除

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)OpenHarmony启用应用沙箱机制-适配指导

harmony(鸿蒙)3.2 beta2相对3.2 beta1变更详细说明

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)无障碍子系统JS API变更

harmony(鸿蒙)帐号子系统JS API变更

harmony(鸿蒙)ArkUI子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

harmony(鸿蒙)基础通信子系统JS API变更

harmony(鸿蒙)公共基础库子系统JS API变更

harmony(鸿蒙)DFX子系统JS API变更

0  赞