openharmony 鸿蒙 js-apidiff-global

2022-12-22 浏览 (682)

全球化子系统JS API变更

OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,全球化子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
rawFileDescriptorRawFileDescriptorlength: number;新增
rawFileDescriptorRawFileDescriptoroffset: number;新增
rawFileDescriptorRawFileDescriptorfd: number;新增
ohos.resourceManagerResourceManagerrelease();新增
ohos.resourceManagerResourceManagercloseRawFileDescriptor(path: string, callback: AsyncCallback<void>): void;
closeRawFileDescriptor(path: string): Promise<void>;
新增
ohos.resourceManagerResourceManagergetRawFileDescriptor(path: string, callback: AsyncCallback<RawFileDescriptor>): void;
getRawFileDescriptor(path: string): Promise<RawFileDescriptor>;
新增
ohos.resourceManagerResourceManagergetRawFile(path: string, callback: AsyncCallback<Uint8Array>): void;
getRawFile(path: string): Promise<Uint8Array>;
新增
ohos.resourceManagerresourceManagergetResourceManager(callback: AsyncCallback<ResourceManager>): void;
getResourceManager(bundleName: string, callback: AsyncCallback<ResourceManager>): void;
getResourceManager(): Promise<ResourceManager>;
getResourceManager(bundleName: string): Promise<ResourceManager>;
新增
ohos.intlRelativeTimeFormatresolvedOptions(): RelativeTimeFormatResolvedOptions;新增
ohos.intlRelativeTimeFormatformatToParts(value: number, unit: string): Array<object>;新增
ohos.intlRelativeTimeFormatformat(value: number, unit: string): string;新增
ohos.intlRelativeTimeFormatconstructor();新增
ohos.intlRelativeTimeFormatResolvedOptionsnumberingSystem: string;新增
ohos.intlRelativeTimeFormatResolvedOptionsnumeric: string;新增
ohos.intlRelativeTimeFormatResolvedOptionsstyle: string;新增
ohos.intlRelativeTimeFormatResolvedOptionslocale: string;新增
ohos.intlRelativeTimeFormatInputOptionsstyle: string;新增
ohos.intlRelativeTimeFormatInputOptionsnumeric: string;新增
ohos.intlRelativeTimeFormatInputOptionslocaleMatcher: string;新增
ohos.intlPluralRulesselect(n: number): string;新增
ohos.intlPluralRulesconstructor();新增
ohos.intlPluralRulesOptionsmaximumSignificantDigits: number;新增
ohos.intlPluralRulesOptionsminimumSignificantDigits: number;新增
ohos.intlPluralRulesOptionsmaximumFractionDigits: number;新增
ohos.intlPluralRulesOptionsminimumFractionDigits: number;新增
ohos.intlPluralRulesOptionsminimumIntegerDigits: number;新增
ohos.intlPluralRulesOptionstype: string;新增
ohos.intlPluralRulesOptionslocaleMatcher: string;新增
ohos.intlCollatorresolvedOptions(): CollatorOptions;新增
ohos.intlCollatorcompare(first: string, second: string): number;新增
ohos.intlCollatorconstructor();新增
ohos.intlCollatorOptionscaseFirst: string;新增
ohos.intlCollatorOptionsnumeric: boolean;新增
ohos.intlCollatorOptionscollation: string;新增
ohos.intlCollatorOptionsignorePunctuation: boolean;新增
ohos.intlCollatorOptionssensitivity: string;新增
ohos.intlCollatorOptionsusage: string;新增
ohos.intlCollatorOptionslocaleMatcher: string;新增
ohos.intlNumberOptionsunitUsage: string新增
ohos.intlLocaleOptionscaseFirst: string;新增
ohos.intlLocaleOptionsnumeric: boolean;新增
ohos.intlLocaleOptionsnumberingSystem: string;新增
ohos.intlLocaleOptionshourCycle: string;新增
ohos.intlLocaleOptionscollation: string;新增
ohos.intlLocaleOptionscalendar: string;新增
ohos.i18nTimeZonegetOffset(date?: number): number;新增
ohos.i18nTimeZonegetRawOffset(): number;新增
ohos.i18nTimeZonegetDisplayName(locale?: string, isDST?: boolean): string;新增
ohos.i18nTimeZonegetID(): string;新增
ohos.i18ni18ngetTimeZone(zoneID?: string): TimeZone;新增
ohos.i18ni18ngetFirstPreferredLanguage(): string;新增
ohos.i18ni18ngetPreferredLanguageList(): Array<string>;新增
ohos.i18ni18nremovePreferredLanguage(index: number): boolean;新增
ohos.i18ni18naddPreferredLanguage(language: string, index?: number): boolean;新增
ohos.i18ni18nset24HourClock(option: boolean): boolean;新增
ohos.i18ni18nis24HourClock(): boolean;新增
ohos.i18nCharactergetType(char: string): string;新增
ohos.i18nCharacterisUpperCase(char: string): boolean;新增
ohos.i18nCharacterisLowerCase(char: string): boolean;新增
ohos.i18nCharacterisLetter(char: string): boolean;新增
ohos.i18nCharacterisIdeograph(char: string): boolean;新增
ohos.i18nCharacterisRTL(char: string): boolean;新增
ohos.i18nCharacterisWhitespace(char: string): boolean;新增
ohos.i18nCharacterisSpaceChar(char: string): boolean;新增
ohos.i18nCharacterisDigit(char: string): boolean;新增
ohos.i18nIndexUtilgetIndex(text: string): string;新增
ohos.i18nIndexUtiladdLocale(locale: string): void;新增
ohos.i18nIndexUtilgetIndexList(): Array<string>;新增
ohos.i18ni18ngetInstance(locale?:string): IndexUtil;新增
ohos.i18nBreakIteratorisBoundary(offset: number): boolean;新增
ohos.i18nBreakIteratorgetLineBreakText(): string;新增
ohos.i18nBreakIteratorfollowing(offset: number): number;新增
ohos.i18nBreakIteratorsetLineBreakText(text: string): void;新增
ohos.i18nBreakIteratorprevious(): number;新增
ohos.i18nBreakIteratornext(index?: number): number;新增
ohos.i18nBreakIteratorlast(): number;新增
ohos.i18nBreakIteratorfirst(): number;新增
ohos.i18nBreakIteratorcurrent(): number;新增
ohos.i18ni18ngetLineInstance(locale: string): BreakIterator;新增
ohos.i18ni18nisRTL(locale: string): boolean;新增
ohos.i18nCalendarisWeekend(date?: Date): boolean;新增
ohos.i18nCalendargetDisplayName(locale: string): string;新增
ohos.i18nCalendarget(field: string): number;新增
ohos.i18nCalendarsetMinimalDaysInFirstWeek(value: number): void;新增
ohos.i18nCalendargetMinimalDaysInFirstWeek(): number;新增
ohos.i18nCalendarsetFirstDayOfWeek(value: number): void;新增
ohos.i18nCalendargetFirstDayOfWeek(): number;新增
ohos.i18nCalendargetTimeZone(): string;新增
ohos.i18nCalendarsetTimeZone(timezone: string): void;新增
ohos.i18nCalendarset(year: number, month: number, date:number, hour?: number, minute?: number, second?: number): void;新增
ohos.i18nCalendarsetTime(date: Date): void;
setTime(time: number): void;
新增
ohos.i18ni18ngetCalendar(locale: string, type?: string): Calendar;新增
ohos.i18nPhoneNumberFormatformat(number: string): string;新增
ohos.i18nPhoneNumberFormatisValidNumber(number: string): boolean;新增
ohos.i18nPhoneNumberFormatconstructor(country: string, options?: PhoneNumberFormatOptions);新增
ohos.i18nPhoneNumberFormatOptionstype: string;新增
ohos.i18nUnitInfomeasureSystem: string新增
ohos.i18nUnitInfounit: string新增
ohos.i18nUtilunitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string;新增

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

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

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

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

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

harmony 鸿蒙ArkUI子系统JS API变更

harmony 鸿蒙电源服务子系统JS API变更

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

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

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

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