提交 b6849e47 编写于 作者: Z zengyawen

update apidiff

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 664ff94d
# 无障碍子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,无障碍子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| AccessibilityExtensionContext | AccessibilityExtensionContext | injectGesture(gesturePath: GesturePath): Promise\<void>;<br>injectGesture(gesturePath: GesturePath, callback: AsyncCallback\<void>): void; | 新增 |
| ohos.accessibility.config | Config | off(callback?: Callback\<T>): void; | 新增 |
| ohos.accessibility.config | Config | on(callback: Callback\<T>): void; | 新增 |
| ohos.accessibility.config | Config | get(): Promise\<T>;<br>get(callback: AsyncCallback\<T>): void; | 新增 |
| ohos.accessibility.config | Config | set(value: T): Promise\<void>;<br>set(value: T, callback: AsyncCallback\<void>): void; | 新增 |
| ohos.accessibility.config | config | function off(type: 'enableAbilityListsStateChanged', callback?: Callback\<void>): void; | 新增 |
| ohos.accessibility.config | config | function on(type: 'enableAbilityListsStateChanged', callback: Callback\<void>): void; | 新增 |
| ohos.accessibility.config | config | function disableAbility(name: string): Promise\<void>;<br>function disableAbility(name: string, callback: AsyncCallback\<void>): void; | 新增 |
| ohos.accessibility.config | config | function enableAbility(name: string, capability: Array\<accessibility.Capability>): Promise\<void>;<br>function enableAbility(name: string, capability: Array\<accessibility.Capability>, callback: AsyncCallback\<void>): void; | 新增 |
| ohos.accessibility.config | config | var captionsStyle: Config\<accessibility.CaptionsStyle>; | 新增 |
| ohos.accessibility.config | config | var captions: Config\<boolean>; | 新增 |
| ohos.accessibility.config | config | var shortkeyTarget: Config\<string>; | 新增 |
| ohos.accessibility.config | config | var shortkey: Config\<boolean>; | 新增 |
| ohos.accessibility.config | config | var mouseAutoClick: Config\<number>; | 新增 |
| ohos.accessibility.config | config | var mouseKey: Config\<boolean>; | 新增 |
| ohos.accessibility.config | config | var brightnessDiscount: Config\<number>; | 新增 |
| ohos.accessibility.config | config | var animationOff: Config\<boolean>; | 新增 |
| ohos.accessibility.config | config | var contentTimeout: Config\<number>; | 新增 |
| ohos.accessibility.config | config | var daltonizationColorFilter: Config\<DaltonizationColorFilter>; | 新增 |
| ohos.accessibility.config | config | var invertColor: Config\<boolean>; | 新增 |
| ohos.accessibility.config | config | var highContrastText: Config\<boolean>; | 新增 |
| AccessibilityExtensionContext | AccessibilityExtensionContext | gestureInject(gesturePath: GesturePath, listener: Callback\<boolean>): Promise\<boolean>;<br>gestureInject(gesturePath: GesturePath, listener: Callback\<boolean>, callback: AsyncCallback\<boolean>): void; | 删除 |
| AccessibilityExtensionContext | AccessibilityExtensionContext | setEventTypeFilter(type: Array\<accessibility.EventType>): Promise\<boolean>;<br>setEventTypeFilter(type: Array\<accessibility.EventType>, callback: AsyncCallback\<boolean>): boolean; | 删除 |
\ No newline at end of file
# 帐号子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,帐号子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.account.appAccount | AppAccountManager | getAssociatedDataSync(name: string, key: string): string; | 新增 |
# 电源服务子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,电源服务子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| system.battery | Battery | static getStatus(options?: GetStatusOptions): void; | 废弃 |
| system.battery | GetStatusOptions | complete?: () => void; | 废弃 |
| system.battery | GetStatusOptions | fail?: (data: string, code: number) => void; | 废弃 |
| system.battery | GetStatusOptions | success?: (data: BatteryResponse) => void; | 废弃 |
| system.battery | BatteryResponse | level: number; | 废弃 |
| system.battery | BatteryResponse | charging: boolean; | 废弃 |
| system.brightness | Brightness | static setKeepScreenOn(options?: SetKeepScreenOnOptions): void; | 废弃 |
| system.brightness | Brightness | static setMode(options?: SetBrightnessModeOptions): void; | 废弃 |
| system.brightness | Brightness | static getMode(options?: GetBrightnessModeOptions): void; | 废弃 |
| system.brightness | Brightness | static setValue(options?: SetBrightnessOptions): void; | 废弃 |
| system.brightness | Brightness | static getValue(options?: GetBrightnessOptions): void; | 废弃 |
| system.brightness | SetKeepScreenOnOptions | complete?: () => void | 废弃 |
| system.brightness | SetKeepScreenOnOptions | fail?: (data: string, code: number) => void; | 废弃 |
| system.brightness | SetKeepScreenOnOptions | success?: () => void; | 废弃 |
| system.brightness | SetKeepScreenOnOptions | keepScreenOn: boolean; | 废弃 |
| system.brightness | SetBrightnessModeOptions | complete?: () => void | 废弃 |
| system.brightness | SetBrightnessModeOptions | fail?: (data: string, code: number) => void; | 废弃 |
| system.brightness | SetBrightnessModeOptions | success?: () => void; | 废弃 |
| system.brightness | SetBrightnessModeOptions | mode: number; | 废弃 |
| system.brightness | GetBrightnessModeOptions | complete?: () => void; | 废弃 |
| system.brightness | GetBrightnessModeOptions | fail?: (data: string, code: number) => void; | 废弃 |
| system.brightness | GetBrightnessModeOptions | success?: (data: BrightnessModeResponse) => void; | 废弃 |
| system.brightness | BrightnessModeResponse | mode: number; | 废弃 |
| system.brightness | SetBrightnessOptions | complete?: () => void | 废弃 |
| system.brightness | SetBrightnessOptions | fail?: (data: string, code: number) => void; | 废弃 |
| system.brightness | SetBrightnessOptions | success?: () => void; | 废弃 |
| system.brightness | SetBrightnessOptions | value: number; | 废弃 |
| system.brightness | GetBrightnessOptions | complete?: () => void; | 废弃 |
| system.brightness | GetBrightnessOptions | fail?: (data: string, code: number) => void; | 废弃 |
| system.brightness | GetBrightnessOptions | success?: (data: BrightnessResponse) => void; | 废弃 |
| system.brightness | BrightnessResponse | value: number; | 废弃 |
\ No newline at end of file
# 包管理子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,包管理子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| dispatchInfo | DispatchInfo | readonly version: string; | 新增 |
| ohos.bundle | bundle | function getBundleInfoSync(bundleName: string, bundleFlags: number, options: BundleOptions): BundleInfo;<br>function getBundleInfoSync(bundleName: string, bundleFlags: number): BundleInfo; | 新增 |
| ohos.bundle | bundle | function getApplicationInfoSync(bundleName: string, bundleFlags: number, userId: number) : ApplicationInfo;<br>function getApplicationInfoSync(bundleName: string, bundleFlags: number) : ApplicationInfo; | 新增 |
| ohos.bundle | ExtensionAbilityType | PREVIEW = 14 | 新增 |
| ohos.bundle | ExtensionAbilityType | THUMBNAIL = 13 | 新增 |
| dispatchInfo | DispatchInfo | readonly verison: string; | 删除 |
\ No newline at end of file
# 基础通信子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,基础通信子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.wifi | wifi | function off(type: "deviceConfigChange", callback?: Callback\<number>): void; | 新增 |
| ohos.wifi | wifi | function on(type: "deviceConfigChange", callback: Callback\<number>): void; | 新增 |
| ohos.wifi | wifi | function removeUntrustedConfig(config: WifiDeviceConfig): Promise\<boolean>;<br>function removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\<boolean>): void; | 废弃 |
| ohos.wifi | wifi | function addUntrustedConfig(config: WifiDeviceConfig): Promise\<boolean>;<br>function addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\<boolean>): void; | 废弃 |
\ No newline at end of file
# DFX子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,DFX子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.hiAppEvent | hiAppEvent | function clearData(): void; | 新增 |
| ohos.hiAppEvent | hiAppEvent | function removeWatcher(watcher: Watcher): void; | 新增 |
| ohos.hiAppEvent | hiAppEvent | function addWatcher(watcher: Watcher): AppEventPackageHolder; | 新增 |
| ohos.hiAppEvent | Watcher | onTrigger?: (curRow: number, curSize:number, holder:AppEventPackageHolder) => void; | 新增 |
| ohos.hiAppEvent | Watcher | appEventFilters?: AppEventFilter[]; | 新增 |
| ohos.hiAppEvent | Watcher | triggerCondition?: TriggerCondition; | 新增 |
| ohos.hiAppEvent | Watcher | name: string; | 新增 |
| ohos.hiAppEvent | AppEventFilter | eventTypes?: EventType[]; | 新增 |
| ohos.hiAppEvent | AppEventFilter | domain: string; | 新增 |
| ohos.hiAppEvent | TriggerCondition | timeOut?: number; | 新增 |
| ohos.hiAppEvent | TriggerCondition | size?: number; | 新增 |
| ohos.hiAppEvent | TriggerCondition | row?: number; | 新增 |
| ohos.hiAppEvent | AppEventPackageHolder | takeNext(): AppEventPackage; | 新增 |
| ohos.hiAppEvent | AppEventPackageHolder | setSize(size: number): void; | 新增 |
| ohos.hiAppEvent | AppEventPackageHolder | constructor(watcherName: string); | 新增 |
| ohos.hiAppEvent | AppEventPackage | data: string[]; | 新增 |
| ohos.hiAppEvent | AppEventPackage | size: number; | 新增 |
| ohos.hiAppEvent | AppEventPackage | row: number; | 新增 |
| ohos.hiAppEvent | AppEventPackage | packageId: number; | 新增 |
| ohos.hiAppEvent | AppEventInfo | params: object; | 新增 |
| ohos.hiAppEvent | AppEventInfo | eventType: EventType; | 新增 |
| ohos.hiAppEvent | AppEventInfo | name: string; | 新增 |
| ohos.hiAppEvent | AppEventInfo | domain: string; | 新增 |
| ohos.hiAppEvent | hiAppEvent | function write(eventName: string, eventType: EventType, keyValues: object): Promise\<void>;<br>function write(eventName: string, eventType: EventType, keyValues: object, callback: AsyncCallback\<void>): void;<br>function write(info: AppEventInfo): Promise\<void>;<br>function write(info: AppEventInfo, callback: AsyncCallback\<void>): void; | 废弃 |
\ No newline at end of file
# 分布式数据管理子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,分布式数据管理子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.data.distributedData | KVStore | deleteBackup(files:Array\<string>, callback: AsyncCallback\<Array\<[string, number]>>):void;<br>deleteBackup(files:Array\<string>): Promise\<Array\<[string, number]>>; | 新增 |
| ohos.data.distributedData | KVStore | restore(file:string, callback: AsyncCallback\<void>):void;<br>restore(file:string): Promise\<void>; | 新增 |
| ohos.data.distributedData | KVStore | backup(file:string, callback: AsyncCallback\<void>):void;<br>backup(file:string): Promise\<void>; | 新增 |
| ohos.data.rdb | StoreConfig | encrypt?: boolean; | 新增 |
| ohos.data.rdb | RdbStore | remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: Array\<string>, callback: AsyncCallback\<ResultSet>): void;<br>remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: Array\<string>): Promise\<ResultSet>; | 新增 |
| ohos.data.rdb | RdbStore | batchInsert(table: string, values: Array\<ValuesBucket>, callback: AsyncCallback\<number>): void;<br>batchInsert(table: string, values: Array\<ValuesBucket>): Promise\<number>; | 新增 |
| ohos.data.dataShare | DataShareHelper | getFileTypes(uri: string, mimeTypeFilter:string, callback: AsyncCallback\<Array\<string>>): void;<br>getFileTypes(uri: string, mimeTypeFilter: string): Promise\<Array\<string>>; | 删除 |
| ohos.data.dataShare | DataShareHelper | getType(uri: string, callback: AsyncCallback\<string>): void;<br>getType(uri: string): Promise\<string>; | 删除 |
| ohos.data.dataShare | DataShareHelper | openFile(uri: string, mode: string, callback: AsyncCallback\<number>): void;<br>openFile(uri: string, mode: string): Promise\<number>; | 删除 |
\ No newline at end of file
# 分布式硬件子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,分布式硬件子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.distributedHardware.deviceManager | DeviceManager | off(type: 'publishFail', callback?: Callback<{ publishId: number, reason: number }>): void; | 新增 |
| ohos.distributedHardware.deviceManager | DeviceManager | on(type: 'publishFail', callback: Callback<{ publishId: number, reason: number }>): void; | 新增 |
| ohos.distributedHardware.deviceManager | DeviceManager | off(type: 'publishSuccess', callback?: Callback<{ publishId: number }>): void; | 新增 |
| ohos.distributedHardware.deviceManager | DeviceManager | on(type: 'publishSuccess', callback: Callback<{ publishId: number }>): void; | 新增 |
| ohos.distributedHardware.deviceManager | DeviceManager | unPublishDeviceDiscovery(publishId: number): void; | 新增 |
| ohos.distributedHardware.deviceManager | DeviceManager | publishDeviceDiscovery(publishInfo: PublishInfo): void; | 新增 |
| ohos.distributedHardware.deviceManager | PublishInfo | ranging : boolean; | 新增 |
| ohos.distributedHardware.deviceManager | PublishInfo | freq: ExchangeFreq; | 新增 |
| ohos.distributedHardware.deviceManager | PublishInfo | mode: DiscoverMode; | 新增 |
| ohos.distributedHardware.deviceManager | PublishInfo | publishId: number; | 新增 |
| ohos.distributedHardware.deviceManager | DeviceInfo | range: number; | 新增 |
\ No newline at end of file
# 事件通知子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,事件通知子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.commonEvent | Support | COMMON_EVENT_QUICK_FIX_APPLY_RESULT = "usual.event.QUICK_FIX_APPLY_RESULT" | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_USB_PORT_CHANGED = "usual.event.hardware.usb.action.USB_PORT_CHANGED" | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_USB_STATE = "usual.event.hardware.usb.action.USB_STATE" | 新增 |
| ohos.commonEvent | Support | COMMON_EVENT_PACKAGE_CACHE_CLEARED = "usual.event.PACKAGE_CACHE_CLEARED" | 新增 |
| ohos.notification | RemoveReason | CANCEL_REASON_REMOVE = 2 | 新增 |
| ohos.notification | RemoveReason | CLICK_REASON_REMOVE = 1 | 新增 |
| ohos.notification | notification | function getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback\<boolean>): void;<br>function getSyncNotificationEnabledWithoutApp(userId: number): Promise\<boolean>; | 新增 |
| ohos.notification | notification | function setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean, callback: AsyncCallback\<void>): void;<br>function setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean): Promise\<void>; | 新增 |
| ohos.notification | notification | function getSyncNotificationEnabledForUninstallApp(userId: number, callback: AsyncCallback\<boolean>): void;<br>function getSyncNotificationEnabledForUninstallApp(userId: number): Promise\<boolean>; | 删除 |
| ohos.notification | notification | function setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean, callback: AsyncCallback\<void>): void;<br>function setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean): Promise\<void>; | 删除 |
\ No newline at end of file
# 全球化子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,全球化子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.i18n | Unicode | static getType(char: string): string; | 新增 |
| ohos.i18n | Unicode | static isUpperCase(char: string): boolean; | 新增 |
| ohos.i18n | Unicode | static isLowerCase(char: string): boolean; | 新增 |
| ohos.i18n | Unicode | static isLetter(char: string): boolean; | 新增 |
| ohos.i18n | Unicode | static isIdeograph(char: string): boolean; | 新增 |
| ohos.i18n | Unicode | static isRTL(char: string): boolean; | 新增 |
| ohos.i18n | Unicode | static isWhitespace(char: string): boolean; | 新增 |
| ohos.i18n | Unicode | static isSpaceChar(char: string): boolean; | 新增 |
| ohos.i18n | Unicode | static isDigit(char: string): boolean; | 新增 |
| ohos.i18n | I18NUtil | static getDateOrder(locale: string): string; | 新增 |
| ohos.i18n | I18NUtil | static unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string; | 新增 |
| ohos.i18n | Util | getDateOrder(locale: string): string; | 删除 |
| ohos.i18n | Character | getType(char: string): string; | 废弃 |
| ohos.i18n | Character | isUpperCase(char: string): boolean; | 废弃 |
| ohos.i18n | Character | isLowerCase(char: string): boolean; | 废弃 |
| ohos.i18n | Character | isLetter(char: string): boolean; | 废弃 |
| ohos.i18n | Character | isIdeograph(char: string): boolean; | 废弃 |
| ohos.i18n | Character | isRTL(char: string): boolean; | 废弃 |
| ohos.i18n | Character | isWhitespace(char: string): boolean; | 废弃 |
| ohos.i18n | Character | isSpaceChar(char: string): boolean; | 废弃 |
| ohos.i18n | Character | isDigit(char: string): boolean; | 废弃 |
| ohos.i18n | Util | unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string; | 废弃 |
# 图形图像子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,图形图像子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.graphics.colorSpaceManager | colorSpaceManager | function create(colorSpaceName: ColorSpace): ColorSpaceManager;<br>function create(primaries: ColorSpacePrimaries, gamma: number): ColorSpaceManager; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpaceManager | getGamma(): number; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpaceManager | getWhitePoint(): Array\<number>; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpaceManager | getColorSpaceName(): ColorSpace; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | whitePointY: number; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | whitePointX: number; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | blueY: number; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | blueX: number; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | greenY: number; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | greenX: number; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | redY: number; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | redX: number; | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpace | CUSTOM = 5 | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpace | SRGB = 4 | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpace | DISPLAY_P3 = 3 | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpace | DCI_P3 = 2 | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpace | ADOBE_RGB_1998 = 1 | 新增 |
| ohos.graphics.colorSpaceManager | ColorSpace | UNKNOWN = 0 | 新增 |
\ No newline at end of file
# 多模输入子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,多模输入子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | off(type: 'cooperation', callback?: AsyncCallback\<void>): void; | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | on(type: 'cooperation', callback: AsyncCallback\<{ deviceDescriptor: string, eventMsg: EventMsg }>): void; | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | getState(deviceDescriptor: string, callback: AsyncCallback\<{ state: boolean }>): void;<br>getState(deviceDescriptor: string): Promise\<{ state: boolean }>; | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | stop(callback: AsyncCallback\<void>): void;<br>stop(): Promise\<void>; | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | start(sinkDeviceDescriptor: string, srcInputDeviceId: number, callback: AsyncCallback\<void>): void;<br>start(sinkDeviceDescriptor: string, srcInputDeviceId: number): Promise\<void>; | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | enable(enable: boolean, callback: AsyncCallback\<void>): void;<br>enable(enable: boolean): Promise\<void>; | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_STATE_OFF = 501 | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_STATE_ON = 500 | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_INFO_FAIL = 202 | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_INFO_SUCCESS = 201 | 新增 |
| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_INFO_START = 200 | 新增 |
| ohos.multimodalInput.pointer | pointer | isPointerVisible(callback: AsyncCallback\<boolean>): void;<br>isPointerVisible(): Promise\<boolean>; | 新增 |
| ohos.multimodalInput.pointer | pointer | setPointerVisible(visible: boolean, callback: AsyncCallback\<void>): void;<br>setPointerVisible(visible: boolean): Promise\<void>; | 新增 |
| ohos.multimodalInput.pointer | pointer | getPointerStyle(windowId: number, callback: AsyncCallback\<PointerStyle>): void;<br>getPointerStyle(windowId: number): Promise\<PointerStyle>; | 新增 |
| ohos.multimodalInput.pointer | pointer | setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback\<void>): void;<br>setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise\<void>; | 新增 |
| ohos.multimodalInput.pointer | pointer | getPointerSpeed(callback: AsyncCallback\<number>): void;<br>getPointerSpeed(): Promise\<number>; | 新增 |
| ohos.multimodalInput.pointer | pointer | setPointerSpeed(speed: number, callback: AsyncCallback\<void>): void;<br>setPointerSpeed(speed: number): Promise\<void>; | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH_SOUTH_WEST_EAST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_SOUTH_WEST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_SOUTH_EAST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH_WEST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH_EAST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH_SOUTH | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_SOUTH | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_WEST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_EAST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | ZOOM_OUT | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | ZOOM_IN | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | TEXT_CURSOR | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | SCREENSHOT_CURSOR | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | SCREENSHOT_CHOOSE | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | RESIZE_UP_DOWN | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | RESIZE_LEFT_RIGHT | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | MOVE | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | HELP | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | HAND_POINTING | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | HAND_OPEN | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | HAND_GRABBING | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | COLOR_SUCKER | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | CURSOR_FORBID | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | CURSOR_COPY | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | CROSS | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | NORTH_WEST_SOUTH_EAST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | NORTH_EAST_SOUTH_WEST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | SOUTH_WEST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | SOUTH_EAST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | NORTH_WEST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | NORTH_EAST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | NORTH_SOUTH | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | WEST_EAST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | NORTH | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | SOUTH | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | WEST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | EAST | 新增 |
| ohos.multimodalInput.pointer | PointerStyle | DEFAULT | 新增 |
# 资源调度子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,资源调度子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.backgroundTaskManager | EfficiencyResourcesRequest | reason: string; | 新增 |
| ohos.backgroundTaskManager | EfficiencyResourcesRequest | isProcess?: boolean; | 新增 |
| ohos.backgroundTaskManager | EfficiencyResourcesRequest | isPersist?: boolean; | 新增 |
| ohos.backgroundTaskManager | EfficiencyResourcesRequest | timeOut: number; | 新增 |
| ohos.backgroundTaskManager | EfficiencyResourcesRequest | isApply: boolean; | 新增 |
| ohos.backgroundTaskManager | EfficiencyResourcesRequest | resourceTypes: number; | 新增 |
| ohos.backgroundTaskManager | ResourceType | AUDIO = 1 << 6 | 新增 |
| ohos.backgroundTaskManager | ResourceType | GPS = 1 << 5 | 新增 |
| ohos.backgroundTaskManager | ResourceType | BLUETOOTH = 1 << 4 | 新增 |
| ohos.backgroundTaskManager | ResourceType | WORK_SCHEDULER = 1 << 3 | 新增 |
| ohos.backgroundTaskManager | ResourceType | TIMER = 1 << 2 | 新增 |
| ohos.backgroundTaskManager | ResourceType | COMMON_EVENT = 1 << 1 | 新增 |
| ohos.backgroundTaskManager | ResourceType | CPU = 1 | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager | resetAllEfficiencyResources(): void; | 新增 |
| ohos.backgroundTaskManager | backgroundTaskManager | applyEfficiencyResources(request: EfficiencyResourcesRequest): boolean; | 新增 |
| ohos.workScheduler | WorkInfo | parameters?: {[key: string]: any}; | 新增 |
# 泛Sensor子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,泛Sensor子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.vibrator | VibratePreset | count: number; | 新增 |
| ohos.vibrator | VibratePreset | effectId: string; | 新增 |
| ohos.vibrator | VibratePreset | type: "preset"; | 新增 |
| ohos.vibrator | VibrateTime | duration: number; | 新增 |
| ohos.vibrator | VibrateTime | type: "time"; | 新增 |
| ohos.vibrator | VibrateAttribute | usage: Usage, | 新增 |
| ohos.vibrator | VibrateAttribute | id?: number, | 新增 |
# 分布式软总线子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,分布式软总线子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.rpc | RemoteObject | onRemoteRequestEx(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean \| Promise\<boolean>; | 新增 |
| ohos.rpc | RemoteObject | onRemoteRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean; | 废弃 |
# 电话服务子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,电话服务子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.telephony.data | data | getDefaultCellularDataSlotIdSync(): number; | 新增 |
| ohos.telephony.radio | ImsServiceType | TYPE_SMS | 新增 |
| ohos.telephony.radio | ImsServiceType | TYPE_UT | 新增 |
| ohos.telephony.radio | ImsServiceType | TYPE_VIDEO | 新增 |
| ohos.telephony.radio | ImsServiceType | TYPE_VOICE | 新增 |
| ohos.telephony.radio | ImsRegInfo | imsRegTech: ImsRegTech; | 新增 |
| ohos.telephony.radio | ImsRegInfo | imsRegState: ImsRegState; | 新增 |
| ohos.telephony.radio | ImsRegTech | REGISTRATION_TECH_NR | 新增 |
| ohos.telephony.radio | ImsRegTech | REGISTRATION_TECH_IWLAN | 新增 |
| ohos.telephony.radio | ImsRegTech | REGISTRATION_TECH_LTE | 新增 |
| ohos.telephony.radio | ImsRegTech | REGISTRATION_TECH_NONE | 新增 |
| ohos.telephony.radio | ImsRegState | IMS_REGISTERED | 新增 |
| ohos.telephony.radio | ImsRegState | IMS_UNREGISTERED | 新增 |
| ohos.telephony.radio | radio | off(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback?: Callback\<ImsRegInfo>): void; | 新增 |
| ohos.telephony.radio | radio | on(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback: Callback\<ImsRegInfo>): void; | 新增 |
| ohos.telephony.radio | radio | getImsRegInfo(slotId: number, imsType: ImsServiceType, callback: AsyncCallback\<ImsRegInfo>): void;<br>getImsRegInfo(slotId: number, imsType: ImsServiceType): Promise\<ImsRegInfo>; | 新增 |
| ohos.telephony.sim | sim | getOpName(slotId: number, callback: AsyncCallback\<string>): void;<br>getOpName(slotId: number): Promise\<string>; | 新增 |
| ohos.telephony.sim | sim | getOpKey(slotId: number, callback: AsyncCallback\<string>): void;<br>getOpKey(slotId: number): Promise\<string>; | 新增 |
\ No newline at end of file
# 测试框架子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,测试框架子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.uitest | PointerMatrix | setPoint(finger: number, step: number, point: Point):void; | 新增 |
| ohos.uitest | PointerMatrix | static create(fingers: number, steps: number):PointerMatrix; | 新增 |
| ohos.uitest | UiDriver | injectMultiPointerAction(pointers: PointerMatrix, speed?: number):Promise\<boolean>; | 新增 |
| ohos.uitest | UiDriver | fling(from: Point, to: Point, stepLen: number, speed: number):Promise\<void>; | 新增 |
| ohos.uitest | UiDriver | waitForIdle(idleTime: number, timeout: number):Promise\<boolean>; | 新增 |
| ohos.uitest | UiDriver | pressHome():Promise\<void>; | 新增 |
| ohos.uitest | UiDriver | wakeUpDisplay():Promise\<void>; | 新增 |
| ohos.uitest | UiDriver | getDisplayDensity():Promise\<Point>; | 新增 |
| ohos.uitest | UiDriver | getDisplaySize():Promise\<Point>; | 新增 |
| ohos.uitest | UiDriver | setDisplayRotationEnabled(enabled:boolean):Promise\<void>; | 新增 |
| ohos.uitest | UiDriver | getDisplayRotation():Promise\<DisplayRotation>; | 新增 |
| ohos.uitest | UiDriver | setDisplayRotation(rotation: DisplayRotation):Promise\<void>; | 新增 |
| ohos.uitest | DisplayRotation | ROTATION_270 | 新增 |
| ohos.uitest | DisplayRotation | ROTATION_180 | 新增 |
| ohos.uitest | DisplayRotation | ROTATION_90 | 新增 |
| ohos.uitest | DisplayRotation | ROTATION_0 | 新增 |
# 升级服务子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,升级服务子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.update | Order | INSTALL_AND_APPLY = 6 | 新增 |
| ohos.update | Order | DOWNLOAD_AND_INSTALL = 3 | 新增 |
| ohos.update | NetType | CELLULAR_AND_WIFI = 7 | 新增 |
| ohos.update | NetType | WIFI = 6 | 新增 |
| ohos.update | DescriptionFormat | SIMPLIFIED = 1 | 新增 |
| ohos.update | DescriptionFormat | STANDARD = 0 | 新增 |
| ohos.update | ComponentDescription | descriptionInfo: DescriptionInfo; | 新增 |
| ohos.update | ComponentDescription | componentId: string; | 新增 |
| ohos.update | DescriptionOptions | language: string; | 新增 |
| ohos.update | DescriptionOptions | format: DescriptionFormat; | 新增 |
| ohos.update | VersionComponent | componentId: string; | 新增 |
| ohos.update | Updater | getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: AsyncCallback<Array\<ComponentDescription>>): void;<br>getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise<Array\<ComponentDescription>>; | 新增 |
| ohos.update | Updater | getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions, callback: AsyncCallback<Array\<ComponentDescription>>): void;<br>getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions): Promise<Array\<ComponentDescription>>; | 新增 |
| ohos.update | BusinessSubType | PARAM = 2 | 删除 |
\ No newline at end of file
# Web子系统JS API变更
OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,Web子系统的API变更如下:
## 接口变更
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.web.webview | WebCookieManager | static deleteSessionCookie(): void; | 新增 |
| ohos.web.webview | WebCookieManager | static deleteEntireCookie(): void; | 新增 |
| ohos.web.webview | WebCookieManager | static existCookie(): boolean; | 新增 |
| ohos.web.webview | WebCookieManager | static putAcceptThirdPartyCookieEnabled(accept: boolean): void; | 新增 |
| ohos.web.webview | WebCookieManager | static isThirdPartyCookieAllowed(): boolean; | 新增 |
| ohos.web.webview | WebCookieManager | static putAcceptCookieEnabled(accept: boolean): void; | 新增 |
| ohos.web.webview | WebCookieManager | static isCookieAllowed(): boolean; | 新增 |
| ohos.web.webview | WebCookieManager | static saveCookieAsync(): Promise\<boolean>;<br>static saveCookieAsync(callback: AsyncCallback\<boolean>): void; | 新增 |
| ohos.web.webview | WebCookieManager | static saveCookieSync(): boolean; | 新增 |
| ohos.web.webview | WebCookieManager | static setCookie(url: string, value: string): boolean; | 新增 |
| ohos.web.webview | WebCookieManager | static getCookie(url: string): string; | 新增 |
| ohos.web.webview | GeolocationPermissions | static getStoredGeolocation() : Promise\<Array\<string>>;<br>static getStoredGeolocation(callback : AsyncCallback\<Array\<string>>): void; | 新增 |
| ohos.web.webview | GeolocationPermissions | static getAccessibleGeolocation(origin: string): Promise\<boolean>;<br>static getAccessibleGeolocation(origin: string, callback: AsyncCallback\<boolean>): void; | 新增 |
| ohos.web.webview | GeolocationPermissions | static deleteAllGeolocation(): void; | 新增 |
| ohos.web.webview | GeolocationPermissions | static deleteGeolocation(origin: string): void; | 新增 |
| ohos.web.webview | GeolocationPermissions | static allowGeolocation(origin: string): void; | 新增 |
| ohos.web.webview | WebAsyncController | storeWebArchive(baseName: string, autoName: boolean): Promise\<string>;<br>storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback\<string>): void; | 新增 |
| ohos.web.webview | WebAsyncController | constructor(controller: WebController); | 新增 |
| ohos.web.webview | WebDataBase | static saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void; | 新增 |
| ohos.web.webview | WebDataBase | static getHttpAuthCredentials(host: string, realm: string): Array\<string>; | 新增 |
| ohos.web.webview | WebDataBase | static deleteHttpAuthCredentials(): void; | 新增 |
| ohos.web.webview | WebDataBase | static existHttpAuthCredentials(): boolean; | 新增 |
| ohos.web.webview | WebStorage | static getOriginUsage(origin : string) : Promise\<number> ;<br>static getOriginUsage(origin : string, callback : AsyncCallback\<number>) : void; | 新增 |
| ohos.web.webview | WebStorage | static getOriginQuota(origin : string) : Promise\<number>;<br>static getOriginQuota(origin : string, callback : AsyncCallback\<number>) : void; | 新增 |
| ohos.web.webview | WebStorage | static getOrigins() : Promise\<Array\<WebStorageOrigin>>;<br>static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>) : void; | 新增 |
| ohos.web.webview | WebStorage | static deleteOrigin(origin : string): void; | 新增 |
| ohos.web.webview | WebStorage | static deleteAllData() : void; | 新增 |
| ohos.web.webview | WebStorageOrigin | quota: number; | 新增 |
| ohos.web.webview | WebStorageOrigin | usage: number; | 新增 |
| ohos.web.webview | WebStorageOrigin | origin: string; | 新增 |
| ohos.web | WebDataBase | static saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void; | 删除 |
| ohos.web | WebDataBase | static getHttpAuthCredentials(host: string, realm: string): Array\<string>; | 删除 |
| ohos.web | WebDataBase | static deleteHttpAuthCredentials(): void; | 删除 |
| ohos.web | WebDataBase | static existHttpAuthCredentials(): boolean; | 删除 |
| ohos.web | WebStorage | static getOriginUsage(origin : string) : Promise\<number> ;<br>static getOriginUsage(origin : string, callback : AsyncCallback\<number>) : void; | 删除 |
| ohos.web | WebStorage | static getOriginQuota(origin : string) : Promise\<number>;<br>static getOriginQuota(origin : string, callback : AsyncCallback\<number>) : void; | 删除 |
| ohos.web | WebStorage | static getOrigins() : Promise\<Array\<WebStorageOrigin>>;<br>static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>) : void; | 删除 |
| ohos.web | WebStorage | static deleteOrigin(origin : string): void; | 删除 |
| ohos.web | WebStorage | static deleteAllData() : void; | 删除 |
| ohos.web | WebStorageOrigin | quota: number; | 删除 |
| ohos.web | WebStorageOrigin | usage: number; | 删除 |
| ohos.web | WebStorageOrigin | origin: string; | 删除 |
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册