diff --git a/en/release-notes/OpenHarmony-v3.2-beta1.md b/en/release-notes/OpenHarmony-v3.2-beta1.md index 09fa9a16d46d7816d7fc9c597939d71240a443e4..1bb4a6d10b041844ca4d097b4291df74a8e3188c 100644 --- a/en/release-notes/OpenHarmony-v3.2-beta1.md +++ b/en/release-notes/OpenHarmony-v3.2-beta1.md @@ -6,7 +6,7 @@ OpenHarmony 3.2 Beta1 provides the following enhancements over OpenHarmony 3.1 R **Enhanced basic capabilities for the mini system** -The inter-process communication (IPC) mechanism is normalized for LiteOS and Linux running on the mini system. Now both local and distributed IPC capabilities are available for distributed services and applications. +The inter-process communication (IPC) mechanism is normalized for LiteOS and Linux running on the mini system. **Enhanced basic capabilities for the standard system** @@ -51,8 +51,8 @@ Multiple sample apps, including GPU drawing, minesweeper game, and 2048 game, ar | -------- | -------- | -------- | | OpenHarmony | 3.2 Beta1 | NA | | SDK | Ohos_sdk_full 3.2.2.5 (API Version 9 Beta1) | NA | -| (Optional) HUAWEI DevEco Studio| 3.2 Beta1 for OpenHarmony | Recommended for developing OpenHarmony applications| -| (Optional) HUAWEI DevEco Device Tool| 3.2 Beta1 | Recommended for developing OpenHarmony devices| +| (Optional) HUAWEI DevEco Studio| 3.0 Beta3 for OpenHarmony | Recommended for developing OpenHarmony applications| +| (Optional) HUAWEI DevEco Device Tool| 3.0 Release | Recommended for developing OpenHarmony devices| ## Source Code Acquisition @@ -142,7 +142,7 @@ This version has the following updates to OpenHarmony 3.1 Release. | Subsystem| Standard System| Mini and Small Systems| | -------- | -------- | -------- | -| Common| ARM64 build is supported.| The same set of IPC APIs is provided for the mini, small, and standard systems.| +| Common| ARM64 build is supported.| The same set of IPC APIs is provided for the mini and small systems.| | Resource scheduling| Statistics on widget usage can be collected.
The following requirements are involved:
I531ST Deleting the usage records of a widget once it is uninstalled
I531SU Querying and obtaining widget usage records
I531SV Recording the widget usage count and usage duration| NA | | Multimodal input| Listening for hot swap events of the remote control, mouse, and keyboard is supported
The following requirements are involved:
I530U7 Third-party JSON version upgrade
I530UH Startup optimization
I530UU Tailoring the mouse cursor display
I530UL Non-touchable window
I530W5 Using JS APIs to listen for hot swap events of the remote control
I530W9 Using JS APIs to listen for hot swap events of the mouse
I530WB Using JS APIs to query extended information about the touchpad
I530W9 Using JS APIs to listen for hot swap events of the keyboard
I530UW Tailoring the configuration of combined keys| NA | | System service management| Group verification is supported.
The following requirements are involved:
I59XYB Adding group verification
I53NZQ Processing the installation status and version number of a remote application
I568AO Reporting the association between distributed components by DMS
I58ZSB Collecting OS type information| NA | diff --git a/en/release-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md b/en/release-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md index be13f4ac7984c6e15d3e82f617c50020f485bf90..574bb704a30a9c3acc68b8b9837e0c98dda250cc 100644 --- a/en/release-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md +++ b/en/release-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md @@ -4,67 +4,67 @@ This document describes the changes of APIs in OpenHarmony 2.2 Beta2 over OpenHa | Module | API | Change Type | Change Description | | -------- | -------- | -------- | -------- | - | Time, date, and digit module - Locale | constructor(locale: string, options?:options) | Added | - | - | Time, date, and digit module - Locale | toString(): string | Added | - | - | Time, date, and digit module - Locale | maximize(): Locale | Added | - | - | Time, date, and digit module - Locale | minimize(): Locale | Added | - | - | Time, date, and digit module - Locale | calendar | Added | - | - | Time, date, and digit module - Locale | caseFirst | Added | - | - | Time, date, and digit module - Locale | collation | Added | - | - | Time, date, and digit module - Locale | hourCycle | Added | - | - | Time, date, and digit module - Locale | numberingSystem | Added | - | - | Time, date, and digit module - Locale | numeric | Added | - | - | Time, date, and digit module - Locale | language | Added | - | - | Time, date, and digit module - Locale | script | Added | - | - | Time, date, and digit module - Locale | region | Added | - | - | Time, date, and digit module - Locale | baseName | Added | - | - | Time, date, and digit module - DateTimeFormat | constructor(locale: string, options?:options) | Added | - | - | Time, date, and digit module - DateTimeFormat | constructor(locale: string[], options?:options) | Added | - | - | Time, date, and digit module - DateTimeFormat | resolvedOptions(): DateTimeOptions | Added | - | - | Time, date, and digit module - DateTimeFormat | format(date: Date): string; | Added | - | - | Time, date, and digit module - DateTimeFormat | formatRange(fromDate: Date, toDate: Date): string; | Added | - | - | Time, date, and digit module - NumberFormat | constructor(locale: string, options?:options) | Added | - | - | Time, date, and digit module - NumberFormat | constructor(locale: string[], options?:options) | Added | - | - | Time, date, and digit module - NumberFormat | resolvedOptions(): NumberOptions | Added | - | - | Time, date, and digit module - NumberFormat | format(number: number): string; | Added | - | - | Time, date, and digit module - DateTimeOptions | locale | Added | - | - | Time, date, and digit module - DateTimeOptions | dateStyle | Added | - | - | Time, date, and digit module - DateTimeOptions | timeStyle | Added | - | - | Time, date, and digit module - DateTimeOptions | calendar | Added | - | - | Time, date, and digit module - DateTimeOptions | dayPeriod | Added | - | - | Time, date, and digit module - DateTimeOptions | numberingSystem | Added | - | - | Time, date, and digit module - DateTimeOptions | localeMatcher | Added | - | - | Time, date, and digit module - DateTimeOptions | timeZone | Added | - | - | Time, date, and digit module - DateTimeOptions | hour12 | Added | - | - | Time, date, and digit module - DateTimeOptions | hourCycle | Added | - | - | Time, date, and digit module - DateTimeOptions | formatMatcher | Added | - | - | Time, date, and digit module - DateTimeOptions | weekday | Added | - | - | Time, date, and digit module - DateTimeOptions | era | Added | - | - | Time, date, and digit module - DateTimeOptions | year | Added | - | - | Time, date, and digit module - DateTimeOptions | month | Added | - | - | Time, date, and digit module - DateTimeOptions | day | Added | - | - | Time, date, and digit module - DateTimeOptions | hour | Added | - | - | Time, date, and digit module - DateTimeOptions | minute | Added | - | - | Time, date, and digit module - DateTimeOptions | second | Added | - | - | Time, date, and digit module - DateTimeOptions | timeZoneName | Added | - | - | Time, date, and digit module - NumberOptions | locale | Added | - | - | Time, date, and digit module - NumberOptions | compactDisplay | Added | - | - | Time, date, and digit module - NumberOptions | currency | Added | - | - | Time, date, and digit module - NumberOptions | currencyDisplay | Added | - | - | Time, date, and digit module - NumberOptions | currencySign | Added | - | - | Time, date, and digit module - NumberOptions | localeMatcher | Added | - | - | Time, date, and digit module - NumberOptions | notation | Added | - | - | Time, date, and digit module - NumberOptions | numberingSystem | Added | - | - | Time, date, and digit module - NumberOptions | signDisplay | Added | - | - | Time, date, and digit module - NumberOptions | style | Added | - | - | Time, date, and digit module - NumberOptions | unit | Added | - | - | Time, date, and digit module - NumberOptions | unitDisplay | Added | - | - | Time, date, and digit module - NumberOptions | useGrouping | Added | - | - | Time, date, and digit module - NumberOptions | minimumIntegerDigits | Added | - | - | Time, date, and digit module - NumberOptions | minimumFractionDigits | Added | - | - | Time, date, and digit module - NumberOptions | maximumFractionDigits | Added | - | - | Time, date, and digit module - NumberOptions | minimumSignificantDigits | Added | - | - | Time, date, and digit module - NumberOptions | maximumSignificantDigits | Added | - | +| Time, date, and digit module - Locale | constructor(locale: string, options?:options) | Added | - | +| Time, date, and digit module - Locale | toString(): string | Added | - | +| Time, date, and digit module - Locale | maximize(): Locale | Added | - | +| Time, date, and digit module - Locale | minimize(): Locale | Added | - | +| Time, date, and digit module - Locale | calendar | Added | - | +| Time, date, and digit module - Locale | caseFirst | Added | - | +| Time, date, and digit module - Locale | collation | Added | - | +| Time, date, and digit module - Locale | hourCycle | Added | - | +| Time, date, and digit module - Locale | numberingSystem | Added | - | +| Time, date, and digit module - Locale | numeric | Added | - | +| Time, date, and digit module - Locale | language | Added | - | +| Time, date, and digit module - Locale | script | Added | - | +| Time, date, and digit module - Locale | region | Added | - | +| Time, date, and digit module - Locale | baseName | Added | - | +| Time, date, and digit module - DateTimeFormat | constructor(locale: string, options?:options) | Added | - | +| Time, date, and digit module - DateTimeFormat | constructor(locale: string[], options?:options) | Added | - | +| Time, date, and digit module - DateTimeFormat | resolvedOptions(): DateTimeOptions | Added | - | +| Time, date, and digit module - DateTimeFormat | format(date: Date): string; | Added | - | +| Time, date, and digit module - DateTimeFormat | formatRange(fromDate: Date, toDate: Date): string; | Added | - | +| Time, date, and digit module - NumberFormat | constructor(locale: string, options?:options) | Added | - | +| Time, date, and digit module - NumberFormat | constructor(locale: string[], options?:options) | Added | - | +| Time, date, and digit module - NumberFormat | resolvedOptions(): NumberOptions | Added | - | +| Time, date, and digit module - NumberFormat | format(number: number): string; | Added | - | +| Time, date, and digit module - DateTimeOptions | locale | Added | - | +| Time, date, and digit module - DateTimeOptions | dateStyle | Added | - | +| Time, date, and digit module - DateTimeOptions | timeStyle | Added | - | +| Time, date, and digit module - DateTimeOptions | calendar | Added | - | +| Time, date, and digit module - DateTimeOptions | dayPeriod | Added | - | +| Time, date, and digit module - DateTimeOptions | numberingSystem | Added | - | +| Time, date, and digit module - DateTimeOptions | localeMatcher | Added | - | +| Time, date, and digit module - DateTimeOptions | timeZone | Added | - | +| Time, date, and digit module - DateTimeOptions | hour12 | Added | - | +| Time, date, and digit module - DateTimeOptions | hourCycle | Added | - | +| Time, date, and digit module - DateTimeOptions | formatMatcher | Added | - | +| Time, date, and digit module - DateTimeOptions | weekday | Added | - | +| Time, date, and digit module - DateTimeOptions | era | Added | - | +| Time, date, and digit module - DateTimeOptions | year | Added | - | +| Time, date, and digit module - DateTimeOptions | month | Added | - | +| Time, date, and digit module - DateTimeOptions | day | Added | - | +| Time, date, and digit module - DateTimeOptions | hour | Added | - | +| Time, date, and digit module - DateTimeOptions | minute | Added | - | +| Time, date, and digit module - DateTimeOptions | second | Added | - | +| Time, date, and digit module - DateTimeOptions | timeZoneName | Added | - | +| Time, date, and digit module - NumberOptions | locale | Added | - | +| Time, date, and digit module - NumberOptions | compactDisplay | Added | - | +| Time, date, and digit module - NumberOptions | currency | Added | - | +| Time, date, and digit module - NumberOptions | currencyDisplay | Added | - | +| Time, date, and digit module - NumberOptions | currencySign | Added | - | +| Time, date, and digit module - NumberOptions | localeMatcher | Added | - | +| Time, date, and digit module - NumberOptions | notation | Added | - | +| Time, date, and digit module - NumberOptions | numberingSystem | Added | - | +| Time, date, and digit module - NumberOptions | signDisplay | Added | - | +| Time, date, and digit module - NumberOptions | style | Added | - | +| Time, date, and digit module - NumberOptions | unit | Added | - | +| Time, date, and digit module - NumberOptions | unitDisplay | Added | - | +| Time, date, and digit module - NumberOptions | useGrouping | Added | - | +| Time, date, and digit module - NumberOptions | minimumIntegerDigits | Added | - | +| Time, date, and digit module - NumberOptions | minimumFractionDigits | Added | - | +| Time, date, and digit module - NumberOptions | maximumFractionDigits | Added | - | +| Time, date, and digit module - NumberOptions | minimumSignificantDigits | Added | - | +| Time, date, and digit module - NumberOptions | maximumSignificantDigits | Added | - | |File storage - system.file|mkdir|Added|-| |File storage - system.file|rmdir|Added|-| |File storage - system.file|get|Added|-| @@ -140,20 +140,20 @@ This document describes the changes of APIs in OpenHarmony 2.2 Beta2 over OpenHa |Device management - DeviceManager|ExchangeMedium|Added|-| |Device management - DeviceManager|ExchangeFreq|Added|-| |Device management - DeviceManager|SubscribeCap|Added|-| -|Device management - DeviceManager|createDeviceManager(bundleName: string, callback: AsyncCallback): void|Added|-| +|Device management - DeviceManager|createDeviceManager(bundleName: string, callback: AsyncCallback\): void|Added|-| |Device management - DeviceManager|release(): void|Added|-| -|Device management - DeviceManager|getTrustedDeviceListSync(): Array|Added|-| +|Device management - DeviceManager|getTrustedDeviceListSync(): Array\|Added|-| |Device management - DeviceManager|startDeviceDiscovery(subscribeInfo: SubscribeInfo): void|Added|-| |Device management - DeviceManager|stopDeviceDiscovery(subscribeId: number): void|Added|-| |Device management - DeviceManager|authenticateDevice(deviceInfo: DeviceInfo): void|Added|-| -|Device management - DeviceManager|on(type: 'deviceStateChange', callback: Callback<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void|Added|-| -|Device management - DeviceManager|off(type: 'deviceStateChange', callback?: Callback<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void|Added|-| -|Device management - DeviceManager|on(type: 'deviceFound', callback: Callback<{ subscribeId: number, device: DeviceInfo }>): void|Added|-| -|Device management - DeviceManager|off(type: 'deviceFound', callback?: Callback<{ subscribeId: number, device: DeviceInfo }>): void|Added|-| -|Device management - DeviceManager|on(type: 'discoverFail', callback: Callback<{ subscribeId: number, reason: number }>): void|Added|-| -|Device management - DeviceManager|off(type: 'discoverFail', callback?: Callback<{ subscribeId: number, reason: number }>): void|Added|-| -|Device management - DeviceManager|on(type: 'authResult', callback: Callback<{ deviceId: string, status: number, reason: number }>): void|Added|-| -|Device management - DeviceManager|off(type: 'authResult', callback?: Callback<{ deviceId: string, status: number, reason: number }>): void|Added|-| +|Device management - DeviceManager|on(type: 'deviceStateChange', callback: Callback\<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void|Added|-| +|Device management - DeviceManager|off(type: 'deviceStateChange', callback?: Callback\<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void|Added|-| +|Device management - DeviceManager|on(type: 'deviceFound', callback: Callback\<{ subscribeId: number, device: DeviceInfo }>): void|Added|-| +|Device management - DeviceManager|off(type: 'deviceFound', callback?: Callback\<{ subscribeId: number, device: DeviceInfo }>): void|Added|-| +|Device management - DeviceManager|on(type: 'discoverFail', callback: Callback\<{ subscribeId: number, reason: number }>): void|Added|-| +|Device management - DeviceManager|off(type: 'discoverFail', callback?: Callback\<{ subscribeId: number, reason: number }>): void|Added|-| +|Device management - DeviceManager|on(type: 'authResult', callback: Callback\<{ deviceId: string, status: number, reason: number }>): void|Added|-| +|Device management - DeviceManager|off(type: 'authResult', callback?: Callback\<{ deviceId: string, status: number, reason: number }>): void|Added|-| |Device management - DeviceManager|on(type: 'serviceDie', callback: () => void): void|Added|-| |Device management - DeviceManager|off(type: 'serviceDie', callback?: () => void): void|Added|-| |Playback and recording|createAudioPlayer(): AudioPlayer|Added|-| @@ -171,7 +171,7 @@ This document describes the changes of APIs in OpenHarmony 2.2 Beta2 over OpenHa |Playback and recording|readonly duration: number|Added|-| |Playback and recording|readonly state: AudioState|Added|-| |Playback and recording|on(type: 'play' / 'pause' / 'stop' / 'reset' / 'dataLoad' / 'finish' / 'volumeChange', callback: () => void): void|Added|-| -|Playback and recording|on(type: 'timeUpdate', callback: Callback): void|Added|-| +|Playback and recording|on(type: 'timeUpdate', callback: Callback\): void|Added|-| |Playback and recording|on(type: 'error', callback: ErrorCallback): void|Added|-| |Audio management|getAudioManager(): AudioManager|Added|-| |Audio management|AudioVolumeType|Added|-| @@ -195,38 +195,38 @@ This document describes the changes of APIs in OpenHarmony 2.2 Beta2 over OpenHa |Audio management|RINGER_MODE_NORMAL |Added|-| |Audio management|RINGER_MODE_SILENT|Added|-| |Audio management|RINGER_MODE_VIBRATE |Added|-| -|Audio management|setVolume(audioType: AudioVolumeType, volume: number,callback: AsyncCallback): void|Added|-| -|Audio management|setVolume(audioType: AudioVolumeType, volume: number): Promise|Added|-| -|Audio management|getVolume(audioType: AudioVolumeType, callback: AsyncCallback): void|Added|-| -|Audio management|getVolume(audioType: AudioVolumeType): Promise|Added|-| -|Audio management|getMinVolume(audioType: AudioVolumeType, callback: AsyncCallback): void|Added|-| -|Audio management|getMinVolume(audioType: AudioVolumeType): Promise|Added|-| -|Audio management|getMaxVolume(audioType: AudioVolumeType, callback: AsyncCallback): void|Added|-| -|Audio management|getMaxVolume(audioType: AudioVolumeType): Promise|Added|-| -|Audio management|getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback): void|Added|-| -|Audio management|getDevices(deviceFlag: DeviceFlag): Promise|Added|-| -|Audio management|getRingerMode(callback: AsyncCallback): void|Added|-| -|Audio management|getRingerMode(): Promise|Added|-| -|Audio management|setRingerMode(mode: AudioRingMode, callback: AsyncCallback): void|Added|-| -|Audio management|setRingerMode(mode: AudioRingMode): Promise|Added|-| -|Audio management|isMute(volumeType: AudioVolumeType, callback: AsyncCallback): void|Added|-| -|Audio management|isMute(volumeType: AudioVolumeType): Promise|Added|-| -|Audio management|isActive(volumeType: AudioVolumeType, callback: AsyncCallback): void|Added|-| -|Audio management|isActive(volumeType: AudioVolumeType): Promise|Added|-| -|Audio management|isMicrophoneMute(callback: AsyncCallback): void|Added|-| -|Audio management|isMicrophoneMute(): Promise|Added|-| -|Audio management|mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback) : void|Added|-| -|Audio management|mute(volumeType: AudioVolumeType, mute: boolean): Promise|Added|-| -|Audio management|setMicrophoneMute(mute: boolean, callback: AsyncCallback): void|Added|-| -|Audio management|setMicrophoneMute(mute: boolean): Promise|Added|-| -|Audio management|isDeviceActive(deviceType: DeviceType, callback: AsyncCallback): void|Added|-| -|Audio management|isDeviceActive(deviceType: DeviceType): Promise|Added|-| -|Audio management|setDeviceActive(deviceType: DeviceType, active: boolean, callback: AsyncCallback): void|Added|-| -|Audio management|setDeviceActive(deviceType: DeviceType, active: boolean): Promise|Added|-| -|Audio management|getAudioParameter(key: string, callback: AsyncCallback): void|Added|-| -|Audio management|getAudioParameter(key: string): Promise|Added|-| -|Audio management|setAudioParameter(key: string, value: string, callback: AsyncCallback): void|Added|-| -|Audio management|setAudioParameter(key: string, value: string): Promise|Added|-| +|Audio management|setVolume(audioType: AudioVolumeType, volume: number,callback: AsyncCallback\): void|Added|-| +|Audio management|setVolume(audioType: AudioVolumeType, volume: number): Promise\|Added|-| +|Audio management|getVolume(audioType: AudioVolumeType, callback: AsyncCallback\): void|Added|-| +|Audio management|getVolume(audioType: AudioVolumeType): Promise\|Added|-| +|Audio management|getMinVolume(audioType: AudioVolumeType, callback: AsyncCallback\): void|Added|-| +|Audio management|getMinVolume(audioType: AudioVolumeType): Promise\|Added|-| +|Audio management|getMaxVolume(audioType: AudioVolumeType, callback: AsyncCallback\): void|Added|-| +|Audio management|getMaxVolume(audioType: AudioVolumeType): Promise\|Added|-| +|Audio management|getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback\): void|Added|-| +|Audio management|getDevices(deviceFlag: DeviceFlag): Promise\|Added|-| +|Audio management|getRingerMode(callback: AsyncCallback\): void|Added|-| +|Audio management|getRingerMode(): Promise\|Added|-| +|Audio management|setRingerMode(mode: AudioRingMode, callback: AsyncCallback\): void|Added|-| +|Audio management|setRingerMode(mode: AudioRingMode): Promise\|Added|-| +|Audio management|isMute(volumeType: AudioVolumeType, callback: AsyncCallback\): void|Added|-| +|Audio management|isMute(volumeType: AudioVolumeType): Promise\|Added|-| +|Audio management|isActive(volumeType: AudioVolumeType, callback: AsyncCallback\): void|Added|-| +|Audio management|isActive(volumeType: AudioVolumeType): Promise\|Added|-| +|Audio management|isMicrophoneMute(callback: AsyncCallback\): void|Added|-| +|Audio management|isMicrophoneMute(): Promise\|Added|-| +|Audio management|mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback\) : void|Added|-| +|Audio management|mute(volumeType: AudioVolumeType, mute: boolean): Promise\|Added|-| +|Audio management|setMicrophoneMute(mute: boolean, callback: AsyncCallback\): void|Added|-| +|Audio management|setMicrophoneMute(mute: boolean): Promise\|Added|-| +|Audio management|isDeviceActive(deviceType: DeviceType, callback: AsyncCallback\): void|Added|-| +|Audio management|isDeviceActive(deviceType: DeviceType): Promise\|Added|-| +|Audio management|setDeviceActive(deviceType: DeviceType, active: boolean, callback: AsyncCallback\): void|Added|-| +|Audio management|setDeviceActive(deviceType: DeviceType, active: boolean): Promise\|Added|-| +|Audio management|getAudioParameter(key: string, callback: AsyncCallback\): void|Added|-| +|Audio management|getAudioParameter(key: string): Promise\|Added|-| +|Audio management|setAudioParameter(key: string, value: string, callback: AsyncCallback\): void|Added|-| +|Audio management|setAudioParameter(key: string, value: string): Promise\|Added|-| |Audio management|AudioDeviceDescriptor|Added|-| |Audio management|readonly deviceRole: DeviceRole|Added|-| |Audio management|readonly deviceType: DeviceType|Added|-| diff --git a/en/release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md b/en/release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md index 4b64035ef3b00cdb20377b17c76247331cb240a5..81bc575186341a3043f4f91992714e6e80fdcbf6 100644 --- a/en/release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md +++ b/en/release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md @@ -2,624 +2,624 @@ This document describes the changes of APIs in OpenHarmony 3.0 LTS when compared with OpenHarmony 2.2 Beta2. ## Standard System API Changes -| Module| API| Change Type| Change Description| +| Module | API | Change Type | Change Description | | -------- | -------- | -------- | -------- | -|Multi-language Runtime-worker|postMessage(obj):void|Added|Used by the host thread to transfer data to the worker.| -|Multi-language Runtime-worker|postMessage(message: Object, options?: PostMessageOptions):void|Added|Used by the host thread to transfer the data control permission of the array buffer to the worker.| -|Multi-language Runtime-worker|terminate():void|Added|Used by the host thread to proactively terminate the worker.| -|Multi-language Runtime-worker|on(type: string, listener: EventListener): void|Added|Adds a callback for the worker.| -|Multi-language Runtime-worker|once(type: string, listener: EventListener): void|Added|Adds a one-shot callback for the worker.| -|Multi-language Runtime-worker|off(type: string, listener?: EventListener): void|Added|Deletes a callback added for the worker.| -|Multi-language Runtime-worker|addEventListener(type: string, listener: EventListener): void|Added|Adds a callback for the worker.| -|Multi-language Runtime-worker|removeEventListener(type: string, listener?: EventListener): void|Added|Deletes a callback added for the worker.| -|Multi-language Runtime-worker|removeAllListener(): void|Added|Deletes all callbacks added for the worker.| -|Multi-language Runtime-worker|dispatchEvent(event: Event): boolean|Added|Dispatches a specific event to the worker.| -|Multi-language Runtime-parentPort|postMessage(obj):void|Added|Used by the worker to transfer data to the host thread.| -|Multi-language Runtime-parentPort|postMessage(message: Object, options?: PostMessageOptions):void|Added|Used by the worker to transfer the data control permission of the array buffer to the host thread.| -|Multi-language Runtime-parentPort|close(): void|Added|Used by the worker to proactively terminate itself.| -|Multi-language Runtime-Util|printf(format: string, ...args: Object[]): string|Added|-| -|Multi-language Runtime-Util|getErrorString(errno: number): string|Added|-| -|Multi-language Runtime-Util|callbackWrapper(original: Function): (err: Object, value: Object) => void|Added|-| -|Multi-language Runtime-Util|promiseWrapper(original: (err: Object, value: Object) => void): Object|Added|-| -|Multi-language Runtime-Util|new TextDecoder([encoding[, options]])|Added|-| -|Multi-language Runtime-Util|decode([input[, options]]):string|Added|-| -|Multi-language Runtime-Util|new TextEncoder()|Added|-| -|Multi-language Runtime-Util|encode(input?: string): Uint8Array;|Added|-| -|Multi-language Runtime-Util|"encodeInto(input: string,dest: Uint8Array,): { read: number; written: number };"|Added|-| -|Multi-language Runtime-Util|readonly encoding: string;|Added|-| -|Multi-language Runtime-Util|readonly fatal: boolean;|Added|-| -|Multi-language Runtime-Util|readonly ignoreBOM = false;|Added|-| -|Multi-language Runtime-Util|readonly encoding = "utf-8";|Added|-| -|Multi-language Runtime-URL|new URL(url: string, base?: string/URL)|Added|-| -|Multi-language Runtime-URL|toString(): string;|Added|-| -|Multi-language Runtime-URL|toJSON(): string;|Added|-| -|Multi-language Runtime-URL|new URSearchParams()|Added|-| -|Multi-language Runtime-URL|new URSearchParams(string)|Added|-| -|Multi-language Runtime-URL|new URSearchParams(obj)|Added|-| -|Multi-language Runtime-URL|new URSearchParams(iterable)|Added|-| -|Multi-language Runtime-URL|append(name: string, value: string): void;|Added|-| -|Multi-language Runtime-URL|delete(name: string): void;|Added|-| -|Multi-language Runtime-URL|entries(): IterableIterator<[string, string]>;|Added|-| -|Multi-language Runtime-URL|forEach(callbackfn: (value: string, key: string, parent: this) => void, thisArg?: any,): void;|Added|-| -|Multi-language Runtime-URL|get(name: string): string / null;|Added|-| -|Multi-language Runtime-URL|getAll(name: string): string[];|Added|-| -|Multi-language Runtime-URL|has(name: string): boolean;|Added|-| -|Multi-language Runtime-URL|keys(): IterableIterator;|Added|-| -|Multi-language Runtime-URL|set(name: string, value: string): void;|Added|-| -|Multi-language Runtime-URL|sort():void;|Added|-| -|Multi-language Runtime-URL|toString():string|Added|-| -|Multi-language Runtime-URL|values(): IterableIterator;|Added|-| -|Multi-language Runtime-URL|URSearchParams[Symbol.iterator]()|Added|-| -|Multi-language Runtime-URL|hash: string;|Added|-| -|Multi-language Runtime-URL|host: string;|Added|-| -|Multi-language Runtime-URL|hostname: string;|Added|-| -|Multi-language Runtime-URL|href: string;|Added|-| -|Multi-language Runtime-URL|readonly origin: string;|Added|-| -|Multi-language Runtime-URL|password: string;|Added|-| -|Multi-language Runtime-URL|pathname: string;|Added|-| -|Multi-language Runtime-URL|port: string;|Added|-| -|Multi-language Runtime-URL|protocol: string;|Added|-| -|Multi-language Runtime-URL|search: string;|Added|-| -|Multi-language Runtime-URL|readonly searchParams: URLSearchParams;|Added|-| -|Multi-language Runtime-URL|username: string;|Added|-| -|Multi-language Runtime-ChildProcess|readonly pid: number;|Added|-| -|Multi-language Runtime-ChildProcess|readonly ppid: number;|Added|-| -|Multi-language Runtime-ChildProcess|readonly exitCode: number;|Added|-| -|Multi-language Runtime-ChildProcess|readonly killed: boolean;|Added|-| -|Multi-language Runtime-ChildProcess|wait(): Promise;|Added|-| -|Multi-language Runtime-ChildProcess|getOutput(): Promise;|Added|-| -|Multi-language Runtime-ChildProcess|getErrorOutput(): Promise;|Added|-| -|Multi-language Runtime-ChildProcess|close(): void;|Added|-| -|Multi-language Runtime-ChildProcess|kill(signal: number): void;|Added|-| -|Multi-language Runtime-process|runCmd(command: string,options?: { timeout : number, killSignal : number / string, maxBuffer : number }): ChildProcess;|Added|-| -|Multi-language Runtime-process|getPid(): number;|Added|-| -|Multi-language Runtime-process|getPpid(): number;|Added|-| -|Multi-language Runtime-process|abort(): void;|Added|-| -|Multi-language Runtime-process|on(type: string, listener: EventListener): void;|Added|-| -|Multi-language Runtime-process|exit(code?:number): void;|Added|-| -|Multi-language Runtime-process|cwd(): string;|Added|-| -|Multi-language Runtime-process|chdir(dir: string): void;|Added|-| -|Multi-language Runtime-process|getEgid(): number;|Added|-| -|Multi-language Runtime-process|getEuid(): number;|Added|-| -|Multi-language Runtime-process|getGid(): number|Added|-| -|Multi-language Runtime-process|getUid(): number;|Added|-| -|Multi-language Runtime-process|uptime(): number;|Added|-| -|Multi-language Runtime-process|getGroups(): number[];|Added|-| -|Multi-language Runtime-process|kill(signal?: number, pid?: number): boolean;|Added|-| -|Update Subsystem-Updater|checkNewVersion(): Promise;|Added| -| -|Update Subsystem-Updater|rebootAndCleanUserData(callback: AsyncCallback): void;|Added| -| -|Update Subsystem-Updater|rebootAndCleanCache(): Promise;|Added| -| -|Update Subsystem-Updater|function getUpdaterFromOther(device: string, updateType?: UpdateTypes): Updater;|Added| -| -|Update Subsystem-Updater|cancel(): void;|Added| -| -|Update Subsystem-Updater|upgrade(): void;|Added| -| -|Update Subsystem-Updater|off(eventType: 'downloadProgress', callback?: UpdateProgressCallback): void;|Added| -| -|Update Subsystem-Updater|getUpdatePolicy(callback: AsyncCallback): void;|Added| -| -|Update Subsystem-Updater|function getUpdaterForOther(device: string, updateType?: UpdateTypes): Updater;|Added| -| -|Update Subsystem-Updater|setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback): void;|Added| -| -|Update Subsystem-Updater|getNewVersionInfo(): Promise;|Added| -| -|Update Subsystem-Updater|function getUpdater(updateType?: UpdateTypes): Updater;|Added| -| -|Update Subsystem-Updater|applyNewVersion(callback: AsyncCallback): void;|Added| -| -|Update Subsystem-Updater|rebootAndCleanUserData(): Promise;|Added| -| -|Update Subsystem-Updater|off(eventType: 'verifyProgress', callback?: UpdateProgressCallback): void;|Added| -| -|Update Subsystem-Updater|on(eventType: 'upgradeProgress', callback: UpdateProgressCallback): void;|Added| -| -|Update Subsystem-Updater|checkNewVersion(callback: AsyncCallback): void;|Added| -| -|Update Subsystem-Updater|on(eventType: 'downloadProgress', callback: UpdateProgressCallback): void;|Added| -| -|Update Subsystem-Updater|getUpdatePolicy(): Promise;|Added| -| -|Update Subsystem-Updater|download(): void;|Added| -| -|Update Subsystem-Updater|off(eventType: 'upgradeProgress', callback?: UpdateProgressCallback): void;|Added| -| -|Update Subsystem-Updater|getNewVersionInfo(callback: AsyncCallback): void;|Added| -| -|Update Subsystem-Updater|on(eventType: 'verifyProgress', callback: UpdateProgressCallback): void;|Added| -| -|Update Subsystem-Updater|verifyUpdatePackage(upgradeFile: string, certsFile: string): void;|Added| -| -|Update Subsystem-Updater|setUpdatePolicy(policy: UpdatePolicy): Promise;|Added| -| -|Update Subsystem-Updater|rebootAndCleanCache(callback: AsyncCallback): void;|Added| -| -|Update Subsystem-Updater|applyNewVersion(): Promise;|Added| -| -|Globalization Subsystem-I18n|getSystemLanguages(): Array;|Added| -| -|Globalization Subsystem-I18n|getSystemCountries(language: string): Array;|Added| -| -|Globalization Subsystem-I18n|isSuggested(language: string, region?: string): boolean;|Added| -| -|Globalization Subsystem-I18n|getSystemLanguage(): string;|Added| -| -|Globalization Subsystem-I18n|setSystemLanguage(language: string);|Added| -| -|Globalization Subsystem-I18n|getSystemRegion(): string;|Added| -| -|Globalization Subsystem-I18n|setSystemRegion(region: string);|Added| -| -|Globalization Subsystem-I18n|"getDisplayCountry(locale: string, displayLocale: string,sentenceCase?: boolean): string;"|Added| -| -|Globalization Subsystem-I18n|getSystemLocale(): string;|Added| -| -|Globalization Subsystem-I18n|setSystemLocale(locale: string);|Added| -| -|Globalization Subsystem-I18n|"getDisplayLanguage(locale: string, displayLocale: string,sentenceCase?: boolean): string;"|Added| -| -|Telephony Subsystem-radio|getNetworkState(callback: AsyncCallback): void;getNetworkState(slotId: number, callback: AsyncCallback): void;getNetworkState(slotId?: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimAccountInfo(slotId: number, callback: AsyncCallback): void;getSimAccountInfo(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getDefaultVoiceSlotId(callback: AsyncCallback): void;getDefaultVoiceSlotId(): Promise;|Added| -| -|Telephony Subsystem-sim|getSimSpn(slotId: number, callback: AsyncCallback): void;getSimSpn(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getISOCountryCodeForSim(slotId: number, callback: AsyncCallback): void;getISOCountryCodeForSim(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimIccId(slotId: number, callback: AsyncCallback): void;getSimIccId(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimGid1(slotId: number, callback: AsyncCallback): void;getSimGid1(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getISOCountryCodeForSim(slotId: number, callback: AsyncCallback): void;getISOCountryCodeForSim(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimOperatorNumeric(slotId: number, callback: AsyncCallback): void;getSimOperatorNumeric(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimSpn(slotId: number, callback: AsyncCallback): void;getSimSpn(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimIccId(slotId: number, callback: AsyncCallback): void;getSimIccId(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getIMSI(slotId: number, callback: AsyncCallback): void;getIMSI(slotId: number): Promise;|Added| -| -|Telephony Subsystem-call|combineConference(callId: number, callback: AsyncCallback): void;combineConference(callId: number): Promise;|Added| -| -|Telephony Subsystem-call|startDTMF(callId: number, character: string, callback: AsyncCallback): void;startDTMF(callId: number, character: string): Promise;|Added| -| -|Telephony Subsystem-call|stopDTMF(callId: number, callback: AsyncCallback): void;stopDTMF(callId: number): Promise;|Added| -| -|Telephony Subsystem-sim|setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback): void;setDefaultVoiceSlotId(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|unlockPin(slotId: number, pin: string, callback: AsyncCallback): void;unlockPin(slotId: number, pin: string): Promise;|Added| -| -|Telephony Subsystem-sim|alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback): void;alterPin(slotId: number, newPin: string, oldPin: string): Promise;|Added| -| -|Telephony Subsystem-sim|setLockState(slotId: number, pin: string, enable: number, callback: AsyncCallback): void;setLockState(slotId: number, pin: string, enable: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimState(slotId: number, callback: AsyncCallback): void;getSimState(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimState(slotId: number, callback: AsyncCallback): void;getSimState(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimState(slotId: number, callback: AsyncCallback): void;getSimState(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sim|getSimState(slotId: number, callback: AsyncCallback): void;getSimState(slotId: number): Promise;|Added| -| -|Telephony Subsystem-call|isEmergencyPhoneNumber(phoneNumber: string, callback: AsyncCallback): void;isEmergencyPhoneNumber(phoneNumber: string, options: EmergencyNumberOptions, callback: AsyncCallback): void;isEmergencyPhoneNumber(phoneNumber: string, options?: EmergencyNumberOptions): Promise;|Added| -| -|Telephony Subsystem-sms|createMessage(pdu: Array, specification: string, callback: AsyncCallback): void;createMessage(pdu: Array, specification: string): Promise;|Added| -| -|Telephony Subsystem-call|hasCall(callback: AsyncCallback): void;hasCall(): Promise;|Added| -| -|Telephony Subsystem-sms|sendMessage(options: SendMessageOptions): void;|Added| -| -|Telephony Subsystem-call|dial(phoneNumber: string, callback: AsyncCallback): void;dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback): void;dial(phoneNumber: string, options?: DialOptions): Promise;|Added| -| -|Telephony Subsystem-call|interface DialOptions {extras?: boolean; }|Added| -| -|Telephony Subsystem-sms|sendMessage(options: SendMessageOptions): void;|Added| -| -|Telephony Subsystem-sms|getDefaultSmsSlotId(callback: AsyncCallback): void;getDefaultSmsSlotId(): Promise;|Added| -| -|Telephony Subsystem-call|formatPhoneNumber(phoneNumber: string, callback: AsyncCallback): void;formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback): void;formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise;|Added| -| -|Telephony Subsystem-call|formatPhoneNumber(phoneNumber: string, callback: AsyncCallback): void;formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback): void;formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise;|Added| -| -|Telephony Subsystem-call|formatPhoneNumberToE164(phoneNumber: string, countryCode: string, callback: AsyncCallback): void;formatPhoneNumberToE164(phoneNumber: string, countryCode: string): Promise;|Added| -| -|Telephony Subsystem-sms|setDefaultSmsSlotId(slotId: number, callback: AsyncCallback): void;setDefaultSmsSlotId(slotId: number): Promise;|Added| -| -|Telephony Subsystem-call|getCallState(callback: AsyncCallback): void;getCallState(): Promise;|Added| -| -|Telephony Subsystem-sms|setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback): void;setSmscAddr(slotId: number, smscAddr: string): Promise;|Added| -| -|Telephony Subsystem-sms|getSmscAddr(slotId: number, callback: AsyncCallback): void;getSmscAddr(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sms|addSimMessage(options: SimMessageOptions, callback: AsyncCallback): void;addSimMessage(options: SimMessageOptions): Promise;|Added| -| -|Telephony Subsystem-sms|delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback): void;delSimMessage(slotId: number, msgIndex: number): Promise;|Added| -| -|Telephony Subsystem-radio|getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback): void;getISOCountryCodeForNetwork(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sms|updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback): void;updateSimMessage(options: UpdateSimMessageOptions): Promise;|Added| -| -|Telephony Subsystem-radio|getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback): void;getISOCountryCodeForNetwork(slotId: number): Promise;|Added| -| -|Telephony Subsystem-sms|getAllSimMessages(slotId: number, callback: AsyncCallback>): void;getAllSimMessages(slotId: number): Promise>;|Added| -| -|Telephony Subsystem-call|isInEmergencyCall(callback: AsyncCallback): void;isInEmergencyCall(): Promise;|Added| -| -|Telephony Subsystem-sms|setCBConfig(options: CBConfigOptions, callback: AsyncCallback): void;setCBConfig(options: CBConfigOptions): Promise;|Added| -| -|Telephony Subsystem-call|answer(callId: number, callback: AsyncCallback): void;answer(callId: number): Promise;|Added| -| -|Telephony Subsystem-call|hangup(callId: number, callback: AsyncCallback): void;hangup(callId: number): Promise;|Added| -| -|Telephony Subsystem-call|reject(callId: number, callback: AsyncCallback): void;reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback): void;reject(callId: number, options?: RejectMessageOptions): Promise;|Added| -| -|Telephony Subsystem-call|holdCall(callId: number, callback: AsyncCallback): void;holdCall(callId: number): Promise;|Added| -| -|Telephony Subsystem-call|unHoldCall(callId: number, callback: AsyncCallback): void;unHoldCall(callId: number): Promise;|Added| -| -|Telephony Subsystem-call|switchCall(callId: number, callback: AsyncCallback): void;switchCall(callId: number): Promise;|Added| -| -|Telephony Subsystem-radio|setNetworkSelectionMode(options: NetworkSelectionModeOptions, callback: AsyncCallback): void;setNetworkSelectionMode(options: NetworkSelectionModeOptions): Promise;|Added| -| -|Telephony Subsystem-radio|getNetworkSearchInformation(slotId: number, callback: AsyncCallback): void;getNetworkSearchInformation(slotId: number): Promise;|Added| -| -|Telephony Subsystem-radio|getNetworkSelectionMode(slotId: number, callback: AsyncCallback): void;getNetworkSelectionMode(slotId: number): Promise;|Added| -| -|Telephony Subsystem-radio|isRadioOn(callback: AsyncCallback): void;isRadioOn(): Promise;|Added| -| -|Telephony Subsystem-radio|turnOnRadio(callback: AsyncCallback): void;turnOnRadio(): Promise;|Added| -| -|Telephony Subsystem-radio|turnOffRadio(callback: AsyncCallback): void;turnOffRadio(): Promise;|Added| -| -|Telephony Subsystem-radio|getSignalInformation(slotId: number, callback: AsyncCallback>): void;getSignalInformation(slotId: number): Promise>;|Added| -| -|Telephony Subsystem-radio|getRadioTech(slotId: number, callback: AsyncCallback<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;getRadioTech(slotId: number): Promise<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;|Added| -| -|Telephony Subsystem-radio|getRadioTech(slotId: number, callback: AsyncCallback<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;getRadioTech(slotId: number): Promise<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;|Added| -| -|Telephony Subsystem-radio|getRadioTech(slotId: number, callback: AsyncCallback<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;getRadioTech(slotId: number): Promise<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;|Added| -| -|Data Management-distributeddata|put(key:string, value:Uint8Array / string / boolean / number, callback: AsyncCallback):void put(key:string, value:Uint8Array / string / boolean / number):Promise|Added| -| -|Data Management-distributeddata|delete(key: string, callback: AsyncCallback): void delete(key: string): Promise|Added| -| -|Data Management-distributeddata|on(event:'dataChange', subType: SubscribeType, observer: Callback): void|Added| -| -|Data Management-distributeddata|get(key:string, callback:AsyncCallback):void get(key:string):Promise|Added| -| -|Data Management-distributeddata|sync(deviceIdList:string[], mode:SyncMode, allowedDelayMs?:number):void|Added| -| -|Data Management-distributeddata|createKVManager(config: KVManagerConfig, callback: AsyncCallback): void;createKVManager(config: KVManagerConfig): Promise;|Added| -| -|Data Management-distributeddata|getKVStore(options: Options, storeId: string): Promise;getKVStore(options: Options, storeId: string, callback: AsyncCallback): void;|Added| -| -|Data Management-distributeddata|on(event:'syncComplete', syncCallback: Callback>):void|Added| -| -|Data Management-rdb|type ValueType = number / string / boolean;|Added| -| -|Data Management-rdb|type ValuesBucket = { [key: string]: ValueType / Uint8Array / null; }|Added| -| -|Data Management-rdb|name: string;|Added| -| -|Data Management-rdb|constructor(name: string)|Added| -| -|Data Management-rdb|equalTo(field: string, value: ValueType): RdbPredicates;|Added| -| -|Data Management-rdb|notEqualTo(field: string, value: ValueType): RdbPredicates;|Added| -| -|Data Management-rdb|beginWrap(): RdbPredicates;|Added| -| -|Data Management-rdb|endWrap(): RdbPredicates;|Added| -| -|Data Management-rdb|function getRdbStore(config: StoreConfig, version: number, callback: AsyncCallback): void;function getRdbStore(config: StoreConfig, version: number): Promise;|Added| -| -|Data Management-rdb|function deleteRdbStore(name: string, callback: AsyncCallback): void;function deleteRdbStore(name: string): Promise;|Added| -| -|Data Management-rdb|insert(name: string, values: ValuesBucket, callback: AsyncCallback): void;insert(name: string, values: ValuesBucket): Promise;|Added| -| -|Data Management-rdb|update(values: ValuesBucket, rdbPredicates: RdbPredicates, callback: AsyncCallback): void;update(values: ValuesBucket, rdbPredicates: RdbPredicates): Promise;|Added| -| -|Data Management-rdb|delete(rdbPredicates: RdbPredicates, callback: AsyncCallback): void;delete(rdbPredicates: RdbPredicates): Promise;|Added| -| -|Data Management-rdb|query(rdbPredicates: RdbPredicates, columns: Array, callback: AsyncCallback): void;query(rdbPredicates: RdbPredicates, columns: Array): Promise;|Added| -| -|Data Management-rdb|executeSql(sql: string, bindArgs: Array, callback: AsyncCallback): void;executeSql(sql: string, bindArgs: Array): Promise;|Added| -| -|Data Management-rdb|like(field: string, value: string): RdbPredicates;|Added| -| -|Data Management-rdb|glob(field: string, value: string): RdbPredicates;|Added| -| -|Data Management-rdb|between(field: string, low: ValueType, high: ValueType): RdbPredicates;|Added| -| -|Data Management-rdb|notBetween(field: string, low: ValueType, high: ValueType): RdbPredicates;|Added| -| -|Data Management-rdb|greaterThan(field: string, value: ValueType): RdbPredicates;|Added| -| -|Data Management-rdb|lessThan(field: string, value: ValueType): RdbPredicates;|Added| -| -|Data Management-rdb|greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicates;|Added| -| -|Data Management-rdb|lessThanOrEqualTo(field: string, value: ValueType): RdbPredicates;|Added| -| -|Data Management-rdb|or(): RdbPredicates;|Added| -| -|Data Management-rdb|and(): RdbPredicates;|Added| -| -|Data Management-rdb|contains(field: string, value: string): RdbPredicates;|Added| -| -|Data Management-rdb|beginsWith(field: string, value: string): RdbPredicates;|Added| -| -|Data Management-rdb|endsWith(field: string, value: string): RdbPredicates;|Added| -| -|Data Management-rdb|isNull(field: string): RdbPredicates;|Added| -| -|Data Management-rdb|isNotNull(field: string): RdbPredicates;|Added| -| -|Data Management-rdb|isEnded: boolean;|Added| -| -|Data Management-rdb|isStarted: boolean;|Added| -| -|Data Management-rdb|isClosed: boolean;|Added| -| -|Data Management-rdb|getColumnIndex(columnName: string): number;|Added| -| -|Data Management-rdb|getColumnName(columnIndex: number): string;|Added| -| -|Data Management-rdb|goTo(offset: number): boolean;|Added| -| -|Data Management-rdb|goToRow(position: number): boolean;|Added| -| -|Data Management-rdb|goToFirstRow(): boolean;|Added| -| -|Data Management-rdb|goToLastRow(): boolean;|Added| -| -|Data Management-rdb|goToNextRow(): boolean;|Added| -| -|Data Management-rdb|goToPreviousRow(): boolean;|Added| -| -|Data Management-rdb|getBlob(columnIndex: number): Uint8Array;|Added| -| -|Data Management-rdb|getString(columnIndex: number): string;|Added| -| -|Data Management-rdb|getLong(columnIndex: number): number;|Added| -| -|Data Management-rdb|getDouble(columnIndex: number): number;|Added| -| -|Data Management-dataAbility|orderByDesc(field: string): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|distinct(): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|limitAs(value: number): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|offsetAs(rowOffset: number): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|groupBy(fields: Array): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|indexedBy(field: string): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|in(field: string, value: Array): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|notIn(field: string, value: Array): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|glob(field: string, value: string): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|between(field: string, low: ValueType, high: ValueType): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|notBetween(field: string, low: ValueType, high: ValueType): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|greaterThan(field: string, value: ValueType): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|lessThan(field: string, value: ValueType): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|greaterThanOrEqualTo(field: string, value: ValueType): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|lessThanOrEqualTo(field: string, value: ValueType): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|orderByAsc(field: string): DataAbilityPredicates;|Added| -| -|Data Management-rdb|isColumnNull(columnIndex: number): boolean;|Added| -| -|Data Management-rdb|close(): void;|Added| -| -|Data Management-dataAbility|function createRdbPredicates(name: string, dataAbilityPredicates: DataAbilityPredicates): rdb.RdbPredicates;|Added| -| -|Data Management-dataAbility|equalTo(field: string, value: ValueType): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|notEqualTo(field: string, value: ValueType): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|beginWrap():DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|endWrap(): DataAbilityPredicates;|Added| -| -|Data Management-rdb|orderByAsc(field: string): RdbPredicates;|Added| -| -|Data Management-rdb|orderByDesc(field: string): RdbPredicates;|Added| -| -|Data Management-rdb|distinct(): RdbPredicates;|Added| -| -|Data Management-rdb|limitAs(value: number): RdbPredicates;|Added| -| -|Data Management-rdb|offsetAs(rowOffset: number): RdbPredicates;|Added| -| -|Data Management-rdb|groupBy(fields: Array): RdbPredicates;|Added| -| -|Data Management-rdb|indexedBy(field: string): RdbPredicates;|Added| -| -|Data Management-dataAbility|or(): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|and(): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|contains(field: string, value: string): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|beginsWith(field: string, value: string): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|endsWith(field: string, value: string): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|isNull(field: string): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|isNotNull(field: string): DataAbilityPredicates;|Added| -| -|Data Management-dataAbility|like(field: string, value: string): DataAbilityPredicates;|Added| -| -|Data Management-rdb|in(field: string, value: Array): RdbPredicates;|Added| -| -|Data Management-rdb|notIn(field: string, value: Array): RdbPredicates;|Added| -| -|Data Management-rdb|columnNames: Array;|Added| -| -|Data Management-rdb|columnCount: number;|Added| -| -|Data Management-rdb|rowCount: number;|Added| -| -|Data Management-rdb|rowIndex: number;|Added| -| -|Data Management-rdb|isAtFirstRow: boolean;|Added| -| -|Data Management-rdb|isAtLastRow: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|title: string;|Added| -| -|Common Event and Notification Subsystem-notification|sound?: string;|Added| -| -|Common Event and Notification Subsystem-notification|text: string;|Added| -| -|Common Event and Notification Subsystem-notification|vibrationValues?: Array;|Added| -| -|Common Event and Notification Subsystem-wantAgent|want?: Want;|Added| -| -|Common Event and Notification Subsystem-notification|vibrationEnabled?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|badgeFlag?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|type: notification.SlotType;|Added| -| -|Common Event and Notification Subsystem-wantAgent|code: number;|Added| -| -|Common Event and Notification Subsystem-notification|contentType: ContentType;|Added| -| -|Common Event and Notification Subsystem-notification|picture: image.PixelMap;|Added| -| -|Common Event and Notification Subsystem-notification|briefText: string;|Added| -| -|Common Event and Notification Subsystem-notification|briefText: string;|Added| -| -|Common Event and Notification Subsystem-notification|briefText: string;|Added| -| -|Common Event and Notification Subsystem-notification|bypassDnd?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|additionalText?: string;|Added| -| -|Common Event and Notification Subsystem-wantagent|function cancel(info: WantAgentInfo, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-wantAgent|enum OperationType|Added| -| -|Common Event and Notification Subsystem-wantAgent|enum WantAgentFlags|Added| -| -|Common Event and Notification Subsystem-wantAgent|permission?: string;|Added| -| -|Common Event and Notification Subsystem-notification|picture?: NotificationPictureContent;|Added| -| -|Common Event and Notification Subsystem-notification|normal?: NotificationBasicContent;|Added| -| -|Common Event and Notification Subsystem-notification|expandedTitle: string;|Added| -| -|Common Event and Notification Subsystem-notification|expandedTitle: string;|Added| -| -|Common Event and Notification Subsystem-wantAgent|function trigger(info: WantAgentInfo, triggerInfo: TriggerInfo, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-wantAgent|extraInfo?: {[key: string]: any};|Added| -| -|Common Event and Notification Subsystem-notification|multiLine?: NotificationMultiLineContent;|Added| -| -|Common Event and Notification Subsystem-notification|level?: notification.SlotLevel;|Added| -| -|Common Event and Notification Subsystem-notification|lightColor?: number;|Added| -| -|Common Event and Notification Subsystem-notification|lightEnabled?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|lines: Array;|Added| -| -|Common Event and Notification Subsystem-notification|lockscreenVisibility?: number;|Added| -| -|Common Event and Notification Subsystem-notification|longText: string;|Added| -| -|Common Event and Notification Subsystem-wantAgent|function getBundleName(info: WantAgentInfo, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|longText?: NotificationLongTextContent;|Added| -| -|Common Event and Notification Subsystem-notification|longTitle: string;|Added| -| -|Common Event and Notification Subsystem-wantAgent|function judgeEquality(info: WantAgentInfo, info2: WantAgentInfo, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-wantAgent|function getUid(info: WantAgentInfo, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL = common.event.IVI_TEMPERATURE_ABNORMAL,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_VOLTAGE_RECOVERY = common.event.IVI_VOLTAGE_RECOVERY,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_TEMPERATURE_RECOVERY = common.event.IVI_TEMPERATURE_RECOVERY,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_ACTIVE = common.event.IVI_ACTIVE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USB_DEVICE_ATTACHED = usual.event.hardware.usb.action.USB_DEVICE_ATTACHED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USB_DEVICE_DETACHED = usual.event.hardware.usb.action.USB_DEVICE_DETACHED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_PAUSE = common.event.IVI_PAUSE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_STANDBY = common.event.IVI_STANDBY,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_LASTMODE_SAVE = common.event.IVI_LASTMODE_SAVE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_VOLTAGE_ABNORMAL = common.event.IVI_VOLTAGE_ABNORMAL,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_HIGH_TEMPERATURE = common.event.IVI_HIGH_TEMPERATURE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_EXTREME_TEMPERATURE = common.event.IVI_EXTREME_TEMPERATURE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DISK_UNMOUNTABLE = usual.event.data.DISK_UNMOUNTABLE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DISK_EJECT = usual.event.data.DISK_EJECT,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED = usual.event.data.VISIBLE_ACCOUNTS_UPDATED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_ACCOUNT_DELETED = usual.event.data.ACCOUNT_DELETED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_FOUNDATION_READY = common.event.FOUNDATION_READY,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_AIRPLANE_MODE_CHANGED = usual.event.AIRPLANE_MODE|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USB_ACCESSORY_ATTACHED = usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USB_ACCESSORY_DETACHED = usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DISK_REMOVED = usual.event.data.DISK_REMOVED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DISK_UNMOUNTED = usual.event.data.DISK_UNMOUNTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DISK_MOUNTED = usual.event.data.DISK_MOUNTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DISK_BAD_REMOVAL = usual.event.data.DISK_BAD_REMOVAL,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED = usual.event.nfc.action.RF_FIELD_OFF_DETECTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DISCHARGING = usual.event.DISCHARGING,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_CHARGING = usual.event.CHARGING,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED = usual.event.DEVICE_IDLE_MODE_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_POWER_SAVE_MODE_CHANGED = usual.event.POWER_SAVE_MODE_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_ADDED = usual.event.USER_ADDED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_REMOVED = usual.event.USER_REMOVED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_ABILITY_ADDED = common.event.ABILITY_ADDED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_ABILITY_REMOVED = common.event.ABILITY_REMOVED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_ABILITY_UPDATED = common.event.ABILITY_UPDATED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_LOCATION_MODE_STATE_CHANGED = usual.event.location.MODE_STATE_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_IVI_SLEEP = common.event.IVI_SLEEP,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE = usual.event.bluetooth.host.NAME_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE = usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE = usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE = usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED = usual.event.nfc.action.ADAPTER_STATE_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED = usual.event.nfc.action.RF_FIELD_ON_DETECTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE = usual.event.bluetooth.host.REQ_ENABLE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE = usual.event.bluetooth.host.REQ_DISABLE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE = usual.event.bluetooth.host.SCAN_MODE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED = usual.event.bluetooth.host.DISCOVERY_STARTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED = usual.event.bluetooth.host.DISCOVERY_FINISHED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_P2P_CONN_STATE = usual.event.wifi.p2p.CONN_STATE_CHANGE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_P2P_STATE_CHANGED = usual.event.wifi.p2p.STATE_CHANGE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED = usual.event.wifi.p2p.DEVICES_CHANGE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED = usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED = usual.event.wifi.p2p.GROUP_STATE_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE = usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE = usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE = usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE = usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE = usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_RSSI_VALUE = usual.event.wifi.RSSI_VALUE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_CONN_STATE = usual.event.wifi.CONN_STATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_HOTSPOT_STATE = usual.event.wifi.HOTSPOT_STATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_AP_STA_JOIN = usual.event.wifi.WIFI_HS_STA_JOIN,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_AP_STA_LEAVE = usual.event.wifi.WIFI_HS_STA_LEAVE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE = usual.event.wifi.mplink.STATE_CHANGE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_HWID_LOGOUT = common.event.HWID_LOGOUT,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_HWID_TOKEN_INVALID = common.event.HWID_TOKEN_INVALID,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_HWID_LOGOFF = common.event.HWID_LOGOFF,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_POWER_STATE = usual.event.wifi.POWER_STATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_SCAN_FINISHED = usual.event.wifi.SCAN_FINISHED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|clearAbortCommonEvent(): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|bundleName?: string;|Added| -| -|Common Event and Notification Subsystem-commonEvent|code?: number;|Added| -| -|Common Event and Notification Subsystem-commonEvent|data?: string;|Added| -| -|Common Event and Notification Subsystem-commonEvent|subscriberPermissions?: Array;|Added| -| -|Common Event and Notification Subsystem-commonEvent|isOrdered?: boolean;|Added| -| -|Common Event and Notification Subsystem-commonEvent|isSticky?: boolean;|Added| -| -|Common Event and Notification Subsystem-commonEvent|abortCommonEvent(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|abortCommonEvent(): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|function createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|function createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|function subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|function publish(event: string, options: CommonEventPublishData, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|isOrderedCommonEvent(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|isOrderedCommonEvent(): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BOOT_COMPLETED = usual.event.BOOT_COMPLETED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_LOCKED_BOOT_COMPLETED = usual.event.LOCKED_BOOT_COMPLETED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_SHUTDOWN = usual.event.SHUTDOWN,|Added| -| -|Common Event and Notification Subsystem-commonEvent|isStickyCommonEvent(): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|getData(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|getData(): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|getSubscribeInfo(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|getSubscribeInfo(): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|function publish(event: string, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|event: string|Added| -| -|Common Event and Notification Subsystem-commonEvent|bundleName?: string;|Added| -| -|Common Event and Notification Subsystem-commonEvent|code?: number;|Added| -| -|Common Event and Notification Subsystem-commonEvent|data?: string;|Added| -| -|Common Event and Notification Subsystem-commonEvent|setCode(code: number, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DRIVE_MODE = common.event.DRIVE_MODE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_HOME_MODE = common.event.HOME_MODE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_OFFICE_MODE = common.event.OFFICE_MODE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_STARTED = usual.event.USER_STARTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_BACKGROUND = usual.event.USER_BACKGROUND,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_FOREGROUND = usual.event.USER_FOREGROUND,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_SWITCHED = usual.event.USER_SWITCHED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_STARTING = usual.event.USER_STARTING,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_UNLOCKED = usual.event.USER_UNLOCKED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_STOPPING = usual.event.USER_STOPPING,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_STOPPED = usual.event.USER_STOPPED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_HWID_LOGIN = common.event.HWID_LOGIN,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_VERIFIED = usual.event.PACKAGE_VERIFIED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE = usual.event.EXTERNAL_APPLICATIONS_AVAILABLE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE = usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_CONFIGURATION_CHANGED = usual.event.CONFIGURATION_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_LOCALE_CHANGED = usual.event.LOCALE_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_MANAGE_PACKAGE_STORAGE = usual.event.MANAGE_PACKAGE_STORAGE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGES_UNSUSPENDED = usual.event.PACKAGES_UNSUSPENDED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_MY_PACKAGE_SUSPENDED = usual.event.MY_PACKAGE_SUSPENDED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_MY_PACKAGE_UNSUSPENDED = usual.event.MY_PACKAGE_UNSUSPENDED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_UID_REMOVED = usual.event.UID_REMOVED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_FIRST_LAUNCH = usual.event.PACKAGE_FIRST_LAUNCH,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION = usual.event.PACKAGE_NEEDS_VERIFICATION,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_SCREEN_OFF = usual.event.SCREEN_OFF,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_SCREEN_ON = usual.event.SCREEN_ON,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_USER_PRESENT = usual.event.USER_PRESENT,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_TIME_TICK = usual.event.TIME_TICK,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_TIME_CHANGED = usual.event.TIME_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_DATE_CHANGED = usual.event.DATE_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BATTERY_CHANGED = usual.event.BATTERY_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BATTERY_LOW = usual.event.BATTERY_LOW,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BATTERY_OKAY = usual.event.BATTERY_OKAY,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_POWER_CONNECTED = usual.event.POWER_CONNECTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_POWER_DISCONNECTED = usual.event.POWER_DISCONNECTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|function unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED = usual.event.bluetooth.remotedevice.ACL_CONNECTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED = usual.event.bluetooth.remotedevice.ACL_DISCONNECTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|getAbortCommonEvent(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE = usual.event.bluetooth.remotedevice.NAME_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|getAbortCommonEvent(): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE = usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE = usual.event.bluetooth.remotedevice.PAIR_STATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|getCode(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|setCode(code: number): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE = usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE = usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|getCode(): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT = usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT,|Added| -| -|Common Event and Notification Subsystem-commonEvent|setCodeAndData(code: number, data: string, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT = usual.event.bluetooth.remotedevice.SDP_RESULT,|Added| -| -|Common Event and Notification Subsystem-commonEvent|isStickyCommonEvent(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE = usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|setCodeAndData(code: number, data: string): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|events: Array;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE = usual.event.bluetooth.host.STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE = usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|setData(data: string, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE = usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE = usual.event.bluetooth.host.REQ_DISCOVERABLE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|publisherPermission?: string;|Added| -| -|Common Event and Notification Subsystem-commonEvent|setData(data: string): Promise;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE = usual.event.bluetooth.remotedevice.UUID_VALUE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|publisherDeviceId?: string;|Added| -| -|Common Event and Notification Subsystem-commonEvent|clearAbortCommonEvent(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-commonEvent|userId?: number;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_TIMEZONE_CHANGED = usual.event.TIMEZONE_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ = usual.event.bluetooth.remotedevice.PAIRING_REQ,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED = usual.event.bluetooth.remotedevice.DISCOVERED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|priority?: number;|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BUNDLE_REMOVED = usual.event.BUNDLE_REMOVED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE = usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL = usual.event.bluetooth.remotedevice.PAIRING_CANCEL,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_CLOSE_SYSTEM_DIALOGS = usual.event.CLOSE_SYSTEM_DIALOGS,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_ADDED = usual.event.PACKAGE_ADDED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ = usual.event.bluetooth.remotedevice.CONNECT_REQ,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_FULLY_REMOVED = usual.event.PACKAGE_FULLY_REMOVED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_REPLACED = usual.event.PACKAGE_REPLACED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY = usual.event.bluetooth.remotedevice.CONNECT_REPLY,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_MY_PACKAGE_REPLACED = usual.event.MY_PACKAGE_REPLACED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_CHANGED = usual.event.PACKAGE_CHANGED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL = usual.event.bluetooth.remotedevice.CONNECT_CANCEL,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_REMOVED = usual.event.PACKAGE_REMOVED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_RESTARTED = usual.event.PACKAGE_RESTARTED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGE_DATA_CLEARED = usual.event.PACKAGE_DATA_CLEARED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_PACKAGES_SUSPENDED = usual.event.PACKAGES_SUSPENDED,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE = usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE,|Added| -| -|Common Event and Notification Subsystem-commonEvent|COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED = usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE,|Added| -| -|Common Event and Notification Subsystem-notification|LEVEL_NONE = 0,|Added| -| -|Common Event and Notification Subsystem-notification|LEVEL_MIN = 1,|Added| -| -|Common Event and Notification Subsystem-notification|LEVEL_LOW = 2,|Added| -| -|Common Event and Notification Subsystem-notification|LEVEL_DEFAULT = 3,|Added| -| -|Common Event and Notification Subsystem-notification|label?: string;|Added| -| -|Common Event and Notification Subsystem-notification|bundle: string;|Added| -| -|Common Event and Notification Subsystem-notification|uid?: number;|Added| -| -|Common Event and Notification Subsystem-notification|NOTIFICATION_CONTENT_MULTILINE,|Added| -| -|Common Event and Notification Subsystem-notification|UNKNOWN_TYPE = 0,|Added| -| -|Common Event and Notification Subsystem-notification|SOCIAL_COMMUNICATION = 1,|Added| -| -|Common Event and Notification Subsystem-notification|LEVEL_HIGH = 4,|Added| -| -|Common Event and Notification Subsystem-notification|NOTIFICATION_CONTENT_BASIC_TEXT,|Added| -| -|Common Event and Notification Subsystem-notification|NOTIFICATION_CONTENT_LONG_TEXT,|Added| -| -|Common Event and Notification Subsystem-notification|NOTIFICATION_CONTENT_PICTURE,|Added| -| -|Common Event and Notification Subsystem-notification|isFloatingIcon?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|label?: string;|Added| -| -|Common Event and Notification Subsystem-notification|badgeIconStyle?: number;|Added| -| -|Common Event and Notification Subsystem-notification|showDeliveryTime?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|isAlertOnce?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|function getActiveNotifications(callback: AsyncCallback>): void;|Added| -| -|Common Event and Notification Subsystem-notification|isStopwatch?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|isCountDown?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|function getActiveNotifications(): Promise>;|Added| -| -|Common Event and Notification Subsystem-notification|function getActiveNotificationCount(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|readonly creatorUid?: number;|Added| -| -|Common Event and Notification Subsystem-notification|function getActiveNotificationCount(): Promise;|Added| -| -|Common Event and Notification Subsystem-notification|readonly creatorPid?: number;|Added| -| -|Common Event and Notification Subsystem-notification|function cancel(id: number, label?: string): Promise;|Added| -| -|Common Event and Notification Subsystem-notification|classification?: string;|Added| -| -|Common Event and Notification Subsystem-notification|readonly hashCode?: string;|Added| -| -|Common Event and Notification Subsystem-notification|function cancelAll(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|actionButtons?: Array;|Added| -| -|Common Event and Notification Subsystem-notification|function cancelAll(): Promise;|Added| -| -|Common Event and Notification Subsystem-notification|smallIcon?: image.PixelMap;|Added| -| -|Common Event and Notification Subsystem-notification|isUnremovable?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|largeIcon?: image.PixelMap;|Added| -| -|Common Event and Notification Subsystem-notification|deliveryTime?: number;|Added| -| -|Common Event and Notification Subsystem-notification|readonly creatorBundleName?: string;|Added| -| -|Common Event and Notification Subsystem-notification|tapDismissed?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|function publish(request: NotificationRequest): Promise;|Added| -| -|Common Event and Notification Subsystem-notification|autoDeletedTime?: number;|Added| -| -|Common Event and Notification Subsystem-notification|function cancel(id: number, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|content: NotificationContent;|Added| -| -|Common Event and Notification Subsystem-notification|wantAgent?: WantAgentInfo;|Added| -| -|Common Event and Notification Subsystem-notification|function cancel(id: number, label: string, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|function getSlot(slotType: SlotType, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|extraInfo?: {[key: string]: any};|Added| -| -|Common Event and Notification Subsystem-notification|function getSlot(slotType: SlotType): Promise;|Added| -| -|Common Event and Notification Subsystem-notification|SERVICE_INFORMATION = 2,|Added| -| -|Common Event and Notification Subsystem-notification|color?: number;|Added| -| -|Common Event and Notification Subsystem-notification|id?: number;|Added| -| -|Common Event and Notification Subsystem-notification|function getSlots(callback: AsyncCallback>): void;|Added| -| -|Common Event and Notification Subsystem-notification|CONTENT_INFORMATION = 3,|Added| -| -|Common Event and Notification Subsystem-notification|slotType?: notification.SlotType;|Added| -| -|Common Event and Notification Subsystem-notification|colorEnabled?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|OTHER_TYPES = 0xFFFF,|Added| -| -|Common Event and Notification Subsystem-notification|isOngoing?: boolean;|Added| -| -|Common Event and Notification Subsystem-notification|function addSlot(type: SlotType, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|id: number;|Added| -| -|Common Event and Notification Subsystem-notification|function addSlot(type: SlotType): Promise;|Added| -| -|Common Event and Notification Subsystem-notification|desc?: string;|Added| -| -|Common Event and Notification Subsystem-notification|function publish(request: NotificationRequest, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|function removeAllSlots(callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|function removeAllSlots(): Promise;|Added| -| -|Common Event and Notification Subsystem-notification|function getSlots(): Promise>;|Added| -| -|Common Event and Notification Subsystem-notification|function removeSlot(slotType: SlotType, callback: AsyncCallback): void;|Added| -| -|Common Event and Notification Subsystem-notification|function removeSlot(slotType: SlotType): Promise;|Added| -| -|Globalization Subsystem-resourceManager|getString(resId: number, callback: AsyncCallback);getString(resId: number): Promise;|Added| -| -|Globalization Subsystem-resourceManager|getStringArray(resId: number, callback: AsyncCallback>);getStringArray(resId: number): Promise>;|Added| -| -|Globalization Subsystem-resourceManager|getConfiguration(callback: AsyncCallback);getConfiguration(): Promise;|Added| -| -|Globalization Subsystem-resourceManager|getDeviceCapability(callback: AsyncCallback);getDeviceCapability(): Promise;|Added| -| -|Globalization Subsystem-resourceManager|getMedia(resId: number, callback: AsyncCallback);getMedia(resId: number): Promise;getMediaBase64(resId: number, callback: AsyncCallback);getMediaBase64(resId: number): Promise;|Added| -| -|Globalization Subsystem-resourceManager|"getPluralString(resId: number, num: number, callback: AsyncCallback);getPluralString(resId: number, num: number): Promise;"|Added| -| -|Globalization Subsystem-resourceManager|DeviceCapability|Added| -| -|Globalization Subsystem-resourceManager|"getMediaBase64(resId: number, callback: AsyncCallback);getMediaBase64(resId: number): Promise;"|Added| -| -|Globalization Subsystem-resourceManager|"getResourceManager(callback: AsyncCallback);getResourceManager(bundleName: string, callback: AsyncCallback);getResourceManager(): Promise;getResourceManager(bundleName: string): Promise;"|Added| -| -|Globalization Subsystem-resourceManager|DeviceType|Added| -| -|Globalization Subsystem-resourceManager|Direction|Added| -| -|Globalization Subsystem-resourceManager|Configuration|Added| -| -|Globalization Subsystem-resourceManager|ScreenDensity|Added| -| -|Globalization Subsystem-resourceManager|deviceType|Added| -| -|Globalization Subsystem-resourceManager|locale|Added| -| -|Globalization Subsystem-resourceManager|direction|Added| -| -|Globalization Subsystem-resourceManager|screenDensity|Added| -| -|Power Management Subsystem-batteryInfo|batteryInfo:const batterySOC: number;|Added| -| -|Power Management Subsystem-batteryInfo|batteryInfo:const technology: string;|Added| -| -|Power Management Subsystem-batteryInfo|batteryInfo:const isBatteryPresent: boolean;|Added| -| -|Power Management Subsystem-batteryInfo|batteryInfo:const batteryTemperature: number;|Added| -| -|Power Management Subsystem-batteryInfo|batteryInfo:const pluggedType: BatteryPluggedType;|Added| -| -|Power Management Subsystem-batteryInfo|batteryInfo:const chargingStatus: BatteryChargeState;|Added| -| -|Power Management Subsystem-batteryInfo|batteryInfo:const healthStatus: BatteryHealthState;|Added| -| -|Power Management Subsystem-batteryInfo|batteryInfo:const voltage: number;|Added| -| -|Power Management Subsystem-batteryInfo|BatteryChargeState:NONE|Added| -| -|Power Management Subsystem-batteryInfo|BatteryChargeState:DISABLE|Added| -| -|Power Management Subsystem-batteryInfo|BatteryChargeState:ENABLE,|Added| -| -|Power Management Subsystem-batteryInfo|BatteryChargeState:FULL|Added| -| -|Power Management Subsystem-batteryInfo|BatteryHealthState:COLD|Added| -| -|Power Management Subsystem-batteryInfo|BatteryHealthState:OVERHEAT|Added| -| -|Power Management Subsystem-batteryInfo|BatteryHealthState:OVERVOLTAGE|Added| -| -|Power Management Subsystem-batteryInfo|BatteryHealthState:DEAD|Added| -| -|Power Management Subsystem-batteryInfo|BatteryHealthState:UNKNOWN|Added| -| -|Power Management Subsystem-batteryInfo|BatteryHealthState:GOOD|Added| -| -|Power Management Subsystem-batteryInfo|BatteryPluggedType:WIRELESS|Added| -| -|Power Management Subsystem-batteryInfo|BatteryPluggedType:NONE|Added| -| -|Power Management Subsystem-batteryInfo|BatteryPluggedType:AC|Added| -| -|Power Management Subsystem-batteryInfo|BatteryPluggedType:USB|Added| -| -|Power Management Subsystem-runningLock|RunningLock:unlock()|Added| -| -|Power Management Subsystem-runningLock|runningLock:isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback): void;|Added| -| -|Power Management Subsystem-runningLock|runningLock:createRunningLock(name: string, type: runningLockType): RunningLock|Added| -| -|Power Management Subsystem-runningLock|RunningLock:lock(timeout: number)|Added| -| -|Power Management Subsystem-runningLock|RunningLock:isUsed(): boolean|Added| -| -|Power Management Subsystem-runninglock|RunningLockType:BACKGROUND|Added| -| -|Power Management Subsystem-runninglock|RunningLockType:PROXIMITY_SCREEN_CONTROL|Added| -| -|Power Management Subsystem-power|power:rebootDevice(reason ?: string)|Added| -| -|Power Management Subsystem-power|power:isScreenOn(callback: AsyncCallback): void;|Added| -| +|Multi - language Runtime - worker|postMessage(obj):void|Added|Used by the host thread to transfer data to the worker.| +|Multi - language Runtime - worker|postMessage(message: Object, options?: PostMessageOptions):void|Added|Used by the host thread to transfer the data control permission of the array buffer to the worker.| +|Multi - language Runtime - worker|terminate():void|Added|Used by the host thread to proactively terminate the worker.| +|Multi - language Runtime - worker|on(type: string, listener: EventListener): void|Added|Adds a callback for the worker.| +|Multi - language Runtime - worker|once(type: string, listener: EventListener): void|Added|Adds a one - shot callback for the worker.| +|Multi - language Runtime - worker|off(type: string, listener?: EventListener): void|Added|Deletes a callback added for the worker.| +|Multi - language Runtime - worker|addEventListener(type: string, listener: EventListener): void|Added|Adds a callback for the worker.| +|Multi - language Runtime - worker|removeEventListener(type: string, listener?: EventListener): void|Added|Deletes a callback added for the worker.| +|Multi - language Runtime - worker|removeAllListener(): void|Added|Deletes all callbacks added for the worker.| +|Multi - language Runtime - worker|dispatchEvent(event: Event): boolean|Added|Dispatches a specific event to the worker.| +|Multi - language Runtime - parentPort|postMessage(obj):void|Added|Used by the worker to transfer data to the host thread.| +|Multi - language Runtime - parentPort|postMessage(message: Object, options?: PostMessageOptions):void|Added|Used by the worker to transfer the data control permission of the array buffer to the host thread.| +|Multi - language Runtime - parentPort|close(): void|Added|Used by the worker to proactively terminate itself.| +|Multi - language Runtime - Util|printf(format: string, ...args: Object[]): string|Added|-| +|Multi - language Runtime - Util|getErrorString(errno: number): string|Added|-| +|Multi - language Runtime - Util|callbackWrapper(original: Function): (err: Object, value: Object) => void|Added|-| +|Multi - language Runtime - Util|promiseWrapper(original: (err: Object, value: Object) => void): Object|Added|-| +|Multi - language Runtime - Util|new TextDecoder([encoding[, options]])|Added|-| +|Multi - language Runtime - Util|decode([input[, options]]):string|Added|-| +|Multi - language Runtime - Util|new TextEncoder()|Added|-| +|Multi - language Runtime - Util|encode(input?: string): Uint8Array;|Added|-| +|Multi - language Runtime - Util|"encodeInto(input: string,dest: Uint8Array,): { read: number; written: number };"|Added|-| +|Multi - language Runtime - Util|readonly encoding: string;|Added|-| +|Multi - language Runtime - Util|readonly fatal: boolean;|Added|-| +|Multi - language Runtime - Util|readonly ignoreBOM = false;|Added|-| +|Multi - language Runtime - Util|readonly encoding = "utf-8";|Added|-| +|Multi - language Runtime - URL|new URL(url: string, base?: string/URL)|Added|-| +|Multi - language Runtime - URL|toString(): string;|Added|-| +|Multi - language Runtime - URL|toJSON(): string;|Added|-| +|Multi - language Runtime - URL|new URSearchParams()|Added|-| +|Multi - language Runtime - URL|new URSearchParams(string)|Added|-| +|Multi - language Runtime - URL|new URSearchParams(obj)|Added|-| +|Multi - language Runtime - URL|new URSearchParams(iterable)|Added|-| +|Multi - language Runtime - URL|append(name: string, value: string): void;|Added|-| +|Multi - language Runtime - URL|delete(name: string): void;|Added|-| +|Multi - language Runtime - URL|entries(): IterableIterator\<[string, string]>;|Added|-| +|Multi - language Runtime - URL|forEach(callbackfn: (value: string, key: string, parent: this) => void, thisArg?: any,): void;|Added|-| +|Multi - language Runtime - URL|get(name: string): string / null;|Added|-| +|Multi - language Runtime - URL|getAll(name: string): string[];|Added|-| +|Multi - language Runtime - URL|has(name: string): boolean;|Added|-| +|Multi - language Runtime - URL|keys(): IterableIterator\;|Added|-| +|Multi - language Runtime - URL|set(name: string, value: string): void;|Added|-| +|Multi - language Runtime - URL|sort():void;|Added|-| +|Multi - language Runtime - URL|toString():string|Added|-| +|Multi - language Runtime - URL|values(): IterableIterator\;|Added|-| +|Multi - language Runtime - URL|URSearchParams\[Symbol.iterator]()|Added|-| +|Multi - language Runtime - URL|hash: string;|Added|-| +|Multi - language Runtime - URL|host: string;|Added|-| +|Multi - language Runtime - URL|hostname: string;|Added|-| +|Multi - language Runtime - URL|href: string;|Added|-| +|Multi - language Runtime - URL|readonly origin: string;|Added|-| +|Multi - language Runtime - URL|password: string;|Added|-| +|Multi - language Runtime - URL|pathname: string;|Added|-| +|Multi - language Runtime - URL|port: string;|Added|-| +|Multi - language Runtime - URL|protocol: string;|Added|-| +|Multi - language Runtime - URL|search: string;|Added|-| +|Multi - language Runtime - URL|readonly searchParams: URLSearchParams;|Added|-| +|Multi - language Runtime - URL|username: string;|Added|-| +|Multi - language Runtime - ChildProcess|readonly pid: number;|Added|-| +|Multi - language Runtime - ChildProcess|readonly ppid: number;|Added|-| +|Multi - language Runtime - ChildProcess|readonly exitCode: number;|Added|-| +|Multi - language Runtime - ChildProcess|readonly killed: boolean;|Added|-| +|Multi - language Runtime - ChildProcess|wait(): Promise\;|Added|-| +|Multi - language Runtime - ChildProcess|getOutput(): Promise\;|Added|-| +|Multi - language Runtime - ChildProcess|getErrorOutput(): Promise\;|Added|-| +|Multi - language Runtime - ChildProcess|close(): void;|Added|-| +|Multi - language Runtime - ChildProcess|kill(signal: number): void;|Added|-| +|Multi - language Runtime - process|runCmd(command: string,options?: { timeout : number, killSignal : number string, maxBuffer : number }): ChildProcess;|Added|-| +|Multi - language Runtime - process|getPid(): number;|Added|-| +|Multi - language Runtime - process|getPpid(): number;|Added|-| +|Multi - language Runtime - process|abort(): void;|Added|-| +|Multi - language Runtime - process|on(type: string, listener: EventListener): void;|Added|-| +|Multi - language Runtime - process|exit(code?:number): void;|Added|-| +|Multi - language Runtime - process|cwd(): string;|Added|-| +|Multi - language Runtime - process|chdir(dir: string): void;|Added|-| +|Multi - language Runtime - process|getEgid(): number;|Added|-| +|Multi - language Runtime - process|getEuid(): number;|Added|-| +|Multi - language Runtime - process|getGid(): number|Added|-| +|Multi - language Runtime - process|getUid(): number;|Added|-| +|Multi - language Runtime - process|uptime(): number;|Added|-| +|Multi - language Runtime - process|getGroups(): number[];|Added|-| +|Multi - language Runtime - process|kill(signal?: number, pid?: number): boolean;|Added|-| +|Update Subsystem - Updater|checkNewVersion(): Promise\;|Added| -| +|Update Subsystem - Updater|rebootAndCleanUserData(callback: AsyncCallback\): void;|Added| -| +|Update Subsystem - Updater|rebootAndCleanCache(): Promise\;|Added| -| +|Update Subsystem - Updater|getUpdaterFromOther(device: string, updateType?: UpdateTypes): Updater;|Added| -| +|Update Subsystem - Updater|cancel(): void;|Added| -| +|Update Subsystem - Updater|upgrade(): void;|Added| -| +|Update Subsystem - Updater|off(eventType: 'downloadProgress', callback?: UpdateProgressCallback): void;|Added| -| +|Update Subsystem - Updater|getUpdatePolicy(callback: AsyncCallback\): void;|Added| -| +|Update Subsystem - Updater|getUpdaterForOther(device: string, updateType?: UpdateTypes): Updater;|Added| -| +|Update Subsystem - Updater|setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback\): void;|Added| -| +|Update Subsystem - Updater|getNewVersionInfo(): Promise\;|Added| -| +|Update Subsystem - Updater|getUpdater(updateType?: UpdateTypes): Updater;|Added| -| +|Update Subsystem - Updater|applyNewVersion(callback: AsyncCallback\): void;|Added| -| +|Update Subsystem - Updater|rebootAndCleanUserData(): Promise\;|Added| -| +|Update Subsystem - Updater|off(eventType: 'verifyProgress', callback?: UpdateProgressCallback): void;|Added| -| +|Update Subsystem - Updater|on(eventType: 'upgradeProgress', callback: UpdateProgressCallback): void;|Added| -| +|Update Subsystem - Updater|checkNewVersion(callback: AsyncCallback\): void;|Added| -| +|Update Subsystem - Updater|on(eventType: 'downloadProgress', callback: UpdateProgressCallback): void;|Added| -| +|Update Subsystem - Updater|getUpdatePolicy(): Promise\;|Added| -| +|Update Subsystem - Updater|download(): void;|Added| -| +|Update Subsystem - Updater|off(eventType: 'upgradeProgress', callback?: UpdateProgressCallback): void;|Added| -| +|Update Subsystem - Updater|getNewVersionInfo(callback: AsyncCallback\): void;|Added| -| +|Update Subsystem - Updater|on(eventType: 'verifyProgress', callback: UpdateProgressCallback): void;|Added| -| +|Update Subsystem - Updater|verifyUpdatePackage(upgradeFile: string, certsFile: string): void;|Added| -| +|Update Subsystem - Updater|setUpdatePolicy(policy: UpdatePolicy): Promise\;|Added| -| +|Update Subsystem - Updater|rebootAndCleanCache(callback: AsyncCallback\): void;|Added| -| +|Update Subsystem - Updater|applyNewVersion(): Promise\;|Added| -| +|Globalization Subsystem - I18n|getSystemLanguages(): Array\;|Added| -| +|Globalization Subsystem - I18n|getSystemCountries(language: string): Array\;|Added| -| +|Globalization Subsystem - I18n|isSuggested(language: string, region?: string): boolean;|Added| -| +|Globalization Subsystem - I18n|getSystemLanguage(): string;|Added| -| +|Globalization Subsystem - I18n|setSystemLanguage(language: string);|Added| -| +|Globalization Subsystem - I18n|getSystemRegion(): string;|Added| -| +|Globalization Subsystem - I18n|setSystemRegion(region: string);|Added| -| +|Globalization Subsystem - I18n|"getDisplayCountry(locale: string, displayLocale: string,sentenceCase?: boolean): string;"|Added| -| +|Globalization Subsystem - I18n|getSystemLocale(): string;|Added| -| +|Globalization Subsystem - I18n|setSystemLocale(locale: string);|Added| -| +|Globalization Subsystem - I18n|"getDisplayLanguage(locale: string, displayLocale: string,sentenceCase?: boolean): string;"|Added| -| +|Telephony Subsystem - radio|getNetworkState(callback: AsyncCallback\): void;
getNetworkState(slotId: number, callback: AsyncCallback\): void;
getNetworkState(slotId?: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimAccountInfo(slotId: number, callback: AsyncCallback\): void;
getSimAccountInfo(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getDefaultVoiceSlotId(callback: AsyncCallback\): void;
getDefaultVoiceSlotId(): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimSpn(slotId: number, callback: AsyncCallback\): void;
getSimSpn(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getISOCountryCodeForSim(slotId: number, callback: AsyncCallback\): void;
getISOCountryCodeForSim(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimIccId(slotId: number, callback: AsyncCallback\): void;
getSimIccId(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimGid1(slotId: number, callback: AsyncCallback\): void;
getSimGid1(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getISOCountryCodeForSim(slotId: number, callback: AsyncCallback\): void;
getISOCountryCodeForSim(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimOperatorNumeric(slotId: number, callback: AsyncCallback\): void;
getSimOperatorNumeric(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimSpn(slotId: number, callback: AsyncCallback\): void;
getSimSpn(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimIccId(slotId: number, callback: AsyncCallback\): void;
getSimIccId(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getIMSI(slotId: number, callback: AsyncCallback\): void;
getIMSI(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - call|combineConference(callId: number, callback: AsyncCallback\): void;
combineConference(callId: number): Promise\;|Added| -| +|Telephony Subsystem - call|startDTMF(callId: number, character: string, callback: AsyncCallback\): void;
startDTMF(callId: number, character: string): Promise\;|Added| -| +|Telephony Subsystem - call|stopDTMF(callId: number, callback: AsyncCallback\): void;
stopDTMF(callId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback\): void;
setDefaultVoiceSlotId(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|unlockPin(slotId: number, pin: string, callback: AsyncCallback\): void;
unlockPin(slotId: number, pin: string): Promise\;|Added| -| +|Telephony Subsystem - sim|alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback\): void;
alterPin(slotId: number, newPin: string, oldPin: string): Promise\;|Added| -| +|Telephony Subsystem - sim|setLockState(slotId: number, pin: string, enable: number, callback: AsyncCallback\): void;
setLockState(slotId: number, pin: string, enable: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimState(slotId: number, callback: AsyncCallback\): void;
getSimState(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimState(slotId: number, callback: AsyncCallback\): void;
getSimState(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimState(slotId: number, callback: AsyncCallback\): void;
getSimState(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sim|getSimState(slotId: number, callback: AsyncCallback\): void;
getSimState(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - call|isEmergencyPhoneNumber(phoneNumber: string, callback: AsyncCallback\): void;
isEmergencyPhoneNumber(phoneNumber: string, options: EmergencyNumberOptions, callback: AsyncCallback\): void;
isEmergencyPhoneNumber(phoneNumber: string, options?: EmergencyNumberOptions): Promise\;|Added| -| +|Telephony Subsystem - sms|createMessage(pdu: Array\, specification: string, callback: AsyncCallback\): void;
createMessage(pdu: Array\, specification: string): Promise\;|Added| -| +|Telephony Subsystem - call|hasCall(callback: AsyncCallback\): void;
hasCall(): Promise\;|Added| -| +|Telephony Subsystem - sms|sendMessage(options: SendMessageOptions): void;|Added| -| +|Telephony Subsystem - call|dial(phoneNumber: string, callback: AsyncCallback\): void;
dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback\): void;
dial(phoneNumber: string, options?: DialOptions): Promise\;|Added| -| +|Telephony Subsystem - call|interface DialOptions {extras?: boolean; }|Added| -| +|Telephony Subsystem - sms|sendMessage(options: SendMessageOptions): void;|Added| -| +|Telephony Subsystem - sms|getDefaultSmsSlotId(callback: AsyncCallback\): void;
getDefaultSmsSlotId(): Promise\;|Added| -| +|Telephony Subsystem - call|formatPhoneNumber(phoneNumber: string, callback: AsyncCallback\): void;
formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback\): void;
formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise\;|Added| -| +|Telephony Subsystem - call|formatPhoneNumber(phoneNumber: string, callback: AsyncCallback\): void;
formatPhoneNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback\): void;
formatPhoneNumber(phoneNumber: string, options?: NumberFormatOptions): Promise\;|Added| -| +|Telephony Subsystem - call|formatPhoneNumberToE164(phoneNumber: string, countryCode: string, callback: AsyncCallback\): void;
formatPhoneNumberToE164(phoneNumber: string, countryCode: string): Promise\;|Added| -| +|Telephony Subsystem - sms|setDefaultSmsSlotId(slotId: number, callback: AsyncCallback\): void;
setDefaultSmsSlotId(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - call|getCallState(callback: AsyncCallback\): void;
getCallState(): Promise\;|Added| -| +|Telephony Subsystem - sms|setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback\): void;
setSmscAddr(slotId: number, smscAddr: string): Promise\;|Added| -| +|Telephony Subsystem - sms|getSmscAddr(slotId: number, callback: AsyncCallback\): void;
getSmscAddr(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sms|addSimMessage(options: SimMessageOptions, callback: AsyncCallback\): void;
addSimMessage(options: SimMessageOptions): Promise\;|Added| -| +|Telephony Subsystem - sms|delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback\): void;
delSimMessage(slotId: number, msgIndex: number): Promise\;|Added| -| +|Telephony Subsystem - radio|getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback\): void;
getISOCountryCodeForNetwork(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sms|updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback\): void;
updateSimMessage(options: UpdateSimMessageOptions): Promise\;|Added| -| +|Telephony Subsystem - radio|getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback\): void;
getISOCountryCodeForNetwork(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - sms|getAllSimMessages(slotId: number, callback: AsyncCallback\>): void;
getAllSimMessages(slotId: number): Promise\>;|Added| -| +|Telephony Subsystem - call|isInEmergencyCall(callback: AsyncCallback\): void;
isInEmergencyCall(): Promise\;|Added| -| +|Telephony Subsystem - sms|setCBConfig(options: CBConfigOptions, callback: AsyncCallback\): void;
setCBConfig(options: CBConfigOptions): Promise\;|Added| -| +|Telephony Subsystem - call|answer(callId: number, callback: AsyncCallback\): void;
answer(callId: number): Promise\;|Added| -| +|Telephony Subsystem - call|hangup(callId: number, callback: AsyncCallback\): void;
hangup(callId: number): Promise\;|Added| -| +|Telephony Subsystem - call|reject(callId: number, callback: AsyncCallback\): void;
reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback\): void;
reject(callId: number, options?: RejectMessageOptions): Promise\;|Added| -| +|Telephony Subsystem - call|holdCall(callId: number, callback: AsyncCallback\): void;
holdCall(callId: number): Promise\;|Added| -| +|Telephony Subsystem - call|unHoldCall(callId: number, callback: AsyncCallback\): void;
unHoldCall(callId: number): Promise\;|Added| -| +|Telephony Subsystem - call|switchCall(callId: number, callback: AsyncCallback\): void;
switchCall(callId: number): Promise\;|Added| -| +|Telephony Subsystem - radio|setNetworkSelectionMode(options: NetworkSelectionModeOptions, callback: AsyncCallback\): void;
setNetworkSelectionMode(options: NetworkSelectionModeOptions): Promise\;|Added| -| +|Telephony Subsystem - radio|getNetworkSearchInformation(slotId: number, callback: AsyncCallback\): void;
getNetworkSearchInformation(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - radio|getNetworkSelectionMode(slotId: number, callback: AsyncCallback\): void;
getNetworkSelectionMode(slotId: number): Promise\;|Added| -| +|Telephony Subsystem - radio|isRadioOn(callback: AsyncCallback\): void;
isRadioOn(): Promise\;|Added| -| +|Telephony Subsystem - radio|turnOnRadio(callback: AsyncCallback\): void;
turnOnRadio(): Promise\;|Added| -| +|Telephony Subsystem - radio|turnOffRadio(callback: AsyncCallback\): void;
turnOffRadio(): Promise\;|Added| -| +|Telephony Subsystem - radio|getSignalInformation(slotId: number, callback: AsyncCallback\>): void;
getSignalInformation(slotId: number): Promise\>;|Added| -| +|Telephony Subsystem - radio|getRadioTech(slotId: number, callback: AsyncCallback\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
getRadioTech(slotId: number): Promise\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;|Added| -| +|Telephony Subsystem - radio|getRadioTech(slotId: number, callback: AsyncCallback\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
getRadioTech(slotId: number): Promise\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;|Added| -| +|Telephony Subsystem - radio|getRadioTech(slotId: number, callback: AsyncCallback\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
getRadioTech(slotId: number): Promise\<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>;|Added| -| +|Data Management - distributeddata|put(key:string, value:Uint8Array / string / boolean / number, callback: AsyncCallback\):void put(key:string, value:Uint8Array / string / boolean / number):Promise\|Added| -| +|Data Management - distributeddata|delete(key: string, callback: AsyncCallback\): void delete(key: string): Promise\|Added| -| +|Data Management - distributeddata|on(event:'dataChange', subType: SubscribeType, observer: Callback\): void|Added| -| +|Data Management - distributeddata|get(key:string, callback:AsyncCallback\):void get(key:string):Promise\|Added| -| +|Data Management - distributeddata|sync(deviceIdList:string[], mode:SyncMode, allowedDelayMs?:number):void|Added| -| +|Data Management - distributeddata|createKVManager(config: KVManagerConfig, callback: AsyncCallback\): void;
createKVManager(config: KVManagerConfig): Promise\;|Added| -| +|Data Management - distributeddata|getKVStore\(options: Options, storeId: string): Promise\;
getKVStore\(options: Options, storeId: string, callback: AsyncCallback\): void;|Added| -| +|Data Management - distributeddata|on(event:'syncComplete', syncCallback: Callback\>):void|Added| -| +|Data Management - rdb|type ValueType = number / string / boolean;|Added| -| +|Data Management - rdb|type ValuesBucket = { [key: string]: ValueType / Uint8Array / null; }|Added| -| +|Data Management - rdb|name: string;|Added| -| +|Data Management - rdb|constructor(name: string)|Added| -| +|Data Management - rdb|equalTo(field: string, value: ValueType): RdbPredicates;|Added| -| +|Data Management - rdb|notEqualTo(field: string, value: ValueType): RdbPredicates;|Added| -| +|Data Management - rdb|beginWrap(): RdbPredicates;|Added| -| +|Data Management - rdb|endWrap(): RdbPredicates;|Added| -| +|Data Management - rdb|getRdbStore(config: StoreConfig, version: number, callback: AsyncCallback\): void;
getRdbStore(config: StoreConfig, version: number): Promise\;|Added| -| +|Data Management - rdb|deleteRdbStore(name: string, callback: AsyncCallback\): void;
deleteRdbStore(name: string): Promise\;|Added| -| +|Data Management - rdb|insert(name: string, values: ValuesBucket, callback: AsyncCallback\): void;
insert(name: string, values: ValuesBucket): Promise\;|Added| -| +|Data Management - rdb|update(values: ValuesBucket, rdbPredicates: RdbPredicates, callback: AsyncCallback\): void;
update(values: ValuesBucket, rdbPredicates: RdbPredicates): Promise\;|Added| -| +|Data Management - rdb|delete(rdbPredicates: RdbPredicates, callback: AsyncCallback\): void;
delete(rdbPredicates: RdbPredicates): Promise\;|Added| -| +|Data Management - rdb|query(rdbPredicates: RdbPredicates, columns: Array\, callback: AsyncCallback\): void;
query(rdbPredicates: RdbPredicates, columns: Array\): Promise\;|Added| -| +|Data Management - rdb|executeSql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;
executeSql(sql: string, bindArgs: Array\): Promise\;|Added| -| +|Data Management - rdb|like(field: string, value: string): RdbPredicates;|Added| -| +|Data Management - rdb|glob(field: string, value: string): RdbPredicates;|Added| -| +|Data Management - rdb|between(field: string, low: ValueType, high: ValueType): RdbPredicates;|Added| -| +|Data Management - rdb|notBetween(field: string, low: ValueType, high: ValueType): RdbPredicates;|Added| -| +|Data Management - rdb|greaterThan(field: string, value: ValueType): RdbPredicates;|Added| -| +|Data Management - rdb|lessThan(field: string, value: ValueType): RdbPredicates;|Added| -| +|Data Management - rdb|greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicates;|Added| -| +|Data Management - rdb|lessThanOrEqualTo(field: string, value: ValueType): RdbPredicates;|Added| -| +|Data Management - rdb|or(): RdbPredicates;|Added| -| +|Data Management - rdb|and(): RdbPredicates;|Added| -| +|Data Management - rdb|contains(field: string, value: string): RdbPredicates;|Added| -| +|Data Management - rdb|beginsWith(field: string, value: string): RdbPredicates;|Added| -| +|Data Management - rdb|endsWith(field: string, value: string): RdbPredicates;|Added| -| +|Data Management - rdb|isNull(field: string): RdbPredicates;|Added| -| +|Data Management - rdb|isNotNull(field: string): RdbPredicates;|Added| -| +|Data Management - rdb|isEnded: boolean;|Added| -| +|Data Management - rdb|isStarted: boolean;|Added| -| +|Data Management - rdb|isClosed: boolean;|Added| -| +|Data Management - rdb|getColumnIndex(columnName: string): number;|Added| -| +|Data Management - rdb|getColumnName(columnIndex: number): string;|Added| -| +|Data Management - rdb|goTo(offset: number): boolean;|Added| -| +|Data Management - rdb|goToRow(position: number): boolean;|Added| -| +|Data Management - rdb|goToFirstRow(): boolean;|Added| -| +|Data Management - rdb|goToLastRow(): boolean;|Added| -| +|Data Management - rdb|goToNextRow(): boolean;|Added| -| +|Data Management - rdb|goToPreviousRow(): boolean;|Added| -| +|Data Management - rdb|getBlob(columnIndex: number): Uint8Array;|Added| -| +|Data Management - rdb|getString(columnIndex: number): string;|Added| -| +|Data Management - rdb|getLong(columnIndex: number): number;|Added| -| +|Data Management - rdb|getDouble(columnIndex: number): number;|Added| -| +|Data Management - dataAbility|orderByDesc(field: string): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|distinct(): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|limitAs(value: number): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|offsetAs(rowOffset: number): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|groupBy(fields: Array\): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|indexedBy(field: string): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|in(field: string, value: Array\): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|notIn(field: string, value: Array\): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|glob(field: string, value: string): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|between(field: string, low: ValueType, high: ValueType): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|notBetween(field: string, low: ValueType, high: ValueType): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|greaterThan(field: string, value: ValueType): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|lessThan(field: string, value: ValueType): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|greaterThanOrEqualTo(field: string, value: ValueType): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|lessThanOrEqualTo(field: string, value: ValueType): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|orderByAsc(field: string): DataAbilityPredicates;|Added| -| +|Data Management - rdb|isColumnNull(columnIndex: number): boolean;|Added| -| +|Data Management - rdb|close(): void;|Added| -| +|Data Management - dataAbility|createRdbPredicates(name: string, dataAbilityPredicates: DataAbilityPredicates): rdb.RdbPredicates;|Added| -| +|Data Management - dataAbility|equalTo(field: string, value: ValueType): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|notEqualTo(field: string, value: ValueType): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|beginWrap():DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|endWrap(): DataAbilityPredicates;|Added| -| +|Data Management - rdb|orderByAsc(field: string): RdbPredicates;|Added| -| +|Data Management - rdb|orderByDesc(field: string): RdbPredicates;|Added| -| +|Data Management - rdb|distinct(): RdbPredicates;|Added| -| +|Data Management - rdb|limitAs(value: number): RdbPredicates;|Added| -| +|Data Management - rdb|offsetAs(rowOffset: number): RdbPredicates;|Added| -| +|Data Management - rdb|groupBy(fields: Array\): RdbPredicates;|Added| -| +|Data Management - rdb|indexedBy(field: string): RdbPredicates;|Added| -| +|Data Management - dataAbility|or(): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|and(): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|contains(field: string, value: string): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|beginsWith(field: string, value: string): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|endsWith(field: string, value: string): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|isNull(field: string): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|isNotNull(field: string): DataAbilityPredicates;|Added| -| +|Data Management - dataAbility|like(field: string, value: string): DataAbilityPredicates;|Added| -| +|Data Management - rdb|in(field: string, value: Array\): RdbPredicates;|Added| -| +|Data Management - rdb|notIn(field: string, value: Array\): RdbPredicates;|Added| -| +|Data Management - rdb|columnNames: Array\;|Added| -| +|Data Management - rdb|columnCount: number;|Added| -| +|Data Management - rdb|rowCount: number;|Added| -| +|Data Management - rdb|rowIndex: number;|Added| -| +|Data Management - rdb|isAtFirstRow: boolean;|Added| -| +|Data Management - rdb|isAtLastRow: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|title: string;|Added| -| +|Common Event and Notification Subsystem - notification|sound?: string;|Added| -| +|Common Event and Notification Subsystem - notification|text: string;|Added| -| +|Common Event and Notification Subsystem - notification|vibrationValues?: Array\;|Added| -| +|Common Event and Notification Subsystem - wantAgent|want?: Want;|Added| -| +|Common Event and Notification Subsystem - notification|vibrationEnabled?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|badgeFlag?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|type: notification.SlotType;|Added| -| +|Common Event and Notification Subsystem - wantAgent|code: number;|Added| -| +|Common Event and Notification Subsystem - notification|contentType: ContentType;|Added| -| +|Common Event and Notification Subsystem - notification|picture: image.PixelMap;|Added| -| +|Common Event and Notification Subsystem - notification|briefText: string;|Added| -| +|Common Event and Notification Subsystem - notification|briefText: string;|Added| -| +|Common Event and Notification Subsystem - notification|briefText: string;|Added| -| +|Common Event and Notification Subsystem - notification|bypassDnd?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|additionalText?: string;|Added| -| +|Common Event and Notification Subsystem - wantAgent|cancel(info: WantAgentInfo, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - wantAgent|enum OperationType|Added| -| +|Common Event and Notification Subsystem - wantAgent|enum WantAgentFlags|Added| -| +|Common Event and Notification Subsystem - wantAgent|permission?: string;|Added| -| +|Common Event and Notification Subsystem - notification|picture?: NotificationPictureContent;|Added| -| +|Common Event and Notification Subsystem - notification|normal?: NotificationBasicContent;|Added| -| +|Common Event and Notification Subsystem - notification|expandedTitle: string;|Added| -| +|Common Event and Notification Subsystem - notification|expandedTitle: string;|Added| -| +|Common Event and Notification Subsystem - wantAgent|trigger(info: WantAgentInfo, triggerInfo: TriggerInfo, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - wantAgent|extraInfo?: {[key: string]: any};|Added| -| +|Common Event and Notification Subsystem - notification|multiLine?: NotificationMultiLineContent;|Added| -| +|Common Event and Notification Subsystem - notification|level?: notification.SlotLevel;|Added| -| +|Common Event and Notification Subsystem - notification|lightColor?: number;|Added| -| +|Common Event and Notification Subsystem - notification|lightEnabled?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|lines: Array\;|Added| -| +|Common Event and Notification Subsystem - notification|lockscreenVisibility?: number;|Added| -| +|Common Event and Notification Subsystem - notification|longText: string;|Added| -| +|Common Event and Notification Subsystem - wantAgent|getBundleName(info: WantAgentInfo, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|longText?: NotificationLongTextContent;|Added| -| +|Common Event and Notification Subsystem - notification|longTitle: string;|Added| -| +|Common Event and Notification Subsystem - wantAgent|judgeEquality(info: WantAgentInfo, info2: WantAgentInfo, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - wantAgent|getUid(info: WantAgentInfo, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL = common.event.IVI_TEMPERATURE_ABNORMAL,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_VOLTAGE_RECOVERY = common.event.IVI_VOLTAGE_RECOVERY,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_TEMPERATURE_RECOVERY = common.event.IVI_TEMPERATURE_RECOVERY,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_ACTIVE = common.event.IVI_ACTIVE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USB_DEVICE_ATTACHED = usual.event.hardware.usb.action.USB_DEVICE_ATTACHED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USB_DEVICE_DETACHED = usual.event.hardware.usb.action.USB_DEVICE_DETACHED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_PAUSE = common.event.IVI_PAUSE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_STANDBY = common.event.IVI_STANDBY,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_LASTMODE_SAVE = common.event.IVI_LASTMODE_SAVE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_VOLTAGE_ABNORMAL = common.event.IVI_VOLTAGE_ABNORMAL,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_HIGH_TEMPERATURE = common.event.IVI_HIGH_TEMPERATURE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_EXTREME_TEMPERATURE = common.event.IVI_EXTREME_TEMPERATURE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DISK_UNMOUNTABLE = usual.event.data.DISK_UNMOUNTABLE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DISK_EJECT = usual.event.data.DISK_EJECT,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED = usual.event.data.VISIBLE_ACCOUNTS_UPDATED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_ACCOUNT_DELETED = usual.event.data.ACCOUNT_DELETED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_FOUNDATION_READY = common.event.FOUNDATION_READY,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_AIRPLANE_MODE_CHANGED = usual.event.AIRPLANE_MODE|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USB_ACCESSORY_ATTACHED = usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USB_ACCESSORY_DETACHED = usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DISK_REMOVED = usual.event.data.DISK_REMOVED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DISK_UNMOUNTED = usual.event.data.DISK_UNMOUNTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DISK_MOUNTED = usual.event.data.DISK_MOUNTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DISK_BAD_REMOVAL = usual.event.data.DISK_BAD_REMOVAL,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED = usual.event.nfc.action.RF_FIELD_OFF_DETECTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DISCHARGING = usual.event.DISCHARGING,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_CHARGING = usual.event.CHARGING,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED = usual.event.DEVICE_IDLE_MODE_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_POWER_SAVE_MODE_CHANGED = usual.event.POWER_SAVE_MODE_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_ADDED = usual.event.USER_ADDED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_REMOVED = usual.event.USER_REMOVED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_ABILITY_ADDED = common.event.ABILITY_ADDED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_ABILITY_REMOVED = common.event.ABILITY_REMOVED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_ABILITY_UPDATED = common.event.ABILITY_UPDATED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_LOCATION_MODE_STATE_CHANGED = usual.event.location.MODE_STATE_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_IVI_SLEEP = common.event.IVI_SLEEP,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE = usual.event.bluetooth.host.NAME_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE = usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE = usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE = usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED = usual.event.nfc.action.ADAPTER_STATE_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED = usual.event.nfc.action.RF_FIELD_ON_DETECTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE = usual.event.bluetooth.host.REQ_ENABLE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE = usual.event.bluetooth.host.REQ_DISABLE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE = usual.event.bluetooth.host.SCAN_MODE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED = usual.event.bluetooth.host.DISCOVERY_STARTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED = usual.event.bluetooth.host.DISCOVERY_FINISHED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_P2P_CONN_STATE = usual.event.wifi.p2p.CONN_STATE_CHANGE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_P2P_STATE_CHANGED = usual.event.wifi.p2p.STATE_CHANGE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED = usual.event.wifi.p2p.DEVICES_CHANGE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED = usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED = usual.event.wifi.p2p.GROUP_STATE_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE = usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE = usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE = usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE = usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE = usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_RSSI_VALUE = usual.event.wifi.RSSI_VALUE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_CONN_STATE = usual.event.wifi.CONN_STATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_HOTSPOT_STATE = usual.event.wifi.HOTSPOT_STATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_AP_STA_JOIN = usual.event.wifi.WIFI_HS_STA_JOIN,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_AP_STA_LEAVE = usual.event.wifi.WIFI_HS_STA_LEAVE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE = usual.event.wifi.mplink.STATE_CHANGE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_HWID_LOGOUT = common.event.HWID_LOGOUT,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_HWID_TOKEN_INVALID = common.event.HWID_TOKEN_INVALID,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_HWID_LOGOFF = common.event.HWID_LOGOFF,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_POWER_STATE = usual.event.wifi.POWER_STATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_SCAN_FINISHED = usual.event.wifi.SCAN_FINISHED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|clearAbortCommonEvent(): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|bundleName?: string;|Added| -| +|Common Event and Notification Subsystem - commonEvent|code?: number;|Added| -| +|Common Event and Notification Subsystem - commonEvent|data?: string;|Added| -| +|Common Event and Notification Subsystem - commonEvent|subscriberPermissions?: Array\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|isOrdered?: boolean;|Added| -| +|Common Event and Notification Subsystem - commonEvent|isSticky?: boolean;|Added| -| +|Common Event and Notification Subsystem - commonEvent|abortCommonEvent(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|abortCommonEvent(): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|isOrderedCommonEvent(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|isOrderedCommonEvent(): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BOOT_COMPLETED = usual.event.BOOT_COMPLETED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_LOCKED_BOOT_COMPLETED = usual.event.LOCKED_BOOT_COMPLETED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_SHUTDOWN = usual.event.SHUTDOWN,|Added| -| +|Common Event and Notification Subsystem - commonEvent|isStickyCommonEvent(): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|getData(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|getData(): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|getSubscribeInfo(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|getSubscribeInfo(): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|publish(event: string, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|event: string|Added| -| +|Common Event and Notification Subsystem - commonEvent|bundleName?: string;|Added| -| +|Common Event and Notification Subsystem - commonEvent|code?: number;|Added| -| +|Common Event and Notification Subsystem - commonEvent|data?: string;|Added| -| +|Common Event and Notification Subsystem - commonEvent|setCode(code: number, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DRIVE_MODE = common.event.DRIVE_MODE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_HOME_MODE = common.event.HOME_MODE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_OFFICE_MODE = common.event.OFFICE_MODE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_STARTED = usual.event.USER_STARTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_BACKGROUND = usual.event.USER_BACKGROUND,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_FOREGROUND = usual.event.USER_FOREGROUND,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_SWITCHED = usual.event.USER_SWITCHED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_STARTING = usual.event.USER_STARTING,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_UNLOCKED = usual.event.USER_UNLOCKED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_STOPPING = usual.event.USER_STOPPING,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_STOPPED = usual.event.USER_STOPPED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_HWID_LOGIN = common.event.HWID_LOGIN,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_VERIFIED = usual.event.PACKAGE_VERIFIED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE = usual.event.EXTERNAL_APPLICATIONS_AVAILABLE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE = usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_CONFIGURATION_CHANGED = usual.event.CONFIGURATION_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_LOCALE_CHANGED = usual.event.LOCALE_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_MANAGE_PACKAGE_STORAGE = usual.event.MANAGE_PACKAGE_STORAGE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGES_UNSUSPENDED = usual.event.PACKAGES_UNSUSPENDED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_MY_PACKAGE_SUSPENDED = usual.event.MY_PACKAGE_SUSPENDED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_MY_PACKAGE_UNSUSPENDED = usual.event.MY_PACKAGE_UNSUSPENDED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_UID_REMOVED = usual.event.UID_REMOVED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_FIRST_LAUNCH = usual.event.PACKAGE_FIRST_LAUNCH,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION = usual.event.PACKAGE_NEEDS_VERIFICATION,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_SCREEN_OFF = usual.event.SCREEN_OFF,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_SCREEN_ON = usual.event.SCREEN_ON,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_USER_PRESENT = usual.event.USER_PRESENT,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_TIME_TICK = usual.event.TIME_TICK,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_TIME_CHANGED = usual.event.TIME_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_DATE_CHANGED = usual.event.DATE_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BATTERY_CHANGED = usual.event.BATTERY_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BATTERY_LOW = usual.event.BATTERY_LOW,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BATTERY_OKAY = usual.event.BATTERY_OKAY,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_POWER_CONNECTED = usual.event.POWER_CONNECTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_POWER_DISCONNECTED = usual.event.POWER_DISCONNECTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED = usual.event.bluetooth.remotedevice.ACL_CONNECTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED = usual.event.bluetooth.remotedevice.ACL_DISCONNECTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|getAbortCommonEvent(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE = usual.event.bluetooth.remotedevice.NAME_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|getAbortCommonEvent(): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE = usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE = usual.event.bluetooth.remotedevice.PAIR_STATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|getCode(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|setCode(code: number): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE = usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE = usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|getCode(): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT = usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT,|Added| -| +|Common Event and Notification Subsystem - commonEvent|setCodeAndData(code: number, data: string, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT = usual.event.bluetooth.remotedevice.SDP_RESULT,|Added| -| +|Common Event and Notification Subsystem - commonEvent|isStickyCommonEvent(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE = usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|setCodeAndData(code: number, data: string): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|events: Array\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE = usual.event.bluetooth.host.STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE = usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|setData(data: string, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE = usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE = usual.event.bluetooth.host.REQ_DISCOVERABLE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|publisherPermission?: string;|Added| -| +|Common Event and Notification Subsystem - commonEvent|setData(data: string): Promise\;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE = usual.event.bluetooth.remotedevice.UUID_VALUE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|publisherDeviceId?: string;|Added| -| +|Common Event and Notification Subsystem - commonEvent|clearAbortCommonEvent(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - commonEvent|userId?: number;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_TIMEZONE_CHANGED = usual.event.TIMEZONE_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ = usual.event.bluetooth.remotedevice.PAIRING_REQ,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED = usual.event.bluetooth.remotedevice.DISCOVERED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|priority?: number;|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BUNDLE_REMOVED = usual.event.BUNDLE_REMOVED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE = usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL = usual.event.bluetooth.remotedevice.PAIRING_CANCEL,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_CLOSE_SYSTEM_DIALOGS = usual.event.CLOSE_SYSTEM_DIALOGS,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_ADDED = usual.event.PACKAGE_ADDED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ = usual.event.bluetooth.remotedevice.CONNECT_REQ,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_FULLY_REMOVED = usual.event.PACKAGE_FULLY_REMOVED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_REPLACED = usual.event.PACKAGE_REPLACED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY = usual.event.bluetooth.remotedevice.CONNECT_REPLY,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_MY_PACKAGE_REPLACED = usual.event.MY_PACKAGE_REPLACED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_CHANGED = usual.event.PACKAGE_CHANGED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL = usual.event.bluetooth.remotedevice.CONNECT_CANCEL,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_REMOVED = usual.event.PACKAGE_REMOVED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_RESTARTED = usual.event.PACKAGE_RESTARTED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGE_DATA_CLEARED = usual.event.PACKAGE_DATA_CLEARED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_PACKAGES_SUSPENDED = usual.event.PACKAGES_SUSPENDED,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE = usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE,|Added| -| +|Common Event and Notification Subsystem - commonEvent|COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED = usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE,|Added| -| +|Common Event and Notification Subsystem - notification|LEVEL_NONE = 0,|Added| -| +|Common Event and Notification Subsystem - notification|LEVEL_MIN = 1,|Added| -| +|Common Event and Notification Subsystem - notification|LEVEL_LOW = 2,|Added| -| +|Common Event and Notification Subsystem - notification|LEVEL_DEFAULT = 3,|Added| -| +|Common Event and Notification Subsystem - notification|label?: string;|Added| -| +|Common Event and Notification Subsystem - notification|bundle: string;|Added| -| +|Common Event and Notification Subsystem - notification|uid?: number;|Added| -| +|Common Event and Notification Subsystem - notification|NOTIFICATION_CONTENT_MULTILINE,|Added| -| +|Common Event and Notification Subsystem - notification|UNKNOWN_TYPE = 0,|Added| -| +|Common Event and Notification Subsystem - notification|SOCIAL_COMMUNICATION = 1,|Added| -| +|Common Event and Notification Subsystem - notification|LEVEL_HIGH = 4,|Added| -| +|Common Event and Notification Subsystem - notification|NOTIFICATION_CONTENT_BASIC_TEXT,|Added| -| +|Common Event and Notification Subsystem - notification|NOTIFICATION_CONTENT_LONG_TEXT,|Added| -| +|Common Event and Notification Subsystem - notification|NOTIFICATION_CONTENT_PICTURE,|Added| -| +|Common Event and Notification Subsystem - notification|isFloatingIcon?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|label?: string;|Added| -| +|Common Event and Notification Subsystem - notification|badgeIconStyle?: number;|Added| -| +|Common Event and Notification Subsystem - notification|showDeliveryTime?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|isAlertOnce?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|getActiveNotifications(callback: AsyncCallback\>): void;|Added| -| +|Common Event and Notification Subsystem - notification|isStopwatch?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|isCountDown?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|getActiveNotifications(): Promise\>;|Added| -| +|Common Event and Notification Subsystem - notification|getActiveNotificationCount(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|readonly creatorUid?: number;|Added| -| +|Common Event and Notification Subsystem - notification|getActiveNotificationCount(): Promise\;|Added| -| +|Common Event and Notification Subsystem - notification|readonly creatorPid?: number;|Added| -| +|Common Event and Notification Subsystem - notification|cancel(id: number, label?: string): Promise\;|Added| -| +|Common Event and Notification Subsystem - notification|classification?: string;|Added| -| +|Common Event and Notification Subsystem - notification|readonly hashCode?: string;|Added| -| +|Common Event and Notification Subsystem - notification|cancelAll(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|actionButtons?: Array\;|Added| -| +|Common Event and Notification Subsystem - notification|cancelAll(): Promise\;|Added| -| +|Common Event and Notification Subsystem - notification|smallIcon?: image.PixelMap;|Added| -| +|Common Event and Notification Subsystem - notification|isUnremovable?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|largeIcon?: image.PixelMap;|Added| -| +|Common Event and Notification Subsystem - notification|deliveryTime?: number;|Added| -| +|Common Event and Notification Subsystem - notification|readonly creatorBundleName?: string;|Added| -| +|Common Event and Notification Subsystem - notification|tapDismissed?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|publish(request: NotificationRequest): Promise\;|Added| -| +|Common Event and Notification Subsystem - notification|autoDeletedTime?: number;|Added| -| +|Common Event and Notification Subsystem - notification|cancel(id: number, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|content: NotificationContent;|Added| -| +|Common Event and Notification Subsystem - notification|wantAgent?: WantAgentInfo;|Added| -| +|Common Event and Notification Subsystem - notification|cancel(id: number, label: string, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|getSlot(slotType: SlotType, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|extraInfo?: {[key: string]: any};|Added| -| +|Common Event and Notification Subsystem - notification|getSlot(slotType: SlotType): Promise\;|Added| -| +|Common Event and Notification Subsystem - notification|SERVICE_INFORMATION = 2,|Added| -| +|Common Event and Notification Subsystem - notification|color?: number;|Added| -| +|Common Event and Notification Subsystem - notification|id?: number;|Added| -| +|Common Event and Notification Subsystem - notification|getSlots(callback: AsyncCallback\>): void;|Added| -| +|Common Event and Notification Subsystem - notification|CONTENT_INFORMATION = 3,|Added| -| +|Common Event and Notification Subsystem - notification|slotType?: notification.SlotType;|Added| -| +|Common Event and Notification Subsystem - notification|colorEnabled?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|OTHER_TYPES = 0xFFFF,|Added| -| +|Common Event and Notification Subsystem - notification|isOngoing?: boolean;|Added| -| +|Common Event and Notification Subsystem - notification|addSlot(type: SlotType, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|id: number;|Added| -| +|Common Event and Notification Subsystem - notification|addSlot(type: SlotType): Promise\;|Added| -| +|Common Event and Notification Subsystem - notification|desc?: string;|Added| -| +|Common Event and Notification Subsystem - notification|publish(request: NotificationRequest, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|removeAllSlots(callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|removeAllSlots(): Promise\;|Added| -| +|Common Event and Notification Subsystem - notification|getSlots(): Promise\>;|Added| -| +|Common Event and Notification Subsystem - notification|removeSlot(slotType: SlotType, callback: AsyncCallback\): void;|Added| -| +|Common Event and Notification Subsystem - notification|removeSlot(slotType: SlotType): Promise\;|Added| -| +|Globalization Subsystem - resourceManager|getString(resId: number, callback: AsyncCallback\);
getString(resId: number): Promise\;|Added| -| +|Globalization Subsystem - resourceManager|getStringArray(resId: number, callback: AsyncCallback\>);
getStringArray(resId: number): Promise\>;|Added| -| +|Globalization Subsystem - resourceManager|getConfiguration(callback: AsyncCallback\);
getConfiguration(): Promise\;|Added| -| +|Globalization Subsystem - resourceManager|getDeviceCapability(callback: AsyncCallback\);
getDeviceCapability(): Promise\;|Added| -| +|Globalization Subsystem - resourceManager|getMedia(resId: number, callback: AsyncCallback\);
getMedia(resId: number): Promise\;
getMediaBase64(resId: number, callback: AsyncCallback\);
getMediaBase64(resId: number): Promise\;|Added| -| +|Globalization Subsystem - resourceManager|"getPluralString(resId: number, num: number, callback: AsyncCallback\);
getPluralString(resId: number, num: number): Promise\;"|Added| -| +|Globalization Subsystem - resourceManager|DeviceCapability|Added| -| +|Globalization Subsystem - resourceManager|"getMediaBase64(resId: number, callback: AsyncCallback\);
getMediaBase64(resId: number): Promise\;"|Added| -| +|Globalization Subsystem - resourceManager|"getResourceManager(callback: AsyncCallback\);
getResourceManager(bundleName: string, callback: AsyncCallback\);
getResourceManager(): Promise\;
getResourceManager(bundleName: string): Promise\;"|Added| -| +|Globalization Subsystem - resourceManager|DeviceType|Added| -| +|Globalization Subsystem - resourceManager|Direction|Added| -| +|Globalization Subsystem - resourceManager|Configuration|Added| -| +|Globalization Subsystem - resourceManager|ScreenDensity|Added| -| +|Globalization Subsystem - resourceManager|deviceType|Added| -| +|Globalization Subsystem - resourceManager|locale|Added| -| +|Globalization Subsystem - resourceManager|direction|Added| -| +|Globalization Subsystem - resourceManager|screenDensity|Added| -| +|Power Management Subsystem - batteryInfo|batteryInfo:const batterySOC: number;|Added| -| +|Power Management Subsystem - batteryInfo|batteryInfo:const technology: string;|Added| -| +|Power Management Subsystem - batteryInfo|batteryInfo:const isBatteryPresent: boolean;|Added| -| +|Power Management Subsystem - batteryInfo|batteryInfo:const batteryTemperature: number;|Added| -| +|Power Management Subsystem - batteryInfo|batteryInfo:const pluggedType: BatteryPluggedType;|Added| -| +|Power Management Subsystem - batteryInfo|batteryInfo:const chargingStatus: BatteryChargeState;|Added| -| +|Power Management Subsystem - batteryInfo|batteryInfo:const healthStatus: BatteryHealthState;|Added| -| +|Power Management Subsystem - batteryInfo|batteryInfo:const voltage: number;|Added| -| +|Power Management Subsystem - batteryInfo|BatteryChargeState:NONE|Added| -| +|Power Management Subsystem - batteryInfo|BatteryChargeState:DISABLE|Added| -| +|Power Management Subsystem - batteryInfo|BatteryChargeState:ENABLE,|Added| -| +|Power Management Subsystem - batteryInfo|BatteryChargeState:FULL|Added| -| +|Power Management Subsystem - batteryInfo|BatteryHealthState:COLD|Added| -| +|Power Management Subsystem - batteryInfo|BatteryHealthState:OVERHEAT|Added| -| +|Power Management Subsystem - batteryInfo|BatteryHealthState:OVERVOLTAGE|Added| -| +|Power Management Subsystem - batteryInfo|BatteryHealthState:DEAD|Added| -| +|Power Management Subsystem - batteryInfo|BatteryHealthState:UNKNOWN|Added| -| +|Power Management Subsystem - batteryInfo|BatteryHealthState:GOOD|Added| -| +|Power Management Subsystem - batteryInfo|BatteryPluggedType:WIRELESS|Added| -| +|Power Management Subsystem - batteryInfo|BatteryPluggedType:NONE|Added| -| +|Power Management Subsystem - batteryInfo|BatteryPluggedType:AC|Added| -| +|Power Management Subsystem - batteryInfo|BatteryPluggedType:USB|Added| -| +|Power Management Subsystem - runningLock|RunningLock:unlock()|Added| -| +|Power Management Subsystem - runningLock|runningLock:isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback\): void;|Added| -| +|Power Management Subsystem - runningLock|runningLock:createRunningLock(name: string, type: runningLockType): RunningLock|Added| -| +|Power Management Subsystem - runningLock|RunningLock:lock(timeout: number)|Added| -| +|Power Management Subsystem - runningLock|RunningLock:isUsed(): boolean|Added| -| +|Power Management Subsystem - runningLock|RunningLockType:BACKGROUND|Added| -| +|Power Management Subsystem - runningLock|RunningLockType:PROXIMITY_SCREEN_CONTROL|Added| -| +|Power Management Subsystem - power|power:rebootDevice(reason ?: string)|Added| -| +|Power Management Subsystem - power|power:isScreenOn(callback: AsyncCallback\): void;|Added| -| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-ability.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-ability.md index f923e53d2495d1f7bb0943afd028defe75a2ed08..0557274515698f868d216754ef7d0ba24958bddc 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-ability.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-ability.md @@ -6,18 +6,18 @@ The table below lists the APIs changes of the ability framework in OpenHarmony 3 | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| -| featureability | FeatureAbility | static getDeviceList(flag: number): Promise; | Added| +| featureability | FeatureAbility | static getDeviceList(flag: number): Promise\; | Added| | customizeData | CustomizeData | extra: string; | Added| | applicationInfo | ApplicationInfo | readonly entityType: string; | Added| | applicationInfo | ApplicationInfo | readonly uid: number; | Added| | applicationInfo | ApplicationInfo | readonly accessTokenId: number; | Added| | applicationInfo | ApplicationInfo | readonly removable: boolean; | Added| -| applicationInfo | ApplicationInfo | readonly metaData: Map>; | Added| +| applicationInfo | ApplicationInfo | readonly metaData: Map\>; | Added| | applicationInfo | ApplicationInfo | readonly codePath: string; | Added| -| applicationInfo | ApplicationInfo | readonly moduleInfos: Array; | Added| +| applicationInfo | ApplicationInfo | readonly moduleInfos: Array\; | Added| | shellCmdResult | ShellCmdResult | exitCode: number; | Added| | shellCmdResult | ShellCmdResult | stdResult: String; | Added| -| ProcessRunningInfo | ProcessRunningInfo | bundleNames: Array; | Added| +| ProcessRunningInfo | ProcessRunningInfo | bundleNames: Array\; | Added| | ProcessRunningInfo | ProcessRunningInfo | processName: string; | Added| | ProcessRunningInfo | ProcessRunningInfo | uid: number; | Added| | ProcessRunningInfo | ProcessRunningInfo | pid: number; | Added| @@ -26,29 +26,29 @@ The table below lists the APIs changes of the ability framework in OpenHarmony 3 | abilityDelegatorArgs | AbilityDelegatorArgs | testCaseNames: string; | Added| | abilityDelegatorArgs | AbilityDelegatorArgs | parameters: {[key: string]: string}; | Added| | abilityDelegatorArgs | AbilityDelegatorArgs | bundleName: string; | Added| -| abilityDelegator | AbilityDelegator | executeShellCommand(cmd: string, callback: AsyncCallback): void;
executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback): void;
executeShellCommand(cmd: string, timeoutSecs?: number): Promise; | Added| -| abilityDelegator | AbilityDelegator | print(msg: string, callback: AsyncCallback): void;
print(msg: string): Promise; | Added| -| context | Context | printDrawnCompleted(callback: AsyncCallback): void;
printDrawnCompleted(): Promise; | Added| -| context | Context | isUpdatingConfigurations(callback: AsyncCallback): void;
isUpdatingConfigurations(): Promise; | Added| -| context | Context | getAbilityInfo(callback: AsyncCallback): void
getAbilityInfo(): Promise; | Added| +| abilityDelegator | AbilityDelegator | executeShellCommand(cmd: string, callback: AsyncCallback\): void;
executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\): void;
executeShellCommand(cmd: string, timeoutSecs?: number): Promise\; | Added| +| abilityDelegator | AbilityDelegator | print(msg: string, callback: AsyncCallback\): void;
print(msg: string): Promise\; | Added| +| context | Context | printDrawnCompleted(callback: AsyncCallback\): void;
printDrawnCompleted(): Promise\; | Added| +| context | Context | isUpdatingConfigurations(callback: AsyncCallback\): void;
isUpdatingConfigurations(): Promise\; | Added| +| context | Context | getAbilityInfo(callback: AsyncCallback\): void
getAbilityInfo(): Promise\; | Added| | context | Context | getApplicationContext(): Context; | Added| -| context | Context | getAppVersionInfo(callback: AsyncCallback): void
getAppVersionInfo(): Promise; | Added| -| context | Context | getHapModuleInfo(callback: AsyncCallback): void
getHapModuleInfo(): Promise; | Added| -| context | Context | getAppType(callback: AsyncCallback): void
getAppType(): Promise; | Added| -| context | Context | getOrCreateDistributedDir(): Promise;
getOrCreateDistributedDir(callback: AsyncCallback): void; | Added| -| context | Context | getCacheDir(callback: AsyncCallback): void;
getCacheDir(): Promise; | Added| -| context | Context | getFilesDir(callback: AsyncCallback): void;
getFilesDir(): Promise; | Added| -| context | Context | setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback): void
setWakeUpScreen(wakeUp: boolean): Promise; | Added| -| context | Context | setShowOnLockScreen(show: boolean, callback: AsyncCallback): void
setShowOnLockScreen(show: boolean): Promise; | Added| -| context | Context | setDisplayOrientation(orientation: DisplayOrientation, callback: AsyncCallback): void
setDisplayOrientation(orientation: DisplayOrientation): Promise; | Added| -| context | Context | getDisplayOrientation(callback: AsyncCallback): void
getDisplayOrientation(): Promise; | Added| +| context | Context | getAppVersionInfo(callback: AsyncCallback\): void
getAppVersionInfo(): Promise\; | Added| +| context | Context | getHapModuleInfo(callback: AsyncCallback\): void
getHapModuleInfo(): Promise\; | Added| +| context | Context | getAppType(callback: AsyncCallback\): void
getAppType(): Promise\; | Added| +| context | Context | getOrCreateDistributedDir(): Promise\;
getOrCreateDistributedDir(callback: AsyncCallback\): void; | Added| +| context | Context | getCacheDir(callback: AsyncCallback\): void;
getCacheDir(): Promise\; | Added| +| context | Context | getFilesDir(callback: AsyncCallback\): void;
getFilesDir(): Promise\; | Added| +| context | Context | setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback\): void
setWakeUpScreen(wakeUp: boolean): Promise\; | Added| +| context | Context | setShowOnLockScreen(show: boolean, callback: AsyncCallback\): void
setShowOnLockScreen(show: boolean): Promise\; | Added| +| context | Context | setDisplayOrientation(orientation: DisplayOrientation, callback: AsyncCallback\): void
setDisplayOrientation(orientation: DisplayOrientation): Promise\; | Added| +| context | Context | getDisplayOrientation(callback: AsyncCallback\): void
getDisplayOrientation(): Promise\; | Added| | appVersionInfo | AppVersionInfo | readonly versionName: string; | Added| | appVersionInfo | AppVersionInfo | readonly versionCode: number; | Added| | appVersionInfo | AppVersionInfo | readonly appName: string; | Added| -| dataAbilityHelper | PacMap | [key: string]: number \| string \| boolean \| Array \| null; | Added| -| dataAbilityHelper | DataAbilityHelper | executeBatch(uri: string, operations: Array, callback: AsyncCallback>): void;
executeBatch(uri: string, operations: Array): Promise>; | Added| -| dataAbilityHelper | DataAbilityHelper | call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback): void;
call(uri: string, method: string, arg: string, extras: PacMap): Promise; | Added| -| ohos.application.Want | Want | entities?: Array; | Added| +| dataAbilityHelper | PacMap | [key: string]: number \| string \| boolean \| Array\ \| null; | Added| +| dataAbilityHelper | DataAbilityHelper | executeBatch(uri: string, operations: Array\, callback: AsyncCallback\>): void;
executeBatch(uri: string, operations: Array\): Promise\>; | Added| +| dataAbilityHelper | DataAbilityHelper | call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback\): void;
call(uri: string, method: string, arg: string, extras: PacMap): Promise\; | Added| +| ohos.application.Want | Want | entities?: Array\; | Added| | ohos.application.Want | Want | parameters?: {[key: string]: any}; | Added| | ohos.application.Want | Want | action?: string; | Added| | ohos.application.Want | Want | flags?: number; | Added| @@ -59,8 +59,8 @@ The table below lists the APIs changes of the ability framework in OpenHarmony 3 | ohos.application.Want | Want | deviceId?: string; | Added| | ohos.application.testRunner | TestRunner | onRun(): void; | Added| | ohos.application.testRunner | TestRunner | onPrepare(): void; | Added| -| ohos.application.formProvider | formProvider | function updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback): void;
function updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise; | Added| -| ohos.application.formProvider | formProvider | function setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback): void;
function setFormNextRefreshTime(formId: string, minute: number): Promise; | Added| +| ohos.application.formProvider | formProvider | updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback\): void;
updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise\; | Added| +| ohos.application.formProvider | formProvider | setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback\): void;
setFormNextRefreshTime(formId: string, minute: number): Promise\; | Added| | ohos.application.formInfo | FormParam | TEMPORARY_KEY = "ohos.extra.param.key.form_temporary" | Added| | ohos.application.formInfo | FormParam | HEIGHT_KEY = "ohos.extra.param.key.form_height" | Added| | ohos.application.formInfo | FormParam | WIDTH_KEY = "ohos.extra.param.key.form_width" | Added| @@ -77,7 +77,7 @@ The table below lists the APIs changes of the ability framework in OpenHarmony 3 | ohos.application.formInfo | ColorMode | MODE_AUTO = -1 | Added| | ohos.application.formInfo | FormType | JS = 1 | Added| | ohos.application.formInfo | FormInfo | customizeData: {[key: string]: [value: string]}; | Added| -| ohos.application.formInfo | FormInfo | supportDimensions: Array; | Added| +| ohos.application.formInfo | FormInfo | supportDimensions: Array\; | Added| | ohos.application.formInfo | FormInfo | defaultDimension: number; | Added| | ohos.application.formInfo | FormInfo | updateDuration: number; | Added| | ohos.application.formInfo | FormInfo | formConfigAbility: string; | Added| @@ -117,42 +117,42 @@ The table below lists the APIs changes of the ability framework in OpenHarmony 3 | ohos.application.formError | FormError | ERR_PERMISSION_DENY = 2 | Added| | ohos.application.formError | FormError | ERR_COMMON = 1 | Added| | ohos.application.formBindingData | FormBindingData | data: Object | Added| -| ohos.application.formBindingData | formBindingData | function createFormBindingData(obj?: Object \| string): FormBindingData; | Added| +| ohos.application.formBindingData | formBindingData | createFormBindingData(obj?: Object \| string): FormBindingData; | Added| | ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_LIGHT = 1 | Added| | ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_DARK = 0 | Added| | ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_NOT_SET = -1 | Added| | ohos.application.Configuration | Configuration | colorMode: ConfigurationConstant.ColorMode; | Added| | ohos.application.Configuration | Configuration | language: string; | Added| -| ohos.application.appManager | appManager | function getAppMemorySize(): Promise;
function getAppMemorySize(callback: AsyncCallback): void; | Added| -| ohos.application.appManager | appManager | function isRamConstrainedDevice(): Promise;
function isRamConstrainedDevice(callback: AsyncCallback): void; | Added| -| ohos.application.appManager | appManager | function getProcessRunningInfos(): Promise>;
function getProcessRunningInfos(callback: AsyncCallback>): void; | Added| -| ohos.application.appManager | appManager | function isRunningInStabilityTest(callback: AsyncCallback): void;
function isRunningInStabilityTest(): Promise; | Added| +| ohos.application.appManager | appManager | getAppMemorySize(): Promise\;
getAppMemorySize(callback: AsyncCallback\): void; | Added| +| ohos.application.appManager | appManager | isRamConstrainedDevice(): Promise\;
isRamConstrainedDevice(callback: AsyncCallback\): void; | Added| +| ohos.application.appManager | appManager | getProcessRunningInfos(): Promise\>;
getProcessRunningInfos(callback: AsyncCallback\>): void; | Added| +| ohos.application.appManager | appManager | isRunningInStabilityTest(callback: AsyncCallback\): void;
isRunningInStabilityTest(): Promise\; | Added| | ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | DESTROY | Added| | ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | BACKGROUND | Added| | ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | FOREGROUND | Added| | ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | CREATE | Added| | ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | UNINITIALIZED | Added| -| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | function getArguments(): AbilityDelegatorArgs; | Added| -| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | function getAbilityDelegator(): AbilityDelegator; | Added| +| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | getArguments(): AbilityDelegatorArgs; | Added| +| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | getAbilityDelegator(): AbilityDelegator; | Added| | ohos.abilityAccessCtrl | GrantStatus | PERMISSION_GRANTED = 0 | Added| | ohos.abilityAccessCtrl | GrantStatus | PERMISSION_DENIED = -1 | Added| -| ohos.abilityAccessCtrl | AtManager | verifyAccessToken(tokenID: number, permissionName: string): Promise; | Added| -| ohos.abilityAccessCtrl | abilityAccessCtrl | function createAtManager(): AtManager; | Added| +| ohos.abilityAccessCtrl | AtManager | verifyAccessToken(tokenID: number, permissionName: string): Promise\; | Added| +| ohos.abilityAccessCtrl | abilityAccessCtrl | createAtManager(): AtManager; | Added| | ohos.ability.wantConstant | Action | ACTION_APP_ACCOUNT_OAUTH = "ohos.account.appAccount.action.oauth" | Added| | ohos.ability.wantConstant | Action | ACTION_VIDEO_CAPTURE = "ohos.want.action.videoCapture" | Added| | ohos.ability.wantConstant | Action | ACTION_IMAGE_CAPTURE = "ohos.want.action.imageCapture" | Added| | ohos.ability.particleAbility | ErrorCode | INVALID_PARAMETER = -1 | Added| -| ohos.ability.particleAbility | particleAbility | function disconnectAbility(connection: number, callback:AsyncCallback): void;
function disconnectAbility(connection: number): Promise; | Added| -| ohos.ability.particleAbility | particleAbility | function connectAbility(request: Want, options:ConnectOptions): number; | Added| -| ohos.ability.particleAbility | particleAbility | function cancelBackgroundRunning(callback: AsyncCallback): void;
function cancelBackgroundRunning(): Promise; | Added| -| ohos.ability.particleAbility | particleAbility | function startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback): void;
function startBackgroundRunning(id: number, request: NotificationRequest): Promise; | Added| -| ohos.ability.featureAbility | featureAbility | function getWindow(callback: AsyncCallback): void;
function getWindow(): Promise; | Added| +| ohos.ability.particleAbility | particleAbility | disconnectAbility(connection: number, callback:AsyncCallback\): void;
disconnectAbility(connection: number): Promise\; | Added| +| ohos.ability.particleAbility | particleAbility | connectAbility(request: Want, options:ConnectOptions): number; | Added| +| ohos.ability.particleAbility | particleAbility | cancelBackgroundRunning(callback: AsyncCallback\): void;
cancelBackgroundRunning(): Promise\; | Added| +| ohos.ability.particleAbility | particleAbility | startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback\): void;
startBackgroundRunning(id: number, request: NotificationRequest): Promise\; | Added| +| ohos.ability.featureAbility | featureAbility | getWindow(callback: AsyncCallback\): void;
getWindow(): Promise\; | Added| | ohos.ability.errorCode | ErrorCode | NO_ERROR = 0 | Added| | ohos.ability.errorCode | ErrorCode | INVALID_PARAMETER = -1 | Added| | ohos.ability.errorCode | ErrorCode | ABILITY_NOT_FOUND = -2 | Added| | ohos.ability.errorCode | ErrorCode | PERMISSION_DENY = -3 | Added| -| lifecycle | LifecycleData | call?(method: string, arg: string, extras: PacMap, callback: AsyncCallback): void; | Added| -| lifecycle | LifecycleData | executeBatch?(ops: Array, callback: AsyncCallback>): void; | Added| +| lifecycle | LifecycleData | call?(method: string, arg: string, extras: PacMap, callback: AsyncCallback\): void; | Added| +| lifecycle | LifecycleData | executeBatch?(ops: Array\, callback: AsyncCallback\>): void; | Added| | lifecycle | LifecycleService | onReconnect?(want: Want): void; | Added| | lifecycle | LifecycleApp | onMemoryLevel?(level: number): void; | Added| | lifecycle | LifecycleApp | onNewWant?(want: Want): void; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md index 3079ae75cd98fde79b4d6fa8489aaced83add9e1..b6ef53eeab9757c64af4273ffefab03ed7393166 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md @@ -11,7 +11,7 @@ The table below lists the APIs changes of the accessibility subsystem in OpenHar | ohos.accessibility | EventInfo | currentIndex?: number; | Added| | ohos.accessibility | EventInfo | beginIndex?: number; | Added| | ohos.accessibility | EventInfo | lastContent?: string; | Added| -| ohos.accessibility | EventInfo | contents?: Array; | Added| +| ohos.accessibility | EventInfo | contents?: Array\; | Added| | ohos.accessibility | EventInfo | textMoveUnit?: TextMoveUnit; | Added| | ohos.accessibility | EventInfo | triggerAction: Action; | Added| | ohos.accessibility | EventInfo | description?: string; | Added| @@ -21,10 +21,10 @@ The table below lists the APIs changes of the accessibility subsystem in OpenHar | ohos.accessibility | EventInfo | windowUpdateType?: WindowUpdateType; | Added| | ohos.accessibility | EventInfo | type: EventType; | Added| | ohos.accessibility | EventInfo | constructor(jsonObject); | Added| -| ohos.accessibility | AccessibilityAbilityInfo | readonly eventTypes: Array; | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly eventTypes: Array\; | Added| | ohos.accessibility | AccessibilityAbilityInfo | readonly description: string; | Added| -| ohos.accessibility | AccessibilityAbilityInfo | readonly capabilities: Array; | Added| -| ohos.accessibility | AccessibilityAbilityInfo | readonly abilityTypes: Array; | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly capabilities: Array\; | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly abilityTypes: Array\; | Added| | ohos.accessibility | AccessibilityAbilityInfo | readonly bundleName: string; | Added| | ohos.accessibility | AccessibilityAbilityInfo | readonly name: string; | Added| | ohos.accessibility | AccessibilityAbilityInfo | readonly id: string; | Added| @@ -34,18 +34,18 @@ The table below lists the APIs changes of the accessibility subsystem in OpenHar | ohos.accessibility | CaptionsStyle | fontColor: number \| string; | Added| | ohos.accessibility | CaptionsStyle | fontScale: number; | Added| | ohos.accessibility | CaptionsStyle | fontFamily: CaptionsFontFamily; | Added| -| ohos.accessibility | CaptionsManager | off(type: 'styleChange', callback?: Callback): void; | Added| -| ohos.accessibility | CaptionsManager | off(type: 'enableChange', callback?: Callback): void; | Added| -| ohos.accessibility | CaptionsManager | on(type: 'styleChange', callback: Callback): void; | Added| -| ohos.accessibility | CaptionsManager | on(type: 'enableChange', callback: Callback): void; | Added| +| ohos.accessibility | CaptionsManager | off(type: 'styleChange', callback?: Callback\): void; | Added| +| ohos.accessibility | CaptionsManager | off(type: 'enableChange', callback?: Callback\): void; | Added| +| ohos.accessibility | CaptionsManager | on(type: 'styleChange', callback: Callback\): void; | Added| +| ohos.accessibility | CaptionsManager | on(type: 'enableChange', callback: Callback\): void; | Added| | ohos.accessibility | CaptionsManager | style: CaptionsStyle; | Added| | ohos.accessibility | CaptionsManager | enabled: boolean; | Added| -| ohos.accessibility | accessibility | function getCaptionsManager(): CaptionsManager; | Added| -| ohos.accessibility | accessibility | function off(type: 'touchGuideStateChange', callback?: Callback): void; | Added| -| ohos.accessibility | accessibility | function off(type: 'accessibilityStateChange', callback?: Callback): void; | Added| -| ohos.accessibility | accessibility | function on(type: 'touchGuideStateChange', callback: Callback): void; | Added| -| ohos.accessibility | accessibility | function on(type: 'accessibilityStateChange', callback: Callback): void; | Added| -| ohos.accessibility | accessibility | function sendEvent(event: EventInfo, callback: AsyncCallback): void;
function sendEvent(event: EventInfo): Promise; | Added| -| ohos.accessibility | accessibility | function getAbilityLists(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback>): void;
function getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise>; | Added| -| ohos.accessibility | accessibility | function isOpenTouchGuide(callback: AsyncCallback): void;
function isOpenTouchGuide(): Promise; | Added| -| ohos.accessibility | accessibility | function isOpenAccessibility(callback: AsyncCallback): void;
function isOpenAccessibility(): Promise; | Added| +| ohos.accessibility | accessibility | getCaptionsManager(): CaptionsManager; | Added| +| ohos.accessibility | accessibility | off(type: 'touchGuideStateChange', callback?: Callback\): void; | Added| +| ohos.accessibility | accessibility | off(type: 'accessibilityStateChange', callback?: Callback\): void; | Added| +| ohos.accessibility | accessibility | on(type: 'touchGuideStateChange', callback: Callback\): void; | Added| +| ohos.accessibility | accessibility | on(type: 'accessibilityStateChange', callback: Callback\): void; | Added| +| ohos.accessibility | accessibility | sendEvent(event: EventInfo, callback: AsyncCallback\): void;
sendEvent(event: EventInfo): Promise\; | Added| +| ohos.accessibility | accessibility | getAbilityLists(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback\>): void;
getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise\>; | Added| +| ohos.accessibility | accessibility | isOpenTouchGuide(callback: AsyncCallback\): void;
isOpenTouchGuide(): Promise\; | Added| +| ohos.accessibility | accessibility | isOpenAccessibility(callback: AsyncCallback\): void;
isOpenAccessibility(): Promise\; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-account.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-account.md index 58949b3095bafdb7d9c5634d687d98b5fc8810b6..b6151f0b4f8aa2c81309b1e5d90ed667e7af4123 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-account.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-account.md @@ -20,27 +20,27 @@ The table below lists the APIs changes of the account subsystem in OpenHarmony 3 | ohos.account.osAccount | OsAccountInfo | createTime: number; | Added| | ohos.account.osAccount | OsAccountInfo | photo: string; | Added| | ohos.account.osAccount | OsAccountInfo | isVerified: boolean; | Added| -| ohos.account.osAccount | OsAccountInfo | constraints: Array; | Added| +| ohos.account.osAccount | OsAccountInfo | constraints: Array\; | Added| | ohos.account.osAccount | OsAccountInfo | type: OsAccountType; | Added| | ohos.account.osAccount | OsAccountInfo | localName: string; | Added| | ohos.account.osAccount | OsAccountInfo | localId: number; | Added| -| ohos.account.osAccount | AccountManager | getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback): void;
getSerialNumberByOsAccountLocalId(localId: number): Promise; | Added| -| ohos.account.osAccount | AccountManager | getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback): void;
getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise; | Added| -| ohos.account.osAccount | AccountManager | getDistributedVirtualDeviceId(callback: AsyncCallback): void;
getDistributedVirtualDeviceId(): Promise; | Added| -| ohos.account.osAccount | AccountManager | getOsAccountTypeFromProcess(callback: AsyncCallback): void;
getOsAccountTypeFromProcess(): Promise; | Added| -| ohos.account.osAccount | AccountManager | queryCurrentOsAccount(callback: AsyncCallback): void;
queryCurrentOsAccount(): Promise; | Added| -| ohos.account.osAccount | AccountManager | queryActivatedOsAccountIds(callback: AsyncCallback>): void;
queryActivatedOsAccountIds(): Promise>; | Added| -| ohos.account.osAccount | AccountManager | getOsAccountAllConstraints(localId: number, callback: AsyncCallback>): void;
getOsAccountAllConstraints(localId: number): Promise>; | Added| -| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback): void;
getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise; | Added| -| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback): void;
getOsAccountLocalIdFromUid(uid: number): Promise; | Added| -| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromProcess(callback: AsyncCallback): void;
getOsAccountLocalIdFromProcess(): Promise; | Added| -| ohos.account.osAccount | AccountManager | getCreatedOsAccountsCount(callback: AsyncCallback): void;
getCreatedOsAccountsCount(): Promise; | Added| -| ohos.account.osAccount | AccountManager | isOsAccountVerified(callback: AsyncCallback): void;
isOsAccountVerified(localId: number, callback: AsyncCallback): void;
isOsAccountVerified(localId?: number): Promise; | Added| -| ohos.account.osAccount | AccountManager | isTestOsAccount(callback: AsyncCallback): void;
isTestOsAccount(): Promise; | Added| -| ohos.account.osAccount | AccountManager | isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback): void;
isOsAccountConstraintEnable(localId: number, constraint: string): Promise; | Added| -| ohos.account.osAccount | AccountManager | isOsAccountActived(localId: number, callback: AsyncCallback): void;
isOsAccountActived(localId: number): Promise; | Added| -| ohos.account.osAccount | AccountManager | isMultiOsAccountEnable(callback: AsyncCallback): void;
isMultiOsAccountEnable(): Promise; | Added| -| ohos.account.osAccount | osAccount | function getAccountManager(): AccountManager; | Added| +| ohos.account.osAccount | AccountManager | getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback\): void;
getSerialNumberByOsAccountLocalId(localId: number): Promise\; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback\): void;
getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise\; | Added| +| ohos.account.osAccount | AccountManager | getDistributedVirtualDeviceId(callback: AsyncCallback\): void;
getDistributedVirtualDeviceId(): Promise\; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountTypeFromProcess(callback: AsyncCallback\): void;
getOsAccountTypeFromProcess(): Promise\; | Added| +| ohos.account.osAccount | AccountManager | queryCurrentOsAccount(callback: AsyncCallback\): void;
queryCurrentOsAccount(): Promise\; | Added| +| ohos.account.osAccount | AccountManager | queryActivatedOsAccountIds(callback: AsyncCallback\>): void;
queryActivatedOsAccountIds(): Promise\>; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountAllConstraints(localId: number, callback: AsyncCallback\>): void;
getOsAccountAllConstraints(localId: number): Promise\>; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback\): void;
getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise\; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback\): void;
getOsAccountLocalIdFromUid(uid: number): Promise\; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromProcess(callback: AsyncCallback\): void;
getOsAccountLocalIdFromProcess(): Promise\; | Added| +| ohos.account.osAccount | AccountManager | getCreatedOsAccountsCount(callback: AsyncCallback\): void;
getCreatedOsAccountsCount(): Promise\; | Added| +| ohos.account.osAccount | AccountManager | isOsAccountVerified(callback: AsyncCallback\): void;
isOsAccountVerified(localId: number, callback: AsyncCallback\): void;
isOsAccountVerified(localId?: number): Promise\; | Added| +| ohos.account.osAccount | AccountManager | isTestOsAccount(callback: AsyncCallback\): void;
isTestOsAccount(): Promise\; | Added| +| ohos.account.osAccount | AccountManager | isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback\): void;
isOsAccountConstraintEnable(localId: number, constraint: string): Promise\; | Added| +| ohos.account.osAccount | AccountManager | isOsAccountActived(localId: number, callback: AsyncCallback\): void;
isOsAccountActived(localId: number): Promise\; | Added| +| ohos.account.osAccount | AccountManager | isMultiOsAccountEnable(callback: AsyncCallback\): void;
isMultiOsAccountEnable(): Promise\; | Added| +| ohos.account.osAccount | osAccount | getAccountManager(): AccountManager; | Added| | ohos.account.appAccount | Authenticator | authenticate(name: string, authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | Added| | ohos.account.appAccount | Authenticator | addAccountImplicitly(authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | Added| | ohos.account.appAccount | AuthenticatorCallback | onRequestRedirected: (request: Want) => void; | Added| @@ -82,31 +82,31 @@ The table below lists the APIs changes of the account subsystem in OpenHarmony 3 | ohos.account.appAccount | OAuthTokenInfo | authType: string; | Added| | ohos.account.appAccount | AppAccountInfo | name: string; | Added| | ohos.account.appAccount | AppAccountInfo | owner: string; | Added| -| ohos.account.appAccount | AppAccountManager | getAuthenticatorInfo(owner: string, callback: AsyncCallback): void;
getAuthenticatorInfo(owner: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | getAuthenticatorCallback(sessionId: string, callback: AsyncCallback): void;
getAuthenticatorCallback(sessionId: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | getOAuthList(name: string, authType: string, callback: AsyncCallback>): void;
getOAuthList(name: string, authType: string): Promise>; | Added| -| ohos.account.appAccount | AppAccountManager | getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback>): void;
getAllOAuthTokens(name: string, owner: string): Promise>; | Added| -| ohos.account.appAccount | AppAccountManager | checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback): void;
checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback): void;
setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback): void;
deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback): void;
setOAuthToken(name: string, authType: string, token: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback): void;
getOAuthToken(name: string, owner: string, authType: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | getAuthenticatorInfo(owner: string, callback: AsyncCallback\): void;
getAuthenticatorInfo(owner: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | getAuthenticatorCallback(sessionId: string, callback: AsyncCallback\): void;
getAuthenticatorCallback(sessionId: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | getOAuthList(name: string, authType: string, callback: AsyncCallback\>): void;
getOAuthList(name: string, authType: string): Promise\>; | Added| +| ohos.account.appAccount | AppAccountManager | getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback\>): void;
getAllOAuthTokens(name: string, owner: string): Promise\>; | Added| +| ohos.account.appAccount | AppAccountManager | checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback\): void;
checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback\): void;
setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback\): void;
deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback\): void;
setOAuthToken(name: string, authType: string, token: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback\): void;
getOAuthToken(name: string, owner: string, authType: string): Promise\; | Added| | ohos.account.appAccount | AppAccountManager | authenticate(name: string, owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | Added| -| ohos.account.appAccount | AppAccountManager | off(type: 'change', callback?: Callback>): void; | Added| -| ohos.account.appAccount | AppAccountManager | on(type: 'change', owners: Array, callback: Callback>): void; | Added| -| ohos.account.appAccount | AppAccountManager | getAssociatedData(name: string, key: string, callback: AsyncCallback): void;
getAssociatedData(name: string, key: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | getAccountExtraInfo(name: string, callback: AsyncCallback): void;
getAccountExtraInfo(name: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback): void;
getAccountCredential(name: string, credentialType: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | getAllAccounts(owner: string, callback: AsyncCallback>): void;
getAllAccounts(owner: string): Promise>; | Added| -| ohos.account.appAccount | AppAccountManager | getAllAccessibleAccounts(callback: AsyncCallback>): void;
getAllAccessibleAccounts(): Promise>; | Added| -| ohos.account.appAccount | AppAccountManager | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback): void;
setAssociatedData(name: string, key: string, value: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback): void;
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback): void;
setAccountExtraInfo(name: string, extraInfo: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback): void;
setAccountCredential(name: string, credentialType: string, credential: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | checkAppAccountSyncEnable(name: string, callback: AsyncCallback): void;
checkAppAccountSyncEnable(name: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback): void;
enableAppAccess(name: string, bundleName: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback): void;
disableAppAccess(name: string, bundleName: string): Promise; | Added| -| ohos.account.appAccount | AppAccountManager | deleteAccount(name: string, callback: AsyncCallback): void;
deleteAccount(name: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | off(type: 'change', callback?: Callback\>): void; | Added| +| ohos.account.appAccount | AppAccountManager | on(type: 'change', owners: Array\, callback: Callback\>): void; | Added| +| ohos.account.appAccount | AppAccountManager | getAssociatedData(name: string, key: string, callback: AsyncCallback\): void;
getAssociatedData(name: string, key: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | getAccountExtraInfo(name: string, callback: AsyncCallback\): void;
getAccountExtraInfo(name: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback\): void;
getAccountCredential(name: string, credentialType: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | getAllAccounts(owner: string, callback: AsyncCallback\>): void;
getAllAccounts(owner: string): Promise\>; | Added| +| ohos.account.appAccount | AppAccountManager | getAllAccessibleAccounts(callback: AsyncCallback\>): void;
getAllAccessibleAccounts(): Promise\>; | Added| +| ohos.account.appAccount | AppAccountManager | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback\): void;
setAssociatedData(name: string, key: string, value: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback\): void;
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback\): void;
setAccountExtraInfo(name: string, extraInfo: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback\): void;
setAccountCredential(name: string, credentialType: string, credential: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | checkAppAccountSyncEnable(name: string, callback: AsyncCallback\): void;
checkAppAccountSyncEnable(name: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback\): void;
enableAppAccess(name: string, bundleName: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback\): void;
disableAppAccess(name: string, bundleName: string): Promise\; | Added| +| ohos.account.appAccount | AppAccountManager | deleteAccount(name: string, callback: AsyncCallback\): void;
deleteAccount(name: string): Promise\; | Added| | ohos.account.appAccount | AppAccountManager | addAccountImplicitly(owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | Added| -| ohos.account.appAccount | AppAccountManager | addAccount(name: string, callback: AsyncCallback): void;
addAccount(name: string, extraInfo: string, callback: AsyncCallback): void;
addAccount(name: string, extraInfo?: string): Promise; | Added| -| ohos.account.appAccount | appAccount | function createAppAccountManager(): AppAccountManager; | Added| +| ohos.account.appAccount | AppAccountManager | addAccount(name: string, callback: AsyncCallback\): void;
addAccount(name: string, extraInfo: string, callback: AsyncCallback\): void;
addAccount(name: string, extraInfo?: string): Promise\; | Added| +| ohos.account.appAccount | appAccount | createAppAccountManager(): AppAccountManager; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-battery.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-battery.md index 073218f80365e0e70f0fd45a37cac057d9d3693b..840b8949fec73de542ada07a7a6e1161b58d012b 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-battery.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-battery.md @@ -6,9 +6,9 @@ The table below lists the APIs changes of the power management subsystem in Open | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| -| ohos.thermal | thermal | function getThermalLevel(): ThermalLevel; | Added| -| ohos.thermal | thermal | function unsubscribeThermalLevel(callback?: AsyncCallback): void; | Added| -| ohos.thermal | thermal | function subscribeThermalLevel(callback: AsyncCallback): void; | Added| +| ohos.thermal | thermal | getThermalLevel(): ThermalLevel; | Added| +| ohos.thermal | thermal | unsubscribeThermalLevel(callback?: AsyncCallback\): void; | Added| +| ohos.thermal | thermal | subscribeThermalLevel(callback: AsyncCallback\): void; | Added| | ohos.thermal | ThermalLevel | EMERGENCY = 6 | Added| | ohos.thermal | ThermalLevel | WARNING = 5 | Added| | ohos.thermal | ThermalLevel | OVERHEATED = 4 | Added| @@ -16,5 +16,5 @@ The table below lists the APIs changes of the power management subsystem in Open | ohos.thermal | ThermalLevel | WARM = 2 | Added| | ohos.thermal | ThermalLevel | NORMAL = 1 | Added| | ohos.thermal | ThermalLevel | COOL = 0 | Added| -| ohos.runninglock | runningLock | function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback): void;
function createRunningLock(name: string, type: RunningLockType): Promise; | Added| -| ohos.runninglock | runningLock | function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback): void;
function isRunningLockTypeSupported(type: RunningLockType): Promise; | Added| +| ohos.runninglock | runningLock | createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback\): void;
createRunningLock(name: string, type: RunningLockType): Promise\; | Added| +| ohos.runninglock | runningLock | isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback\): void;
isRunningLockTypeSupported(type: RunningLockType): Promise\; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md index 87047fc9c9bbfd7644608511c54ebcfcdb345e0b..a737c0071275efeef49104b007a32066355dbe84 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md @@ -14,13 +14,13 @@ The table below lists the APIs changes of the bundle management framework in Ope | launcherAbilityInfo | LauncherAbilityInfo | readonly labelId: number; | Added| | launcherAbilityInfo | LauncherAbilityInfo | readonly elementName : ElementName; | Added| | launcherAbilityInfo | LauncherAbilityInfo | readonly applicationInfo: ApplicationInfo; | Added| -| bundleInfo | BundleInfo | readonly reqPermissionStates: Array; | Added| -| bundleInfo | BundleInfo | readonly hapModuleInfos: Array; | Added| -| bundleInfo | BundleInfo | readonly abilityInfos: Array; | Added| +| bundleInfo | BundleInfo | readonly reqPermissionStates: Array\; | Added| +| bundleInfo | BundleInfo | readonly hapModuleInfos: Array\; | Added| +| bundleInfo | BundleInfo | readonly abilityInfos: Array\; | Added| | abilityInfo | AbilityInfo | readonly enabled: boolean; | Added| -| abilityInfo | AbilityInfo | readonly metaData: Array; | Added| -| ohos.zlib | zlib | function unzipFile(inFile:string, outFile:string, options: Options): Promise; | Added| -| ohos.zlib | zlib | function zipFile(inFile:string, outFile:string, options: Options): Promise; | Added| +| abilityInfo | AbilityInfo | readonly metaData: Array\; | Added| +| ohos.zlib | zlib | unzipFile(inFile:string, outFile:string, options: Options): Promise\; | Added| +| ohos.zlib | zlib | zipFile(inFile:string, outFile:string, options: Options): Promise\; | Added| | ohos.zlib | Options | strategy?: CompressStrategy; | Added| | ohos.zlib | Options | memLevel?: MemLevel; | Added| | ohos.zlib | Options | level?: CompressLevel; | Added| @@ -38,12 +38,12 @@ The table below lists the APIs changes of the bundle management framework in Ope | ohos.zlib | CompressLevel | COMPRESS_LEVEL_NO_COMPRESSION = 0 | Added| | ohos.zlib | ErrorCode | ERROR_CODE_ERRNO = -1 | Added| | ohos.zlib | ErrorCode | ERROR_CODE_OK = 0 | Added| -| ohos.bundle | bundle | function isApplicationEnabled(bundleName: string, callback: AsyncCallback): void;
function isApplicationEnabled(bundleName: string): Promise; | Added| -| ohos.bundle | bundle | function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback): void;
function isAbilityEnabled(info: AbilityInfo): Promise; | Added| -| ohos.bundle | bundle | function getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback): void;
function getAbilityIcon(bundleName: string, abilityName: string): Promise; | Added| -| ohos.bundle | bundle | function getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback): void;
function getAbilityLabel(bundleName: string, abilityName: string): Promise; | Added| -| ohos.bundle | bundle | function getNameForUid(uid: number, callback: AsyncCallback) : void
function getNameForUid(uid: number) : Promise; | Added| -| ohos.bundle | bundle | function getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback): void;
function getAbilityInfo(bundleName: string, abilityName: string): Promise; | Added| +| ohos.bundle | bundle | isApplicationEnabled(bundleName: string, callback: AsyncCallback\): void;
isApplicationEnabled(bundleName: string): Promise\; | Added| +| ohos.bundle | bundle | isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback\): void;
isAbilityEnabled(info: AbilityInfo): Promise\; | Added| +| ohos.bundle | bundle | getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback\): void;
getAbilityIcon(bundleName: string, abilityName: string): Promise\; | Added| +| ohos.bundle | bundle | getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback\): void;
getAbilityLabel(bundleName: string, abilityName: string): Promise\; | Added| +| ohos.bundle | bundle | getNameForUid(uid: number, callback: AsyncCallback\) : void
getNameForUid(uid: number) : Promise\; | Added| +| ohos.bundle | bundle | getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback\): void;
getAbilityInfo(bundleName: string, abilityName: string): Promise\; | Added| | ohos.bundle | InstallErrorCode | STATUS_UNINSTALL_PERMISSION_DENIED = 0x45 | Added| | ohos.bundle | InstallErrorCode | STATUS_INSTALL_PERMISSION_DENIED = 0x44 | Added| | ohos.bundle | InstallErrorCode | STATUS_GRANT_REQUEST_PERMISSIONS_FAILED = 0x43 | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md index f8a402c227401b56cbc9b9a6dbd28c607a56f3fc..f652429121884183318995fe146b186a9ead6d26 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md @@ -7,7 +7,7 @@ The table below lists the APIs changes of the communication subsystem in OpenHar | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| | tagSession | TagSession | getMaxSendLength(): number; | Added| -| tagSession | TagSession | sendData(data: number[]): Promise;
sendData(data: number[], callback: AsyncCallback): void; | Added| +| tagSession | TagSession | sendData(data: number[]): Promise\;
sendData(data: number[], callback: AsyncCallback\): void; | Added| | tagSession | TagSession | getSendDataTimeout(): number; | Added| | tagSession | TagSession | setSendDataTimeout(timeout: number): boolean; | Added| | tagSession | TagSession | isTagConnected(): boolean; | Added| @@ -25,11 +25,11 @@ The table below lists the APIs changes of the communication subsystem in OpenHar | ohos.wifiext | PowerModel | THROUGH_WALL = 2 | Added| | ohos.wifiext | PowerModel | GENERAL = 1 | Added| | ohos.wifiext | PowerModel | SLEEPING = 0 | Added| -| ohos.wifiext | wifiext | function setPowerModel(model: PowerModel) : boolean | Added| -| ohos.wifiext | wifiext | function getPowerModel (): Promise;
function getPowerModel (callback: AsyncCallback): void; | Added| -| ohos.wifiext | wifiext | function getSupportedPowerModel(): Promise>;
function getSupportedPowerModel(callback: AsyncCallback>): void; | Added| -| ohos.wifiext | wifiext | function disableHotspot(): boolean; | Added| -| ohos.wifiext | wifiext | function enableHotspot(): boolean; | Added| +| ohos.wifiext | wifiext | setPowerModel(model: PowerModel) : boolean | Added| +| ohos.wifiext | wifiext | getPowerModel (): Promise\;
getPowerModel (callback: AsyncCallback\): void; | Added| +| ohos.wifiext | wifiext | getSupportedPowerModel(): Promise\>;
getSupportedPowerModel(callback: AsyncCallback\>): void; | Added| +| ohos.wifiext | wifiext | disableHotspot(): boolean; | Added| +| ohos.wifiext | wifiext | enableHotspot(): boolean; | Added| | ohos.wifi | GroupOwnerBand | GO_BAND_5GHZ = 2 | Added| | ohos.wifi | GroupOwnerBand | GO_BAND_2GHZ = 1 | Added| | ohos.wifi | GroupOwnerBand | GO_BAND_AUTO = 0 | Added| @@ -90,49 +90,49 @@ The table below lists the APIs changes of the communication subsystem in OpenHar | ohos.wifi | WifiLinkedInfo | ssid: string; | Added| | ohos.wifi | WifiScanInfo | channelWidth: number; | Added| | ohos.wifi | WifiScanInfo | capabilities: string; | Added| -| ohos.wifi | wifi | function off(type: "p2pDiscoveryChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "p2pDiscoveryChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "p2pPersistentGroupChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "p2pPersistentGroupChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "p2pPeerDeviceChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "p2pPeerDeviceChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "p2pDeviceChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "p2pDeviceChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "p2pConnectionChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "p2pConnectionChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "p2pStateChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "p2pStateChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "hotspotStateChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "hotspotStateChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "wifiRssiChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "wifiRssiChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "wifiScanStateChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "wifiScanStateChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "wifiConnectionChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "wifiConnectionChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function off(type: "wifiStateChange", callback?: Callback): void; | Added| -| ohos.wifi | wifi | function on(type: "wifiStateChange", callback: Callback): void; | Added| -| ohos.wifi | wifi | function stopDiscoverDevices(): boolean; | Added| -| ohos.wifi | wifi | function startDiscoverDevices(): boolean; | Added| -| ohos.wifi | wifi | function p2pCancelConnect(): boolean; | Added| -| ohos.wifi | wifi | function p2pConnect(config: WifiP2PConfig): boolean; | Added| -| ohos.wifi | wifi | function removeGroup(): boolean; | Added| -| ohos.wifi | wifi | function createGroup(config: WifiP2PConfig): boolean; | Added| -| ohos.wifi | wifi | function getP2pPeerDevices(): Promise;
function getP2pPeerDevices(callback: AsyncCallback): void; | Added| -| ohos.wifi | wifi | function getCurrentGroup(): Promise;
function getCurrentGroup(callback: AsyncCallback): void; | Added| -| ohos.wifi | wifi | function getP2pLinkedInfo(): Promise;
function getP2pLinkedInfo(callback: AsyncCallback): void; | Added| -| ohos.wifi | wifi | function getCountryCode(): string; | Added| -| ohos.wifi | wifi | function getIpInfo(): IpInfo; | Added| -| ohos.wifi | wifi | function isFeatureSupported(featureId: number): boolean; | Added| -| ohos.wifi | wifi | function isConnected(): boolean; | Added| -| ohos.wifi | wifi | function getLinkedInfo(): Promise;
function getLinkedInfo(callback: AsyncCallback): void; | Added| -| ohos.wifi | wifi | function removeUntrustedConfig(config: WifiDeviceConfig): Promise;
function removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback): void; | Added| -| ohos.wifi | wifi | function addUntrustedConfig(config: WifiDeviceConfig): Promise;
function addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback): void; | Added| +| ohos.wifi | wifi | off(type: "p2pDiscoveryChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "p2pDiscoveryChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "p2pPersistentGroupChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "p2pPersistentGroupChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "p2pPeerDeviceChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "p2pPeerDeviceChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "p2pDeviceChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "p2pDeviceChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "p2pConnectionChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "p2pConnectionChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "p2pStateChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "p2pStateChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "hotspotStateChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "hotspotStateChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "wifiRssiChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "wifiRssiChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "wifiScanStateChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "wifiScanStateChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "wifiConnectionChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "wifiConnectionChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | off(type: "wifiStateChange", callback?: Callback\): void; | Added| +| ohos.wifi | wifi | on(type: "wifiStateChange", callback: Callback\): void; | Added| +| ohos.wifi | wifi | stopDiscoverDevices(): boolean; | Added| +| ohos.wifi | wifi | startDiscoverDevices(): boolean; | Added| +| ohos.wifi | wifi | p2pCancelConnect(): boolean; | Added| +| ohos.wifi | wifi | p2pConnect(config: WifiP2PConfig): boolean; | Added| +| ohos.wifi | wifi | removeGroup(): boolean; | Added| +| ohos.wifi | wifi | createGroup(config: WifiP2PConfig): boolean; | Added| +| ohos.wifi | wifi | getP2pPeerDevices(): Promise\;
getP2pPeerDevices(callback: AsyncCallback\): void; | Added| +| ohos.wifi | wifi | getCurrentGroup(): Promise\;
getCurrentGroup(callback: AsyncCallback\): void; | Added| +| ohos.wifi | wifi | getP2pLinkedInfo(): Promise\;
getP2pLinkedInfo(callback: AsyncCallback\): void; | Added| +| ohos.wifi | wifi | getCountryCode(): string; | Added| +| ohos.wifi | wifi | getIpInfo(): IpInfo; | Added| +| ohos.wifi | wifi | isFeatureSupported(featureId: number): boolean; | Added| +| ohos.wifi | wifi | isConnected(): boolean; | Added| +| ohos.wifi | wifi | getLinkedInfo(): Promise\;
getLinkedInfo(callback: AsyncCallback\): void; | Added| +| ohos.wifi | wifi | removeUntrustedConfig(config: WifiDeviceConfig): Promise\;
removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void; | Added| +| ohos.wifi | wifi | addUntrustedConfig(config: WifiDeviceConfig): Promise\;
addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\): void; | Added| | ohos.nfc.tag | TagInfo | supportedProfiles: number[]; | Added| -| ohos.nfc.tag | tag | function getNfcVTag(tagInfo: TagInfo): NfcVTag | Added| -| ohos.nfc.tag | tag | function getNfcFTag(tagInfo: TagInfo): NfcFTag | Added| -| ohos.nfc.tag | tag | function getNfcBTag(tagInfo: TagInfo): NfcBTag | Added| -| ohos.nfc.tag | tag | function getNfcATag(tagInfo: TagInfo): NfcATag | Added| +| ohos.nfc.tag | tag | getNfcVTag(tagInfo: TagInfo): NfcVTag | Added| +| ohos.nfc.tag | tag | getNfcFTag(tagInfo: TagInfo): NfcFTag | Added| +| ohos.nfc.tag | tag | getNfcBTag(tagInfo: TagInfo): NfcBTag | Added| +| ohos.nfc.tag | tag | getNfcATag(tagInfo: TagInfo): NfcATag | Added| | ohos.nfc.tag | tag | const MIFARE_ULTRALIGHT = 9; | Added| | ohos.nfc.tag | tag | const MIFARE_CLASSIC = 8; | Added| | ohos.nfc.tag | tag | const NDEF = 6; | Added| @@ -141,33 +141,33 @@ The table below lists the APIs changes of the communication subsystem in OpenHar | ohos.nfc.tag | tag | const ISO_DEP = 3; | Added| | ohos.nfc.tag | tag | const NFC_B = 2; | Added| | ohos.nfc.tag | tag | const NFC_A = 1; | Added| -| ohos.nfc.controller | nfcController | function getNfcState(): NfcState | Added| -| ohos.nfc.controller | nfcController | function isNfcOpen(): boolean | Added| -| ohos.nfc.controller | nfcController | function closeNfc(): boolean | Added| -| ohos.nfc.controller | nfcController | function openNfc(): boolean | Added| -| ohos.nfc.controller | nfcController | function off(type: "nfcStateChange", callback?: Callback): void | Added| -| ohos.nfc.controller | nfcController | function on(type: "nfcStateChange", callback: Callback): void | Added| -| ohos.nfc.controller | nfcController | function isNfcAvailable(): boolean | Added| +| ohos.nfc.controller | nfcController | getNfcState(): NfcState | Added| +| ohos.nfc.controller | nfcController | isNfcOpen(): boolean | Added| +| ohos.nfc.controller | nfcController | closeNfc(): boolean | Added| +| ohos.nfc.controller | nfcController | openNfc(): boolean | Added| +| ohos.nfc.controller | nfcController | off(type: "nfcStateChange", callback?: Callback\): void | Added| +| ohos.nfc.controller | nfcController | on(type: "nfcStateChange", callback: Callback\): void | Added| +| ohos.nfc.controller | nfcController | isNfcAvailable(): boolean | Added| | ohos.nfc.controller | NfcState | STATE_TURNING_OFF = 4 | Added| | ohos.nfc.controller | NfcState | STATE_ON = 3 | Added| | ohos.nfc.controller | NfcState | STATE_TURNING_ON = 2 | Added| | ohos.nfc.controller | NfcState | STATE_OFF = 1 | Added| | ohos.nfc.cardEmulation | HceService | sendResponse(responseApdu: number[]): void; | Added| -| ohos.nfc.cardEmulation | HceService | on(type: "hceCmd", callback: AsyncCallback): void; | Added| +| ohos.nfc.cardEmulation | HceService | on(type: "hceCmd", callback: AsyncCallback\): void; | Added| | ohos.nfc.cardEmulation | HceService | stopHCE(): boolean; | Added| | ohos.nfc.cardEmulation | HceService | startHCE(aidList: string[]): boolean; | Added| -| ohos.nfc.cardEmulation | cardEmulation | function isSupported(feature: number): boolean; | Added| +| ohos.nfc.cardEmulation | cardEmulation | isSupported(feature: number): boolean; | Added| | ohos.nfc.cardEmulation | FeatureType | ESE = 2 | Added| | ohos.nfc.cardEmulation | FeatureType | UICC = 1 | Added| | ohos.nfc.cardEmulation | FeatureType | HCE = 0 | Added| | ohos.connectedTag | NfcRfType | NFC_RF_ENTER = 1 | Added| | ohos.connectedTag | NfcRfType | NFC_RF_LEAVE = 0 | Added| -| ohos.connectedTag | connectedTag | function off(type: "notify", callback?:Callback): void; | Added| -| ohos.connectedTag | connectedTag | function on(type: "notify", callback: Callback): void; | Added| -| ohos.connectedTag | connectedTag | function writeNdefTag(data: string): Promise;
function writeNdefTag(data: string, callback: AsyncCallback): void; | Added| -| ohos.connectedTag | connectedTag | function readNdefTag(): Promise;
function readNdefTag(callback: AsyncCallback): void; | Added| -| ohos.connectedTag | connectedTag | function uninit(): boolean; | Added| -| ohos.connectedTag | connectedTag | function init(): boolean; | Added| +| ohos.connectedTag | connectedTag | off(type: "notify", callback?:Callback\): void; | Added| +| ohos.connectedTag | connectedTag | on(type: "notify", callback: Callback\): void; | Added| +| ohos.connectedTag | connectedTag | writeNdefTag(data: string): Promise\;
writeNdefTag(data: string, callback: AsyncCallback\): void; | Added| +| ohos.connectedTag | connectedTag | readNdefTag(): Promise\;
readNdefTag(callback: AsyncCallback\): void; | Added| +| ohos.connectedTag | connectedTag | uninit(): boolean; | Added| +| ohos.connectedTag | connectedTag | init(): boolean; | Added| | ohos.bluetooth | ProfileId | PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4 | Added| | ohos.bluetooth | ProfileId | PROFILE_A2DP_SOURCE = 1 | Added| | ohos.bluetooth | PlayingState | STATE_PLAYING | Added| @@ -317,9 +317,9 @@ The table below lists the APIs changes of the communication subsystem in OpenHar | ohos.bluetooth | ServiceData | serviceUuid: string; | Added| | ohos.bluetooth | ManufactureData | manufactureValue: ArrayBuffer; | Added| | ohos.bluetooth | ManufactureData | manufactureId: number; | Added| -| ohos.bluetooth | AdvertiseData | serviceData: Array; | Added| -| ohos.bluetooth | AdvertiseData | manufactureData: Array; | Added| -| ohos.bluetooth | AdvertiseData | serviceUuids: Array; | Added| +| ohos.bluetooth | AdvertiseData | serviceData: Array\; | Added| +| ohos.bluetooth | AdvertiseData | manufactureData: Array\; | Added| +| ohos.bluetooth | AdvertiseData | serviceUuids: Array\; | Added| | ohos.bluetooth | AdvertiseSetting | connectable?: boolean; | Added| | ohos.bluetooth | AdvertiseSetting | txPower?: number; | Added| | ohos.bluetooth | AdvertiseSetting | interval?: number; | Added| @@ -369,40 +369,40 @@ The table below lists the APIs changes of the communication subsystem in OpenHar | ohos.bluetooth | BLEDescriptor | descriptorUuid: string; | Added| | ohos.bluetooth | BLEDescriptor | characteristicUuid: string; | Added| | ohos.bluetooth | BLEDescriptor | serviceUuid: string; | Added| -| ohos.bluetooth | BLECharacteristic | descriptors: Array; | Added| +| ohos.bluetooth | BLECharacteristic | descriptors: Array\; | Added| | ohos.bluetooth | BLECharacteristic | characteristicValue: ArrayBuffer; | Added| | ohos.bluetooth | BLECharacteristic | characteristicUuid: string; | Added| | ohos.bluetooth | BLECharacteristic | serviceUuid: string; | Added| -| ohos.bluetooth | GattService | includeServices?: Array; | Added| -| ohos.bluetooth | GattService | characteristics: Array; | Added| +| ohos.bluetooth | GattService | includeServices?: Array\; | Added| +| ohos.bluetooth | GattService | characteristics: Array\; | Added| | ohos.bluetooth | GattService | isPrimary: boolean; | Added| | ohos.bluetooth | GattService | serviceUuid: string; | Added| -| ohos.bluetooth | GattClientDevice | off(type: "BLEConnectionStateChange", callback?: Callback): void; | Added| -| ohos.bluetooth | GattClientDevice | on(type: "BLEConnectionStateChange", callback: Callback): void; | Added| -| ohos.bluetooth | GattClientDevice | off(type: "BLECharacteristicChange", callback?: Callback): void; | Added| -| ohos.bluetooth | GattClientDevice | on(type: "BLECharacteristicChange", callback: Callback): void; | Added| +| ohos.bluetooth | GattClientDevice | off(type: "BLEConnectionStateChange", callback?: Callback\): void; | Added| +| ohos.bluetooth | GattClientDevice | on(type: "BLEConnectionStateChange", callback: Callback\): void; | Added| +| ohos.bluetooth | GattClientDevice | off(type: "BLECharacteristicChange", callback?: Callback\): void; | Added| +| ohos.bluetooth | GattClientDevice | on(type: "BLECharacteristicChange", callback: Callback\): void; | Added| | ohos.bluetooth | GattClientDevice | setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean; | Added| | ohos.bluetooth | GattClientDevice | setBLEMtuSize(mtu: number): boolean; | Added| -| ohos.bluetooth | GattClientDevice | getRssiValue(callback: AsyncCallback): void;
getRssiValue(): Promise; | Added| +| ohos.bluetooth | GattClientDevice | getRssiValue(callback: AsyncCallback\): void;
getRssiValue(): Promise\; | Added| | ohos.bluetooth | GattClientDevice | writeDescriptorValue(descriptor: BLEDescriptor): boolean; | Added| | ohos.bluetooth | GattClientDevice | writeCharacteristicValue(characteristic: BLECharacteristic): boolean; | Added| -| ohos.bluetooth | GattClientDevice | readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback): void;
readDescriptorValue(descriptor: BLEDescriptor): Promise; | Added| -| ohos.bluetooth | GattClientDevice | readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback): void;
readCharacteristicValue(characteristic: BLECharacteristic): Promise; | Added| -| ohos.bluetooth | GattClientDevice | getServices(callback: AsyncCallback>): void;
getServices(): Promise>; | Added| -| ohos.bluetooth | GattClientDevice | getDeviceName(callback: AsyncCallback): void;
getDeviceName(): Promise; | Added| +| ohos.bluetooth | GattClientDevice | readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback\): void;
readDescriptorValue(descriptor: BLEDescriptor): Promise\; | Added| +| ohos.bluetooth | GattClientDevice | readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback\): void;
readCharacteristicValue(characteristic: BLECharacteristic): Promise\; | Added| +| ohos.bluetooth | GattClientDevice | getServices(callback: AsyncCallback\>): void;
getServices(): Promise\>; | Added| +| ohos.bluetooth | GattClientDevice | getDeviceName(callback: AsyncCallback\): void;
getDeviceName(): Promise\; | Added| | ohos.bluetooth | GattClientDevice | close(): boolean; | Added| | ohos.bluetooth | GattClientDevice | disconnect(): boolean; | Added| | ohos.bluetooth | GattClientDevice | connect(): boolean; | Added| -| ohos.bluetooth | GattServer | off(type: "connectStateChange", callback?: Callback): void; | Added| -| ohos.bluetooth | GattServer | on(type: "connectStateChange", callback: Callback): void; | Added| -| ohos.bluetooth | GattServer | off(type: "descriptorWrite", callback?: Callback): void; | Added| -| ohos.bluetooth | GattServer | on(type: "descriptorWrite", callback: Callback): void; | Added| -| ohos.bluetooth | GattServer | off(type: "descriptorRead", callback?: Callback): void; | Added| -| ohos.bluetooth | GattServer | on(type: "descriptorRead", callback: Callback): void; | Added| -| ohos.bluetooth | GattServer | off(type: "characteristicWrite", callback?: Callback): void; | Added| -| ohos.bluetooth | GattServer | on(type: "characteristicWrite", callback: Callback): void; | Added| -| ohos.bluetooth | GattServer | off(type: "characteristicRead", callback?: Callback): void; | Added| -| ohos.bluetooth | GattServer | on(type: "characteristicRead", callback: Callback): void; | Added| +| ohos.bluetooth | GattServer | off(type: "connectStateChange", callback?: Callback\): void; | Added| +| ohos.bluetooth | GattServer | on(type: "connectStateChange", callback: Callback\): void; | Added| +| ohos.bluetooth | GattServer | off(type: "descriptorWrite", callback?: Callback\): void; | Added| +| ohos.bluetooth | GattServer | on(type: "descriptorWrite", callback: Callback\): void; | Added| +| ohos.bluetooth | GattServer | off(type: "descriptorRead", callback?: Callback\): void; | Added| +| ohos.bluetooth | GattServer | on(type: "descriptorRead", callback: Callback\): void; | Added| +| ohos.bluetooth | GattServer | off(type: "characteristicWrite", callback?: Callback\): void; | Added| +| ohos.bluetooth | GattServer | on(type: "characteristicWrite", callback: Callback\): void; | Added| +| ohos.bluetooth | GattServer | off(type: "characteristicRead", callback?: Callback\): void; | Added| +| ohos.bluetooth | GattServer | on(type: "characteristicRead", callback: Callback\): void; | Added| | ohos.bluetooth | GattServer | sendResponse(serverResponse: ServerResponse): boolean; | Added| | ohos.bluetooth | GattServer | notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean; | Added| | ohos.bluetooth | GattServer | close(): void; | Added| @@ -410,54 +410,54 @@ The table below lists the APIs changes of the communication subsystem in OpenHar | ohos.bluetooth | GattServer | addService(service: GattService): boolean; | Added| | ohos.bluetooth | GattServer | stopAdvertising(): void; | Added| | ohos.bluetooth | GattServer | startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void; | Added| -| ohos.bluetooth | BLE | function off(type: "BLEDeviceFind", callback?: Callback>): void; | Added| -| ohos.bluetooth | BLE | function on(type: "BLEDeviceFind", callback: Callback>): void; | Added| -| ohos.bluetooth | BLE | function stopBLEScan(): void; | Added| -| ohos.bluetooth | BLE | function startBLEScan(filters: Array, options?: ScanOptions): void; | Added| -| ohos.bluetooth | BLE | function getConnectedBLEDevices(): Array; | Added| -| ohos.bluetooth | BLE | function createGattClientDevice(deviceId: string): GattClientDevice; | Added| -| ohos.bluetooth | BLE | function createGattServer(): GattServer; | Added| -| ohos.bluetooth | HandsFreeAudioGatewayProfile | off(type: "connectionStateChange", callback?: Callback): void; | Added| -| ohos.bluetooth | HandsFreeAudioGatewayProfile | on(type: "connectionStateChange", callback: Callback): void; | Added| +| ohos.bluetooth | BLE | off(type: "BLEDeviceFind", callback?: Callback\>): void; | Added| +| ohos.bluetooth | BLE | on(type: "BLEDeviceFind", callback: Callback\>): void; | Added| +| ohos.bluetooth | BLE | stopBLEScan(): void; | Added| +| ohos.bluetooth | BLE | startBLEScan(filters: Array\, options?: ScanOptions): void; | Added| +| ohos.bluetooth | BLE | getConnectedBLEDevices(): Array\; | Added| +| ohos.bluetooth | BLE | createGattClientDevice(deviceId: string): GattClientDevice; | Added| +| ohos.bluetooth | BLE | createGattServer(): GattServer; | Added| +| ohos.bluetooth | HandsFreeAudioGatewayProfile | off(type: "connectionStateChange", callback?: Callback\): void; | Added| +| ohos.bluetooth | HandsFreeAudioGatewayProfile | on(type: "connectionStateChange", callback: Callback\): void; | Added| | ohos.bluetooth | HandsFreeAudioGatewayProfile | disconnect(device: string): boolean; | Added| | ohos.bluetooth | HandsFreeAudioGatewayProfile | connect(device: string): boolean; | Added| | ohos.bluetooth | A2dpSourceProfile | getPlayingState(device: string): PlayingState; | Added| -| ohos.bluetooth | A2dpSourceProfile | off(type: "connectionStateChange", callback?: Callback): void; | Added| -| ohos.bluetooth | A2dpSourceProfile | on(type: "connectionStateChange", callback: Callback): void; | Added| +| ohos.bluetooth | A2dpSourceProfile | off(type: "connectionStateChange", callback?: Callback\): void; | Added| +| ohos.bluetooth | A2dpSourceProfile | on(type: "connectionStateChange", callback: Callback\): void; | Added| | ohos.bluetooth | A2dpSourceProfile | disconnect(device: string): boolean; | Added| | ohos.bluetooth | A2dpSourceProfile | connect(device: string): boolean; | Added| | ohos.bluetooth | BaseProfile | getDeviceState(device: string): ProfileConnectionState; | Added| -| ohos.bluetooth | BaseProfile | getConnectionDevices(): Array; | Added| -| ohos.bluetooth | bluetooth | function getProfile(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile; | Added| -| ohos.bluetooth | bluetooth | function off(type: "sppRead", clientSocket: number, callback?: Callback): void; | Added| -| ohos.bluetooth | bluetooth | function on(type: "sppRead", clientSocket: number, callback: Callback): void; | Added| -| ohos.bluetooth | bluetooth | function sppWrite(clientSocket: number, data: ArrayBuffer): boolean; | Added| -| ohos.bluetooth | bluetooth | function sppCloseClientSocket(socket: number): void; | Added| -| ohos.bluetooth | bluetooth | function sppCloseServerSocket(socket: number): void; | Added| -| ohos.bluetooth | bluetooth | function sppConnect(device: string, option: SppOption, callback: AsyncCallback): void; | Added| -| ohos.bluetooth | bluetooth | function sppAccept(serverSocket: number, callback: AsyncCallback): void; | Added| -| ohos.bluetooth | bluetooth | function sppListen(name: string, option: SppOption, callback: AsyncCallback): void; | Added| -| ohos.bluetooth | bluetooth | function off(type: "stateChange", callback?: Callback): void; | Added| -| ohos.bluetooth | bluetooth | function on(type: "stateChange", callback: Callback): void; | Added| -| ohos.bluetooth | bluetooth | function off(type: "pinRequired", callback?: Callback): void; | Added| -| ohos.bluetooth | bluetooth | function on(type: "pinRequired", callback: Callback): void; | Added| -| ohos.bluetooth | bluetooth | function off(type: "bondStateChange", callback?: Callback): void; | Added| -| ohos.bluetooth | bluetooth | function on(type: "bondStateChange", callback: Callback): void; | Added| -| ohos.bluetooth | bluetooth | function off(type: "bluetoothDeviceFind", callback?: Callback>): void; | Added| -| ohos.bluetooth | bluetooth | function on(type: "bluetoothDeviceFind", callback: Callback>): void; | Added| -| ohos.bluetooth | bluetooth | function stopBluetoothDiscovery(): boolean; | Added| -| ohos.bluetooth | bluetooth | function startBluetoothDiscovery(): boolean; | Added| -| ohos.bluetooth | bluetooth | function getBluetoothScanMode(): ScanMode; | Added| -| ohos.bluetooth | bluetooth | function setBluetoothScanMode(mode: ScanMode, duration: number): boolean; | Added| -| ohos.bluetooth | bluetooth | function setLocalName(name: string): boolean; | Added| -| ohos.bluetooth | bluetooth | function setDevicePairingConfirmation(device: string, accept: boolean): boolean; | Added| -| ohos.bluetooth | bluetooth | function getProfileConnState(profileId: ProfileId): ProfileConnectionState; | Added| -| ohos.bluetooth | bluetooth | function getPairedDevices(): Array; | Added| -| ohos.bluetooth | bluetooth | function getLocalName(): string; | Added| -| ohos.bluetooth | bluetooth | function disableBluetooth(): boolean; | Added| -| ohos.bluetooth | bluetooth | function enableBluetooth(): boolean; | Added| -| ohos.bluetooth | bluetooth | function getRemoteDeviceClass(deviceId: string): DeviceClass; | Added| -| ohos.bluetooth | bluetooth | function getRemoteDeviceName(deviceId: string): string; | Added| -| ohos.bluetooth | bluetooth | function pairDevice(deviceId: string): boolean; | Added| -| ohos.bluetooth | bluetooth | function getBtConnectionState(): ProfileConnectionState; | Added| -| ohos.bluetooth | bluetooth | function getState(): BluetoothState; | Added| +| ohos.bluetooth | BaseProfile | getConnectionDevices(): Array\; | Added| +| ohos.bluetooth | bluetooth | getProfile(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile; | Added| +| ohos.bluetooth | bluetooth | off(type: "sppRead", clientSocket: number, callback?: Callback\): void; | Added| +| ohos.bluetooth | bluetooth | on(type: "sppRead", clientSocket: number, callback: Callback\): void; | Added| +| ohos.bluetooth | bluetooth | sppWrite(clientSocket: number, data: ArrayBuffer): boolean; | Added| +| ohos.bluetooth | bluetooth | sppCloseClientSocket(socket: number): void; | Added| +| ohos.bluetooth | bluetooth | sppCloseServerSocket(socket: number): void; | Added| +| ohos.bluetooth | bluetooth | sppConnect(device: string, option: SppOption, callback: AsyncCallback\): void; | Added| +| ohos.bluetooth | bluetooth | sppAccept(serverSocket: number, callback: AsyncCallback\): void; | Added| +| ohos.bluetooth | bluetooth | sppListen(name: string, option: SppOption, callback: AsyncCallback\): void; | Added| +| ohos.bluetooth | bluetooth | off(type: "stateChange", callback?: Callback\): void; | Added| +| ohos.bluetooth | bluetooth | on(type: "stateChange", callback: Callback\): void; | Added| +| ohos.bluetooth | bluetooth | off(type: "pinRequired", callback?: Callback\): void; | Added| +| ohos.bluetooth | bluetooth | on(type: "pinRequired", callback: Callback\): void; | Added| +| ohos.bluetooth | bluetooth | off(type: "bondStateChange", callback?: Callback\): void; | Added| +| ohos.bluetooth | bluetooth | on(type: "bondStateChange", callback: Callback\): void; | Added| +| ohos.bluetooth | bluetooth | off(type: "bluetoothDeviceFind", callback?: Callback\>): void; | Added| +| ohos.bluetooth | bluetooth | on(type: "bluetoothDeviceFind", callback: Callback\>): void; | Added| +| ohos.bluetooth | bluetooth | stopBluetoothDiscovery(): boolean; | Added| +| ohos.bluetooth | bluetooth | startBluetoothDiscovery(): boolean; | Added| +| ohos.bluetooth | bluetooth | getBluetoothScanMode(): ScanMode; | Added| +| ohos.bluetooth | bluetooth | setBluetoothScanMode(mode: ScanMode, duration: number): boolean; | Added| +| ohos.bluetooth | bluetooth | setLocalName(name: string): boolean; | Added| +| ohos.bluetooth | bluetooth | setDevicePairingConfirmation(device: string, accept: boolean): boolean; | Added| +| ohos.bluetooth | bluetooth | getProfileConnState(profileId: ProfileId): ProfileConnectionState; | Added| +| ohos.bluetooth | bluetooth | getPairedDevices(): Array\; | Added| +| ohos.bluetooth | bluetooth | getLocalName(): string; | Added| +| ohos.bluetooth | bluetooth | disableBluetooth(): boolean; | Added| +| ohos.bluetooth | bluetooth | enableBluetooth(): boolean; | Added| +| ohos.bluetooth | bluetooth | getRemoteDeviceClass(deviceId: string): DeviceClass; | Added| +| ohos.bluetooth | bluetooth | getRemoteDeviceName(deviceId: string): string; | Added| +| ohos.bluetooth | bluetooth | pairDevice(deviceId: string): boolean; | Added| +| ohos.bluetooth | bluetooth | getBtConnectionState(): ProfileConnectionState; | Added| +| ohos.bluetooth | bluetooth | getState(): BluetoothState; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-compiler-and-runtime.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-compiler-and-runtime.md index e0bc4d36b4075f29f3da4de31e19a0d9bcd381f4..13aebd5b337cdf7f6a39b7875350651fffc2bd19 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-compiler-and-runtime.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-compiler-and-runtime.md @@ -45,21 +45,21 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.xml | XmlSerializer | addEmptyElement(name: string): void; | Added| | ohos.xml | XmlSerializer | setAttributes(name: string, value: string): void; | Added| | ohos.xml | XmlSerializer | constructor(buffer: ArrayBuffer \| DataView, encoding?: string); | Added| -| ohos.util.Vector | Vector | [Symbol.iterator](): IterableIterator; | Added| -| ohos.util.Vector | Vector | copyToArray(array: Array): void; | Added| +| ohos.util.Vector | Vector | \[Symbol.iterator](): IterableIterator\; | Added| +| ohos.util.Vector | Vector | copyToArray(array: Array\): void; | Added| | ohos.util.Vector | Vector | trimToCurrentLength(): void; | Added| | ohos.util.Vector | Vector | toString(): string; | Added| | ohos.util.Vector | Vector | increaseCapacityTo(newCapacity: number): void; | Added| | ohos.util.Vector | Vector | isEmpty(): boolean; | Added| -| ohos.util.Vector | Vector | convertToArray(): Array; | Added| +| ohos.util.Vector | Vector | convertToArray(): Array\; | Added| | ohos.util.Vector | Vector | getCapacity(): number; | Added| | ohos.util.Vector | Vector | setLength(newSize: number): void; | Added| -| ohos.util.Vector | Vector | clone(): Vector; | Added| +| ohos.util.Vector | Vector | clone(): Vector\; | Added| | ohos.util.Vector | Vector | clear(): void; | Added| -| ohos.util.Vector | Vector | subVector(fromIndex: number, toIndex: number): Vector; | Added| +| ohos.util.Vector | Vector | subVector(fromIndex: number, toIndex: number): Vector\; | Added| | ohos.util.Vector | Vector | sort(comparator?: (firstValue: T, secondValue: T) => number): void; | Added| -| ohos.util.Vector | Vector | forEach(callbackfn: (value: T, index?: number, vector?: Vector) => void, thisArg?: Object): void; | Added| -| ohos.util.Vector | Vector | replaceAllElements(callbackfn: (value: T, index?: number, vector?: Vector) => T, thisArg?: Object): void; | Added| +| ohos.util.Vector | Vector | forEach(callbackfn: (value: T, index?: number, vector?: Vector\) => void, thisArg?: Object): void; | Added| +| ohos.util.Vector | Vector | replaceAllElements(callbackfn: (value: T, index?: number, vector?: Vector\) => T, thisArg?: Object): void; | Added| | ohos.util.Vector | Vector | removeByRange(fromIndex: number, toIndex: number): void; | Added| | ohos.util.Vector | Vector | getIndexFrom(element: T, index: number): number; | Added| | ohos.util.Vector | Vector | getLastIndexFrom(element: T, index: number): number; | Added| @@ -76,10 +76,10 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util.Vector | Vector | add(element: T): boolean; | Added| | ohos.util.Vector | Vector | length: number; | Added| | ohos.util.Vector | Vector | constructor(); | Added| -| ohos.util.TreeSet | TreeSet | [Symbol.iterator](): IterableIterator; | Added| -| ohos.util.TreeSet | TreeSet | entries(): IterableIterator<[T, T]>; | Added| -| ohos.util.TreeSet | TreeSet | values(): IterableIterator; | Added| -| ohos.util.TreeSet | TreeSet | forEach(callbackfn: (value?: T, key?: T, set?: TreeSet) => void, thisArg?: Object): void;| Added| +| ohos.util.TreeSet | TreeSet | \[Symbol.iterator](): IterableIterator\; | Added| +| ohos.util.TreeSet | TreeSet | entries(): IterableIterator\<[T, T]>; | Added| +| ohos.util.TreeSet | TreeSet | values(): IterableIterator\; | Added| +| ohos.util.TreeSet | TreeSet | forEach(callbackfn: (value?: T, key?: T, set?: TreeSet\) => void, thisArg?: Object): void; | Added| | ohos.util.TreeSet | TreeSet | popLast(): T; | Added| | ohos.util.TreeSet | TreeSet | popFirst(): T; | Added| | ohos.util.TreeSet | TreeSet | getHigherValue(key: T): T; | Added| @@ -93,18 +93,18 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util.TreeSet | TreeSet | isEmpty(): boolean; | Added| | ohos.util.TreeSet | TreeSet | length: number; | Added| | ohos.util.TreeSet | TreeSet | constructor(comparator?: (firstValue: T, secondValue: T) => boolean) | Added| -| ohos.util.TreeMap | TreeMap | [Symbol.iterator](): IterableIterator<[K, V]>; | Added| -| ohos.util.TreeMap | TreeMap | entries(): IterableIterator<[K, V]>; | Added| -| ohos.util.TreeMap | TreeMap | forEach(callbackfn: (value?: V, key?: K, map?: TreeMap) => void, thisArg?: Object): void; | Added| +| ohos.util.TreeMap | TreeMap | \[Symbol.iterator](): IterableIterator\<[K, V]>; | Added| +| ohos.util.TreeMap | TreeMap | entries(): IterableIterator\<[K, V]>; | Added| +| ohos.util.TreeMap | TreeMap | forEach(callbackfn: (value?: V, key?: K, map?: TreeMap\) => void, thisArg?: Object): void; | Added| | ohos.util.TreeMap | TreeMap | replace(key: K, newValue: V): boolean; | Added| -| ohos.util.TreeMap | TreeMap | values(): IterableIterator; | Added| -| ohos.util.TreeMap | TreeMap | keys(): IterableIterator; | Added| +| ohos.util.TreeMap | TreeMap | values(): IterableIterator\; | Added| +| ohos.util.TreeMap | TreeMap | keys(): IterableIterator\; | Added| | ohos.util.TreeMap | TreeMap | getHigherKey(key: K): K; | Added| | ohos.util.TreeMap | TreeMap | getLowerKey(key: K): K; | Added| | ohos.util.TreeMap | TreeMap | clear(): void; | Added| | ohos.util.TreeMap | TreeMap | remove(key: K): V; | Added| | ohos.util.TreeMap | TreeMap | set(key: K, value: V): Object; | Added| -| ohos.util.TreeMap | TreeMap | setAll(map: TreeMap): void; | Added| +| ohos.util.TreeMap | TreeMap | setAll(map: TreeMap\): void; | Added| | ohos.util.TreeMap | TreeMap | getLastKey(): K; | Added| | ohos.util.TreeMap | TreeMap | getFirstKey(): K; | Added| | ohos.util.TreeMap | TreeMap | get(key: K): V; | Added| @@ -113,8 +113,8 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util.TreeMap | TreeMap | isEmpty(): boolean; | Added| | ohos.util.TreeMap | TreeMap | length: number; | Added| | ohos.util.TreeMap | TreeMap | constructor(comparator?: (firstValue: K, secondValue: K) => boolean); | Added| -| ohos.util.Stack | Stack | [Symbol.iterator](): IterableIterator; | Added| -| ohos.util.Stack | Stack | forEach(callbackfn: (value: T, index?: number, stack?: Stack) => void, thisArg?: Object): void; | Added| +| ohos.util.Stack | Stack | \[Symbol.iterator](): IterableIterator\; | Added| +| ohos.util.Stack | Stack | forEach(callbackfn: (value: T, index?: number, stack?: Stack\) => void, thisArg?: Object): void; | Added| | ohos.util.Stack | Stack | locate(element: T): number; | Added| | ohos.util.Stack | Stack | push(item: T): T; | Added| | ohos.util.Stack | Stack | pop(): T; | Added| @@ -122,15 +122,15 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util.Stack | Stack | isEmpty(): boolean; | Added| | ohos.util.Stack | Stack | length: number; | Added| | ohos.util.Stack | Stack | constructor(); | Added| -| ohos.util.Queue | Queue | [Symbol.iterator](): IterableIterator; | Added| -| ohos.util.Queue | Queue | forEach(callbackfn: (value: T, index?: number, Queue?: Queue) => void, thisArg?: Object): void; | Added| +| ohos.util.Queue | Queue | \[Symbol.iterator](): IterableIterator\; | Added| +| ohos.util.Queue | Queue | forEach(callbackfn: (value: T, index?: number, Queue?: Queue\) => void, thisArg?: Object): void; | Added| | ohos.util.Queue | Queue | pop(): T; | Added| | ohos.util.Queue | Queue | getFirst(): T; | Added| | ohos.util.Queue | Queue | add(element: T): boolean; | Added| | ohos.util.Queue | Queue | length: number; | Added| | ohos.util.Queue | Queue | constructor(); | Added| -| ohos.util.PlainArray | PlainArray | [Symbol.iterator](): IterableIterator<[number, T]>; | Added| -| ohos.util.PlainArray | PlainArray | forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray) => void, thisArg?: Object): void; | Added| +| ohos.util.PlainArray | PlainArray | \[Symbol.iterator](): IterableIterator\<[number, T]>; | Added| +| ohos.util.PlainArray | PlainArray | forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray\) => void, thisArg?: Object): void; | Added| | ohos.util.PlainArray | PlainArray | getValueAt(index: number): T; | Added| | ohos.util.PlainArray | PlainArray | toString(): String; | Added| | ohos.util.PlainArray | PlainArray | setValueAt(index: number, value: T): void; | Added| @@ -143,19 +143,19 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util.PlainArray | PlainArray | getIndexOfKey(key: number): number; | Added| | ohos.util.PlainArray | PlainArray | get(key: number): T; | Added| | ohos.util.PlainArray | PlainArray | has(key: number): boolean; | Added| -| ohos.util.PlainArray | PlainArray | clone(): PlainArray; | Added| +| ohos.util.PlainArray | PlainArray | clone(): PlainArray\; | Added| | ohos.util.PlainArray | PlainArray | clear(): void; | Added| | ohos.util.PlainArray | PlainArray | add(key: number, value: T): void; | Added| | ohos.util.PlainArray | PlainArray | length: number; | Added| | ohos.util.PlainArray | PlainArray | constructor(); | Added| -| ohos.util.List | List | [Symbol.iterator](): IterableIterator; | Added| +| ohos.util.List | List | \[Symbol.iterator](): IterableIterator\; | Added| | ohos.util.List | List | isEmpty(): boolean; | Added| -| ohos.util.List | List | convertToArray(): Array; | Added| -| ohos.util.List | List | replaceAllElements(callbackfn: (value: T, index?: number, list?: List) => T, thisArg?: Object): void; | Added| -| ohos.util.List | List | getSubList(fromIndex: number, toIndex: number): List; | Added| +| ohos.util.List | List | convertToArray(): Array\; | Added| +| ohos.util.List | List | replaceAllElements(callbackfn: (value: T, index?: number, list?: List\) => T, thisArg?: Object): void; | Added| +| ohos.util.List | List | getSubList(fromIndex: number, toIndex: number): List\; | Added| | ohos.util.List | List | clear(): void; | Added| | ohos.util.List | List | sort(comparator: (firstValue: T, secondValue: T) => number): void; | Added| -| ohos.util.List | List | forEach(callbackfn: (value: T, index?: number, List?: List) => void, thisArg?: Object): void; | Added| +| ohos.util.List | List | forEach(callbackfn: (value: T, index?: number, List?: List\) => void, thisArg?: Object): void; | Added| | ohos.util.List | List | equal(obj: Object): boolean; | Added| | ohos.util.List | List | set(index: number, element: T): T; | Added| | ohos.util.List | List | getLast(): T; | Added| @@ -170,11 +170,11 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util.List | List | add(element: T): boolean; | Added| | ohos.util.List | List | length: number; | Added| | ohos.util.List | List | constructor(); | Added| -| ohos.util.LinkedList | LinkedList | [Symbol.iterator](): IterableIterator; | Added| -| ohos.util.LinkedList | LinkedList | convertToArray(): Array; | Added| -| ohos.util.LinkedList | LinkedList | clone(): LinkedList; | Added| +| ohos.util.LinkedList | LinkedList | \[Symbol.iterator](): IterableIterator\; | Added| +| ohos.util.LinkedList | LinkedList | convertToArray(): Array\; | Added| +| ohos.util.LinkedList | LinkedList | clone(): LinkedList\; | Added| | ohos.util.LinkedList | LinkedList | clear(): void; | Added| -| ohos.util.LinkedList | LinkedList | forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList) => void, thisArg?: Object): void; | Added| +| ohos.util.LinkedList | LinkedList | forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList\) => void, thisArg?: Object): void; | Added| | ohos.util.LinkedList | LinkedList | set(index: number, element: T): T; | Added| | ohos.util.LinkedList | LinkedList | getLast(): T; | Added| | ohos.util.LinkedList | LinkedList | getFirst(): T; | Added| @@ -194,13 +194,13 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util.LinkedList | LinkedList | length: number; | Added| | ohos.util.LinkedList | LinkedList | constructor(); | Added| | ohos.util.LightWeightSet | LightWeightSet | isEmpty(): boolean; | Added| -| ohos.util.LightWeightSet | LightWeightSet | entries(): IterableIterator<[T, T]>; | Added| -| ohos.util.LightWeightSet | LightWeightSet | values(): IterableIterator; | Added| +| ohos.util.LightWeightSet | LightWeightSet | entries(): IterableIterator\<[T, T]>; | Added| +| ohos.util.LightWeightSet | LightWeightSet | values(): IterableIterator\; | Added| | ohos.util.LightWeightSet | LightWeightSet | getValueAt(index: number): T; | Added| -| ohos.util.LightWeightSet | LightWeightSet | toArray(): Array; | Added| +| ohos.util.LightWeightSet | LightWeightSet | toArray(): Array\; | Added| | ohos.util.LightWeightSet | LightWeightSet | toString(): String; | Added| -| ohos.util.LightWeightSet | LightWeightSet | [Symbol.iterator](): IterableIterator; | Added| -| ohos.util.LightWeightSet | LightWeightSet | forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet) => void, thisArg?: Object): void; | Added| +| ohos.util.LightWeightSet | LightWeightSet | \[Symbol.iterator](): IterableIterator\; | Added| +| ohos.util.LightWeightSet | LightWeightSet | forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet\) => void, thisArg?: Object): void; | Added| | ohos.util.LightWeightSet | LightWeightSet | clear(): void; | Added| | ohos.util.LightWeightSet | LightWeightSet | removeAt(index: number): boolean; | Added| | ohos.util.LightWeightSet | LightWeightSet | remove(key: T): T; | Added| @@ -208,39 +208,39 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util.LightWeightSet | LightWeightSet | increaseCapacityTo(minimumCapacity: number): void; | Added| | ohos.util.LightWeightSet | LightWeightSet | equal(obj: Object): boolean; | Added| | ohos.util.LightWeightSet | LightWeightSet | has(key: T): boolean; | Added| -| ohos.util.LightWeightSet | LightWeightSet | hasAll(set: LightWeightSet): boolean; | Added| -| ohos.util.LightWeightSet | LightWeightSet | addAll(set: LightWeightSet): boolean; | Added| +| ohos.util.LightWeightSet | LightWeightSet | hasAll(set: LightWeightSet\): boolean; | Added| +| ohos.util.LightWeightSet | LightWeightSet | addAll(set: LightWeightSet\): boolean; | Added| | ohos.util.LightWeightSet | LightWeightSet | add(obj: T): boolean; | Added| | ohos.util.LightWeightSet | LightWeightSet | length: number; | Added| | ohos.util.LightWeightSet | LightWeightSet | constructor(); | Added| -| ohos.util.LightWeightMap | LightWeightMap | values(): IterableIterator; | Added| +| ohos.util.LightWeightMap | LightWeightMap | values(): IterableIterator\; | Added| | ohos.util.LightWeightMap | LightWeightMap | getValueAt(index: number): V; | Added| | ohos.util.LightWeightMap | LightWeightMap | toString(): String; | Added| -| ohos.util.LightWeightMap | LightWeightMap | [Symbol.iterator](): IterableIterator<[K, V]>; | Added| -| ohos.util.LightWeightMap | LightWeightMap | forEach(callbackfn: (value?: V, key?: K, map?: LightWeightMap) => void, thisArg?: Object): void; | Added| +| ohos.util.LightWeightMap | LightWeightMap | \[Symbol.iterator](): IterableIterator\<[K, V]>; | Added| +| ohos.util.LightWeightMap | LightWeightMap | forEach(callbackfn: (value?: V, key?: K, map?: LightWeightMap\) => void, thisArg?: Object): void; | Added| | ohos.util.LightWeightMap | LightWeightMap | setValueAt(index: number, newValue: V): boolean; | Added| | ohos.util.LightWeightMap | LightWeightMap | clear(): void; | Added| | ohos.util.LightWeightMap | LightWeightMap | removeAt(index: number): boolean; | Added| | ohos.util.LightWeightMap | LightWeightMap | remove(key: K): V; | Added| | ohos.util.LightWeightMap | LightWeightMap | set(key: K, value: V): Object; | Added| -| ohos.util.LightWeightMap | LightWeightMap | setAll(map: LightWeightMap): void; | Added| -| ohos.util.LightWeightMap | LightWeightMap | keys(): IterableIterator; | Added| +| ohos.util.LightWeightMap | LightWeightMap | setAll(map: LightWeightMap\): void; | Added| +| ohos.util.LightWeightMap | LightWeightMap | keys(): IterableIterator\; | Added| | ohos.util.LightWeightMap | LightWeightMap | getKeyAt(index: number): K; | Added| | ohos.util.LightWeightMap | LightWeightMap | isEmpty(): boolean; | Added| | ohos.util.LightWeightMap | LightWeightMap | getIndexOfValue(value: V): number; | Added| | ohos.util.LightWeightMap | LightWeightMap | getIndexOfKey(key: K): number; | Added| | ohos.util.LightWeightMap | LightWeightMap | get(key: K): V; | Added| -| ohos.util.LightWeightMap | LightWeightMap | entries(): IterableIterator<[K, V]>; | Added| +| ohos.util.LightWeightMap | LightWeightMap | entries(): IterableIterator\<[K, V]>; | Added| | ohos.util.LightWeightMap | LightWeightMap | increaseCapacityTo(minimumCapacity: number): void; | Added| | ohos.util.LightWeightMap | LightWeightMap | hasValue(value: V): boolean; | Added| | ohos.util.LightWeightMap | LightWeightMap | hasKey(key: K): boolean; | Added| -| ohos.util.LightWeightMap | LightWeightMap | hasAll(map: LightWeightMap): boolean; | Added| +| ohos.util.LightWeightMap | LightWeightMap | hasAll(map: LightWeightMap\): boolean; | Added| | ohos.util.LightWeightMap | LightWeightMap | length: number; | Added| | ohos.util.LightWeightMap | LightWeightMap | constructor(); | Added| -| ohos.util.HashSet | HashSet | [Symbol.iterator](): IterableIterator; | Added| -| ohos.util.HashSet | HashSet | entries(): IterableIterator<[T, T]>; | Added| -| ohos.util.HashSet | HashSet | values(): IterableIterator; | Added| -| ohos.util.HashSet | HashSet | forEach(callbackfn: (value?: T, key?: T, set?: HashSet) => void, thisArg?: Object): void; | Added| +| ohos.util.HashSet | HashSet | \[Symbol.iterator](): IterableIterator\; | Added| +| ohos.util.HashSet | HashSet | entries(): IterableIterator\<[T, T]>; | Added| +| ohos.util.HashSet | HashSet | values(): IterableIterator\; | Added| +| ohos.util.HashSet | HashSet | forEach(callbackfn: (value?: T, key?: T, set?: HashSet\) => void, thisArg?: Object): void; | Added| | ohos.util.HashSet | HashSet | clear(): void; | Added| | ohos.util.HashSet | HashSet | remove(value: T): boolean; | Added| | ohos.util.HashSet | HashSet | add(value: T): boolean; | Added| @@ -248,24 +248,24 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util.HashSet | HashSet | isEmpty(): boolean; | Added| | ohos.util.HashSet | HashSet | length: number; | Added| | ohos.util.HashSet | HashSet | constructor(); | Added| -| ohos.util.HashMap | HashMap | [Symbol.iterator](): IterableIterator<[K, V]>; | Added| -| ohos.util.HashMap | HashMap | entries(): IterableIterator<[K, V]>; | Added| -| ohos.util.HashMap | HashMap | forEach(callbackfn: (value?: V, key?: K, map?: HashMap) => void, thisArg?: Object): void; | Added| +| ohos.util.HashMap | HashMap | \[Symbol.iterator](): IterableIterator\<[K, V]>; | Added| +| ohos.util.HashMap | HashMap | entries(): IterableIterator\<[K, V]>; | Added| +| ohos.util.HashMap | HashMap | forEach(callbackfn: (value?: V, key?: K, map?: HashMap\) => void, thisArg?: Object): void; | Added| | ohos.util.HashMap | HashMap | replace(key: K, newValue: V): boolean; | Added| -| ohos.util.HashMap | HashMap | values(): IterableIterator; | Added| -| ohos.util.HashMap | HashMap | keys(): IterableIterator; | Added| +| ohos.util.HashMap | HashMap | values(): IterableIterator\; | Added| +| ohos.util.HashMap | HashMap | keys(): IterableIterator\; | Added| | ohos.util.HashMap | HashMap | clear(): void; | Added| | ohos.util.HashMap | HashMap | remove(key: K): V; | Added| | ohos.util.HashMap | HashMap | set(key: K, value: V): Object; | Added| -| ohos.util.HashMap | HashMap | setAll(map: HashMap): void; | Added| +| ohos.util.HashMap | HashMap | setAll(map: HashMap\): void; | Added| | ohos.util.HashMap | HashMap | get(key: K): V; | Added| | ohos.util.HashMap | HashMap | hasValue(value: V): boolean; | Added| | ohos.util.HashMap | HashMap | hasKey(key: K): boolean; | Added| | ohos.util.HashMap | HashMap | isEmpty(): boolean; | Added| | ohos.util.HashMap | HashMap | length: number; | Added| | ohos.util.HashMap | HashMap | constructor(); | Added| -| ohos.util.Deque | Deque | [Symbol.iterator](): IterableIterator; | Added| -| ohos.util.Deque | Deque | forEach(callbackfn: (value: T, index?: number, deque?: Deque) => void, thisArg?: Object): void; | Added| +| ohos.util.Deque | Deque | \[Symbol.iterator](): IterableIterator\; | Added| +| ohos.util.Deque | Deque | forEach(callbackfn: (value: T, index?: number, deque?: Deque\) => void, thisArg?: Object): void; | Added| | ohos.util.Deque | Deque | popLast(): T; | Added| | ohos.util.Deque | Deque | popFirst(): T; | Added| | ohos.util.Deque | Deque | getLast(): T; | Added| @@ -321,18 +321,18 @@ The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.1 | ohos.util | LruBuffer | getCapacity(): number; | Added| | ohos.util | LruBuffer | length:number | Added| | ohos.util | RationalNumber | valueOf(): number; | Added| -| ohos.util.ArrayList | ArrayList | [Symbol.iterator](): IterableIterator; | Added| +| ohos.util.ArrayList | ArrayList | \[Symbol.iterator](): IterableIterator\; | Added| | ohos.util.ArrayList | ArrayList | trimToCurrentLength(): void; | Added| | ohos.util.ArrayList | ArrayList | increaseCapacityTo(newCapacity: number): void; | Added| | ohos.util.ArrayList | ArrayList | isEmpty(): boolean; | Added| -| ohos.util.ArrayList | ArrayList | convertToArray(): Array; | Added| +| ohos.util.ArrayList | ArrayList | convertToArray(): Array\; | Added| | ohos.util.ArrayList | ArrayList | getCapacity(): number; | Added| -| ohos.util.ArrayList | ArrayList | clone(): ArrayList; | Added| +| ohos.util.ArrayList | ArrayList | clone(): ArrayList\; | Added| | ohos.util.ArrayList | ArrayList | clear(): void; | Added| -| ohos.util.ArrayList | ArrayList | subArrayList(fromIndex: number, toIndex: number): ArrayList; | Added| +| ohos.util.ArrayList | ArrayList | subArrayList(fromIndex: number, toIndex: number): ArrayList\; | Added| | ohos.util.ArrayList | ArrayList | sort(comparator?: (firstValue: T, secondValue: T) => number): void; | Added| -| ohos.util.ArrayList | ArrayList | forEach(callbackfn: (value: T, index?: number, arrlist?: ArrayList) => void, thisArg?: Object): void; | Added| -| ohos.util.ArrayList | ArrayList | replaceAllElements(callbackfn: (value: T, index?: number, arrlist?: ArrayList) => T, thisArg?: Object): void; | Added| +| ohos.util.ArrayList | ArrayList | forEach(callbackfn: (value: T, index?: number, arrlist?: ArrayList\) => void, thisArg?: Object): void; | Added| +| ohos.util.ArrayList | ArrayList | replaceAllElements(callbackfn: (value: T, index?: number, arrlist?: ArrayList\) => T, thisArg?: Object): void; | Added| | ohos.util.ArrayList | ArrayList | removeByRange(fromIndex: number, toIndex: number): void; | Added| | ohos.util.ArrayList | ArrayList | getLastIndexOf(element: T): number; | Added| | ohos.util.ArrayList | ArrayList | remove(element: T): boolean; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md index c9d50992959a981280fed9d864042b1fd2e6a2ab..cb62882538dc22deccd08474034c61b4bf80880d 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md @@ -6,19 +6,19 @@ The table below lists the APIs changes of the DFX subsystem in OpenHarmony 3.1 R | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| -| ohos.hiTraceMeter | hiTraceMeter | function traceByValue(name: string, count: number): void; | Added| -| ohos.hiTraceMeter | hiTraceMeter | function finishTrace(name: string, taskId: number): void; | Added| -| ohos.hiTraceMeter | hiTraceMeter | function startTrace(name: string, taskId: number): void; | Added| -| ohos.hiTraceChain | hiTraceChain | function enableFlag(id: HiTraceId, flag: HiTraceFlag): void; | Added| -| ohos.hiTraceChain | hiTraceChain | function isFlagEnabled(id: HiTraceId, flag: HiTraceFlag): boolean; | Added| -| ohos.hiTraceChain | hiTraceChain | function isValid(id: HiTraceId): boolean; | Added| -| ohos.hiTraceChain | hiTraceChain | function tracepoint(mode: HiTraceCommunicationMode, type: HiTraceTracepointType, id: HiTraceId, msg?: string): void; | Added| -| ohos.hiTraceChain | hiTraceChain | function createSpan(): HiTraceId; | Added| -| ohos.hiTraceChain | hiTraceChain | function clearId(): void; | Added| -| ohos.hiTraceChain | hiTraceChain | function setId(id: HiTraceId): void; | Added| -| ohos.hiTraceChain | hiTraceChain | function getId(): HiTraceId; | Added| -| ohos.hiTraceChain | hiTraceChain | function end(id: HiTraceId): void; | Added| -| ohos.hiTraceChain | hiTraceChain | function begin(name: string, flags: number = HiTraceFlag.DEFAULT): HiTraceId; | Added| +| ohos.hiTraceMeter | hiTraceMeter | traceByValue(name: string, count: number): void; | Added| +| ohos.hiTraceMeter | hiTraceMeter | finishTrace(name: string, taskId: number): void; | Added| +| ohos.hiTraceMeter | hiTraceMeter | startTrace(name: string, taskId: number): void; | Added| +| ohos.hiTraceChain | hiTraceChain | enableFlag(id: HiTraceId, flag: HiTraceFlag): void; | Added| +| ohos.hiTraceChain | hiTraceChain | isFlagEnabled(id: HiTraceId, flag: HiTraceFlag): boolean; | Added| +| ohos.hiTraceChain | hiTraceChain | isValid(id: HiTraceId): boolean; | Added| +| ohos.hiTraceChain | hiTraceChain | tracepoint(mode: HiTraceCommunicationMode, type: HiTraceTracepointType, id: HiTraceId, msg?: string): void; | Added| +| ohos.hiTraceChain | hiTraceChain | createSpan(): HiTraceId; | Added| +| ohos.hiTraceChain | hiTraceChain | clearId(): void; | Added| +| ohos.hiTraceChain | hiTraceChain | setId(id: HiTraceId): void; | Added| +| ohos.hiTraceChain | hiTraceChain | getId(): HiTraceId; | Added| +| ohos.hiTraceChain | hiTraceChain | end(id: HiTraceId): void; | Added| +| ohos.hiTraceChain | hiTraceChain | begin(name: string, flags: number = HiTraceFlag.DEFAULT): HiTraceId; | Added| | ohos.hiTraceChain | HiTraceId | flags?: number; | Added| | ohos.hiTraceChain | HiTraceId | parentSpanId?: number; | Added| | ohos.hiTraceChain | HiTraceId | spanId?: number; | Added| @@ -45,24 +45,24 @@ The table below lists the APIs changes of the DFX subsystem in OpenHarmony 3.1 R | ohos.hilog | LogLevel | WARN = 5 | Added| | ohos.hilog | LogLevel | INFO = 4 | Added| | ohos.hilog | LogLevel | DEBUG = 3 | Added| -| ohos.hilog | hilog | function isLoggable(domain: number, tag: string, level: LogLevel) : boolean; | Added| -| ohos.hilog | hilog | function fatal(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| -| ohos.hilog | hilog | function error(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| -| ohos.hilog | hilog | function warn(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| -| ohos.hilog | hilog | function info(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| -| ohos.hilog | hilog | function debug(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| -| ohos.hidebug | hidebug | function dumpHeapData(filename : string) : void; | Added| -| ohos.hidebug | hidebug | function stopProfiling() : void; | Added| -| ohos.hidebug | hidebug | function startProfiling(filename : string) : void; | Added| -| ohos.hidebug | hidebug | function getSharedDirty() : bigint; | Added| -| ohos.hidebug | hidebug | function getPss() : bigint; | Added| -| ohos.hidebug | hidebug | function getNativeHeapFreeSize() : bigint; | Added| -| ohos.hidebug | hidebug | function getNativeHeapAllocatedSize() : bigint; | Added| -| ohos.hidebug | hidebug | function getNativeHeapSize() : bigint; | Added| -| ohos.hichecker | hichecker | function contains(rule: bigint) : boolean; | Added| -| ohos.hichecker | hichecker | function getRule() : bigint; | Added| -| ohos.hichecker | hichecker | function removeRule(rule: bigint) : void; | Added| -| ohos.hichecker | hichecker | function addRule(rule: bigint) : void; | Added| +| ohos.hilog | hilog | isLoggable(domain: number, tag: string, level: LogLevel) : boolean; | Added| +| ohos.hilog | hilog | fatal(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| +| ohos.hilog | hilog | error(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| +| ohos.hilog | hilog | warn(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| +| ohos.hilog | hilog | info(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| +| ohos.hilog | hilog | debug(domain: number, tag: string, format: string, ...args: any[]) : void; | Added| +| ohos.hidebug | hidebug | dumpHeapData(filename : string) : void; | Added| +| ohos.hidebug | hidebug | stopProfiling() : void; | Added| +| ohos.hidebug | hidebug | startProfiling(filename : string) : void; | Added| +| ohos.hidebug | hidebug | getSharedDirty() : bigint; | Added| +| ohos.hidebug | hidebug | getPss() : bigint; | Added| +| ohos.hidebug | hidebug | getNativeHeapFreeSize() : bigint; | Added| +| ohos.hidebug | hidebug | getNativeHeapAllocatedSize() : bigint; | Added| +| ohos.hidebug | hidebug | getNativeHeapSize() : bigint; | Added| +| ohos.hichecker | hichecker | contains(rule: bigint) : boolean; | Added| +| ohos.hichecker | hichecker | getRule() : bigint; | Added| +| ohos.hichecker | hichecker | removeRule(rule: bigint) : void; | Added| +| ohos.hichecker | hichecker | addRule(rule: bigint) : void; | Added| | ohos.hichecker | hichecker | const RULE_CHECK_ABILITY_CONNECTION_LEAK: 8589934592n; | Added| | ohos.hichecker | hichecker | const RULE_THREAD_CHECK_SLOW_PROCESS: 1n; | Added| | ohos.hichecker | hichecker | const RULE_CAUTION_TRIGGER_CRASH: 4611686018427387904n; | Added| @@ -75,7 +75,7 @@ The table below lists the APIs changes of the DFX subsystem in OpenHarmony 3.1 R | ohos.faultLogger | FaultLogInfo | type: FaultType; | Added| | ohos.faultLogger | FaultLogInfo | uid: number; | Added| | ohos.faultLogger | FaultLogInfo | pid: number; | Added| -| ohos.faultLogger | FaultLogger | function querySelfFaultLog(faultType: FaultType, callback: AsyncCallback>) : void;
function querySelfFaultLog(faultType: FaultType) : Promise>; | Added| +| ohos.faultLogger | FaultLogger | querySelfFaultLog(faultType: FaultType, callback: AsyncCallback\>) : void;
querySelfFaultLog(faultType: FaultType) : Promise\>; | Added| | ohos.faultLogger | FaultType | APP_FREEZE = 4 | Added| | ohos.faultLogger | FaultType | JS_CRASH = 3 | Added| | ohos.faultLogger | FaultType | CPP_CRASH = 2 | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md index 1fa6a0925c5896c2a58c6c7c56cdf96743d56511..6de1c30928c2318ca93ed31c6bace74bd660a2aa 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md @@ -7,57 +7,57 @@ The table below lists the APIs changes of the distributed data management subsys | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| | ohos.data.rdb | RdbPredicates | inAllDevices(): RdbPredicates; | Added| -| ohos.data.rdb | RdbPredicates | inDevices(devices: Array): RdbPredicates; | Added| -| ohos.data.rdb | RdbStore | off(event:'dataChange', type: SubscribeType, observer: Callback>): void; | Added| -| ohos.data.rdb | RdbStore | on(event: 'dataChange', type: SubscribeType, observer: Callback>): void; | Added| -| ohos.data.rdb | RdbStore | sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback>): void;
sync(mode: SyncMode, predicates: RdbPredicates): Promise>; | Added| -| ohos.data.rdb | RdbStore | obtainDistributedTableName(device: string, table: string, callback: AsyncCallback): void;
obtainDistributedTableName(device: string, table: string): Promise; | Added| -| ohos.data.rdb | RdbStore | setDistributedTables(tables: Array, callback: AsyncCallback): void;
setDistributedTables(tables: Array): Promise; | Added| +| ohos.data.rdb | RdbPredicates | inDevices(devices: Array\): RdbPredicates; | Added| +| ohos.data.rdb | RdbStore | off(event:'dataChange', type: SubscribeType, observer: Callback\>): void; | Added| +| ohos.data.rdb | RdbStore | on(event: 'dataChange', type: SubscribeType, observer: Callback\>): void; | Added| +| ohos.data.rdb | RdbStore | sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback\>): void;
sync(mode: SyncMode, predicates: RdbPredicates): Promise\>; | Added| +| ohos.data.rdb | RdbStore | obtainDistributedTableName(device: string, table: string, callback: AsyncCallback\): void;
obtainDistributedTableName(device: string, table: string): Promise\; | Added| +| ohos.data.rdb | RdbStore | setDistributedTables(tables: Array\, callback: AsyncCallback\): void;
setDistributedTables(tables: Array\): Promise\; | Added| | ohos.data.rdb | RdbStore | rollBack():void; | Added| | ohos.data.rdb | RdbStore | commit():void; | Added| | ohos.data.rdb | RdbStore | beginTransaction():void; | Added| -| ohos.data.rdb | RdbStore | querySql(sql: string, bindArgs: Array, callback: AsyncCallback): void;
querySql(sql: string, bindArgs?: Array): Promise; | Added| +| ohos.data.rdb | RdbStore | querySql(sql: string, bindArgs: Array\, callback: AsyncCallback\): void;
querySql(sql: string, bindArgs?: Array\): Promise\; | Added| | ohos.data.rdb | SubscribeType | SUBSCRIBE_TYPE_REMOTE = 0 | Added| | ohos.data.rdb | SyncMode | SYNC_MODE_PULL = 1 | Added| | ohos.data.rdb | SyncMode | SYNC_MODE_PUSH = 0 | Added| -| ohos.data.distributedDataObject | DistributedObject | off(type: 'status', callback?: Callback<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }>): void; | Added| -| ohos.data.distributedDataObject | DistributedObject | on(type: 'status', callback: Callback<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }>): void; | Added| -| ohos.data.distributedDataObject | DistributedObject | off(type: 'change', callback?: Callback<{ sessionId: string, fields: Array }>): void; | Added| -| ohos.data.distributedDataObject | DistributedObject | on(type: 'change', callback: Callback<{ sessionId: string, fields: Array }>): void; | Added| +| ohos.data.distributedDataObject | DistributedObject | off(type: 'status', callback?: Callback\<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }>): void; | Added| +| ohos.data.distributedDataObject | DistributedObject | on(type: 'status', callback: Callback\<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }>): void; | Added| +| ohos.data.distributedDataObject | DistributedObject | off(type: 'change', callback?: Callback\<{ sessionId: string, fields: Array\ }>): void; | Added| +| ohos.data.distributedDataObject | DistributedObject | on(type: 'change', callback: Callback\<{ sessionId: string, fields: Array\ }>): void; | Added| | ohos.data.distributedDataObject | DistributedObject | setSessionId(sessionId?: string): boolean; | Added| -| ohos.data.distributedDataObject | distributedDataObject | function genSessionId(): string; | Added| -| ohos.data.distributedDataObject | distributedDataObject | function createDistributedObject(source: object): DistributedObject; | Added| -| ohos.data.distributedData | KVManager | off(event: 'distributedDataServiceDie', deathCallback?: Callback): void; | Added| -| ohos.data.distributedData | KVManager | on(event: 'distributedDataServiceDie', deathCallback: Callback): void; | Added| -| ohos.data.distributedData | KVManager | getAllKVStoreId(appId: string, callback: AsyncCallback): void;
getAllKVStoreId(appId: string): Promise; | Added| -| ohos.data.distributedData | KVManager | deleteKVStore(appId: string, storeId: string, callback: AsyncCallback): void;
deleteKVStore(appId: string, storeId: string): Promise; | Added| -| ohos.data.distributedData | KVManager | closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback): void;
closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise; | Added| -| ohos.data.distributedData | DeviceKVStore | off(event: 'syncComplete', syncCallback?: Callback>): void; | Added| -| ohos.data.distributedData | DeviceKVStore | on(event: 'syncComplete', syncCallback: Callback>): void; | Added| +| ohos.data.distributedDataObject | distributedDataObject | genSessionId(): string; | Added| +| ohos.data.distributedDataObject | distributedDataObject | createDistributedObject(source: object): DistributedObject; | Added| +| ohos.data.distributedData | KVManager | off(event: 'distributedDataServiceDie', deathCallback?: Callback\): void; | Added| +| ohos.data.distributedData | KVManager | on(event: 'distributedDataServiceDie', deathCallback: Callback\): void; | Added| +| ohos.data.distributedData | KVManager | getAllKVStoreId(appId: string, callback: AsyncCallback\): void;
getAllKVStoreId(appId: string): Promise\; | Added| +| ohos.data.distributedData | KVManager | deleteKVStore(appId: string, storeId: string, callback: AsyncCallback\): void;
deleteKVStore(appId: string, storeId: string): Promise\; | Added| +| ohos.data.distributedData | KVManager | closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback\): void;
closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise\; | Added| +| ohos.data.distributedData | DeviceKVStore | off(event: 'syncComplete', syncCallback?: Callback\>): void; | Added| +| ohos.data.distributedData | DeviceKVStore | on(event: 'syncComplete', syncCallback: Callback\>): void; | Added| | ohos.data.distributedData | DeviceKVStore | sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void; | Added| -| ohos.data.distributedData | DeviceKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback): void;
removeDeviceData(deviceId: string): Promise; | Added| -| ohos.data.distributedData | DeviceKVStore | getResultSize(query: Query, callback: AsyncCallback): void;
getResultSize(query: Query): Promise;
getResultSize(deviceId: string, query: Query, callback: AsyncCallback): void;
getResultSize(deviceId: string, query: Query): Promise; | Added| -| ohos.data.distributedData | DeviceKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback): void;
closeResultSet(resultSet: KvStoreResultSet): Promise; | Added| -| ohos.data.distributedData | DeviceKVStore | getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback): void;
getResultSet(deviceId: string, keyPrefix: string): Promise;
getResultSet(query: Query, callback: AsyncCallback): void;
getResultSet(query: Query): Promise;
getResultSet(deviceId: string, query: Query, callback: AsyncCallback): void;
getResultSet(deviceId: string, query: Query): Promise; | Added| -| ohos.data.distributedData | DeviceKVStore | getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback): void;
getEntries(deviceId: string, keyPrefix: string): Promise;
getEntries(query: Query, callback: AsyncCallback): void;
getEntries(query: Query): Promise;
getEntries(deviceId: string, query: Query, callback: AsyncCallback): void;
getEntries(deviceId: string, query: Query): Promise; | Added| -| ohos.data.distributedData | DeviceKVStore | get(deviceId: string, key: string, callback: AsyncCallback): void;
get(deviceId: string, key: string): Promise; | Added| -| ohos.data.distributedData | SingleKVStore | getSecurityLevel(callback: AsyncCallback): void;
getSecurityLevel(): Promise; | Added| -| ohos.data.distributedData | SingleKVStore | setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback): void;
setSyncParam(defaultAllowedDelayMs: number): Promise; | Added| -| ohos.data.distributedData | SingleKVStore | off(event: 'syncComplete', syncCallback?: Callback>): void; | Added| -| ohos.data.distributedData | SingleKVStore | on(event: 'syncComplete', syncCallback: Callback>): void; | Added| -| ohos.data.distributedData | SingleKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback): void;
removeDeviceData(deviceId: string): Promise; | Added| -| ohos.data.distributedData | SingleKVStore | getResultSize(query: Query, callback: AsyncCallback): void;
getResultSize(query: Query): Promise; | Added| -| ohos.data.distributedData | SingleKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback): void;
closeResultSet(resultSet: KvStoreResultSet): Promise; | Added| -| ohos.data.distributedData | SingleKVStore | getResultSet(keyPrefix: string, callback: AsyncCallback): void;
getResultSet(keyPrefix: string): Promise;
getResultSet(query: Query, callback: AsyncCallback): void;
getResultSet(query: Query): Promise; | Added| -| ohos.data.distributedData | SingleKVStore | getEntries(keyPrefix: string, callback: AsyncCallback): void;
getEntries(keyPrefix: string): Promise;
getEntries(query: Query, callback: AsyncCallback): void;
getEntries(query: Query): Promise; | Added| -| ohos.data.distributedData | KVStore | setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback): void;
setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise; | Added| -| ohos.data.distributedData | KVStore | enableSync(enabled: boolean, callback: AsyncCallback): void;
enableSync(enabled: boolean): Promise; | Added| -| ohos.data.distributedData | KVStore | rollback(callback: AsyncCallback): void;
rollback(): Promise; | Added| -| ohos.data.distributedData | KVStore | commit(callback: AsyncCallback): void;
commit(): Promise; | Added| -| ohos.data.distributedData | KVStore | startTransaction(callback: AsyncCallback): void;
startTransaction(): Promise; | Added| -| ohos.data.distributedData | KVStore | deleteBatch(keys: string[], callback: AsyncCallback): void;
deleteBatch(keys: string[]): Promise; | Added| -| ohos.data.distributedData | KVStore | putBatch(entries: Entry[], callback: AsyncCallback): void;
putBatch(entries: Entry[]): Promise; | Added| -| ohos.data.distributedData | KVStore | off(event:'dataChange', observer?: Callback): void; | Added| +| ohos.data.distributedData | DeviceKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback\): void;
removeDeviceData(deviceId: string): Promise\; | Added| +| ohos.data.distributedData | DeviceKVStore | getResultSize(query: Query, callback: AsyncCallback\): void;
getResultSize(query: Query): Promise\;
getResultSize(deviceId: string, query: Query, callback: AsyncCallback\): void;
getResultSize(deviceId: string, query: Query): Promise\; | Added| +| ohos.data.distributedData | DeviceKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback\): void;
closeResultSet(resultSet: KvStoreResultSet): Promise\; | Added| +| ohos.data.distributedData | DeviceKVStore | getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback\): void;
getResultSet(deviceId: string, keyPrefix: string): Promise\;
getResultSet(query: Query, callback: AsyncCallback\): void;
getResultSet(query: Query): Promise\;
getResultSet(deviceId: string, query: Query, callback: AsyncCallback\): void;
getResultSet(deviceId: string, query: Query): Promise\; | Added| +| ohos.data.distributedData | DeviceKVStore | getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback\): void;
getEntries(deviceId: string, keyPrefix: string): Promise\;
getEntries(query: Query, callback: AsyncCallback\): void;
getEntries(query: Query): Promise\;
getEntries(deviceId: string, query: Query, callback: AsyncCallback\): void;
getEntries(deviceId: string, query: Query): Promise\; | Added| +| ohos.data.distributedData | DeviceKVStore | get(deviceId: string, key: string, callback: AsyncCallback\): void;
get(deviceId: string, key: string): Promise\; | Added| +| ohos.data.distributedData | SingleKVStore | getSecurityLevel(callback: AsyncCallback\): void;
getSecurityLevel(): Promise\; | Added| +| ohos.data.distributedData | SingleKVStore | setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback\): void;
setSyncParam(defaultAllowedDelayMs: number): Promise\; | Added| +| ohos.data.distributedData | SingleKVStore | off(event: 'syncComplete', syncCallback?: Callback\>): void; | Added| +| ohos.data.distributedData | SingleKVStore | on(event: 'syncComplete', syncCallback: Callback\>): void; | Added| +| ohos.data.distributedData | SingleKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback\): void;
removeDeviceData(deviceId: string): Promise\; | Added| +| ohos.data.distributedData | SingleKVStore | getResultSize(query: Query, callback: AsyncCallback\): void;
getResultSize(query: Query): Promise\; | Added| +| ohos.data.distributedData | SingleKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback\): void;
closeResultSet(resultSet: KvStoreResultSet): Promise\; | Added| +| ohos.data.distributedData | SingleKVStore | getResultSet(keyPrefix: string, callback: AsyncCallback\): void;
getResultSet(keyPrefix: string): Promise\;
getResultSet(query: Query, callback: AsyncCallback\): void;
getResultSet(query: Query): Promise\; | Added| +| ohos.data.distributedData | SingleKVStore | getEntries(keyPrefix: string, callback: AsyncCallback\): void;
getEntries(keyPrefix: string): Promise\;
getEntries(query: Query, callback: AsyncCallback\): void;
getEntries(query: Query): Promise\; | Added| +| ohos.data.distributedData | KVStore | setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback\): void;
setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise\; | Added| +| ohos.data.distributedData | KVStore | enableSync(enabled: boolean, callback: AsyncCallback\): void;
enableSync(enabled: boolean): Promise\; | Added| +| ohos.data.distributedData | KVStore | rollback(callback: AsyncCallback\): void;
rollback(): Promise\; | Added| +| ohos.data.distributedData | KVStore | commit(callback: AsyncCallback\): void;
commit(): Promise\; | Added| +| ohos.data.distributedData | KVStore | startTransaction(callback: AsyncCallback\): void;
startTransaction(): Promise\; | Added| +| ohos.data.distributedData | KVStore | deleteBatch(keys: string[], callback: AsyncCallback\): void;
deleteBatch(keys: string[]): Promise\; | Added| +| ohos.data.distributedData | KVStore | putBatch(entries: Entry[], callback: AsyncCallback\): void;
putBatch(entries: Entry[]): Promise\; | Added| +| ohos.data.distributedData | KVStore | off(event:'dataChange', observer?: Callback\): void; | Added| | ohos.data.distributedData | Query | getSqlLike():string; | Added| | ohos.data.distributedData | Query | deviceId(deviceId:string):Query; | Added| | ohos.data.distributedData | Query | setSuggestIndex(index: string): Query; | Added| @@ -105,7 +105,7 @@ The table below lists the APIs changes of the distributed data management subsys | ohos.data.distributedData | FieldNode | constructor(name: string) | Added| | ohos.data.distributedData | Schema | skip: number; | Added| | ohos.data.distributedData | Schema | mode: number; | Added| -| ohos.data.distributedData | Schema | indexes: Array; | Added| +| ohos.data.distributedData | Schema | indexes: Array\; | Added| | ohos.data.distributedData | Schema | root: FieldNode; | Added| | ohos.data.distributedData | Schema | constructor() | Added| | ohos.data.distributedData | Options | schema?: Schema; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md index e5525d21aa3d84cf8c95a65be201f8ecddcd1691..8408a41ed3d7a85bf8f4936e181ed81161b0b8d3 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md @@ -7,8 +7,8 @@ The table below lists the APIs changes of the Distributed Data Management subsys | Module | API | Change Type | Change Description | | -------- | -------- | -------- | -------- | | Distributed Hardware Subsystem - DeviceManager| release(): void | Deleted| This API is deleted to reduce security risks.| -| Distributed Hardware Subsystem - DeviceManager| getTrustedDeviceListSync(): Array | Deleted| This API is deleted to reduce security risks.| -| Distributed Hardware Subsystem - DeviceManager| on(type: 'deviceStateChange', callback: Callback<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void | Deleted| This API is deleted to reduce security risks.| -| Distributed Hardware Subsystem - DeviceManager| off(type: 'deviceStateChange', callback?: Call back<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void | Deleted| This API is deleted to reduce security risks.| +| Distributed Hardware Subsystem - DeviceManager| getTrustedDeviceListSync(): Array\ | Deleted| This API is deleted to reduce security risks.| +| Distributed Hardware Subsystem - DeviceManager| on(type: 'deviceStateChange', callback: Callback\<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void | Deleted| This API is deleted to reduce security risks.| +| Distributed Hardware Subsystem - DeviceManager| off(type: 'deviceStateChange', callback?: Callback\<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void | Deleted| This API is deleted to reduce security risks.| | Distributed Hardware Subsystem - DeviceManager| on(type: 'serviceDie', callback: () => void): void | Deleted| This API is deleted to reduce security risks.| | Distributed Hardware Subsystem - DeviceManager| off(type: 'serviceDie', callback?: () => void): void | Deleted| This API is deleted to reduce security risks.| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md index 41c42a050d3387fcb6b85b2820fb3618cd43161d..23a8138e02ccfb4dd6c8be090174bea3efb489f5 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md @@ -9,8 +9,8 @@ The table below lists the APIs changes of the common event and notification fram | notificationUserInput | NotificationUserInput | inputKey: string; | Added| | notificationTemplate | NotificationTemplate | data: {[key: string]: Object}; | Added| | notificationTemplate | NotificationTemplate | name: string; | Added| -| notificationRequest | DistributedOptions | supportOperateDevices?: Array; | Added| -| notificationRequest | DistributedOptions | supportDisplayDevices?: Array; | Added| +| notificationRequest | DistributedOptions | supportOperateDevices?: Array\; | Added| +| notificationRequest | DistributedOptions | supportDisplayDevices?: Array\; | Added| | notificationRequest | DistributedOptions | isDistributed?: boolean; | Added| | notificationRequest | NotificationRequest | readonly notificationFlags?: NotificationFlags; | Added| | notificationRequest | NotificationRequest | distributedOption?: DistributedOptions; | Added| @@ -18,10 +18,10 @@ The table below lists the APIs changes of the common event and notification fram | notificationRequest | NotificationRequest | readonly creatorUserId?: number; | Added| | notificationRequest | NotificationRequest | groupName?: string; | Added| | notificationActionButton | NotificationActionButton | userInput?: NotificationUserInput; | Added| -| ohos.notification | notification | function isDistributedEnabled(callback: AsyncCallback): void;
function isDistributedEnabled(): Promise; | Added| -| ohos.notification | notification | function requestEnableNotification(callback: AsyncCallback): void;
function requestEnableNotification(): Promise; | Added| -| ohos.notification | notification | function isSupportTemplate(templateName: string, callback: AsyncCallback): void;
function isSupportTemplate(templateName: string): Promise; | Added| -| ohos.notification | notification | function cancelGroup(groupName: string, callback: AsyncCallback): void;
function cancelGroup(groupName: string): Promise; | Added| +| ohos.notification | notification | isDistributedEnabled(callback: AsyncCallback\): void;
isDistributedEnabled(): Promise\; | Added| +| ohos.notification | notification | requestEnableNotification(callback: AsyncCallback\): void;
requestEnableNotification(): Promise\; | Added| +| ohos.notification | notification | isSupportTemplate(templateName: string, callback: AsyncCallback\): void;
isSupportTemplate(templateName: string): Promise\; | Added| +| ohos.notification | notification | cancelGroup(groupName: string, callback: AsyncCallback\): void;
cancelGroup(groupName: string): Promise\; | Added| | ohos.events.emitter | EventPriority | IDLE | Added| | ohos.events.emitter | EventPriority | LOW | Added| | ohos.events.emitter | EventPriority | HIGH | Added| @@ -29,9 +29,9 @@ The table below lists the APIs changes of the common event and notification fram | ohos.events.emitter | InnerEvent | priority?: EventPriority; | Added| | ohos.events.emitter | InnerEvent | eventId: number; | Added| | ohos.events.emitter | EventData | data?: {[key: string]: any}; | Added| -| ohos.events.emitter | emitter | function emit(event: InnerEvent, data?: EventData): void; | Added| -| ohos.events.emitter | emitter | function off(eventId: number): void; | Added| -| ohos.events.emitter | emitter | function once(event: InnerEvent, callback: Callback): void; | Added| -| ohos.events.emitter | emitter | function on(event: InnerEvent, callback: Callback): void; | Added| +| ohos.events.emitter | emitter | emit(event: InnerEvent, data?: EventData): void; | Added| +| ohos.events.emitter | emitter | off(eventId: number): void; | Added| +| ohos.events.emitter | emitter | once(event: InnerEvent, callback: Callback\): void; | Added| +| ohos.events.emitter | emitter | on(event: InnerEvent, callback: Callback\): void; | Added| | ohos.commonEvent | Support | COMMON_EVENT_SPLIT_SCREEN = "common.event.SPLIT_SCREEN" | Added| | ohos.commonEvent | Support | COMMON_EVENT_THERMAL_LEVEL_CHANGED = "usual.event.THERMAL_LEVEL_CHANGED" | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md index d1adbceaaebcbfb9b5afc20ed2f8240d7b453aa8..81fe14b75623f8e4f5ddd64aa754b885c3c11235 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md @@ -6,53 +6,53 @@ The table below lists the APIs changes of the file management subsystem in OpenH | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| -| ohos.statfs | Statfs | function getTotalBytes(path: string, callback: AsyncCallback): void;
function getTotalBytes(path: string): Promise; | Added| -| ohos.statfs | Statfs | function getFreeBytes(path: string, callback: AsyncCallback): void;
function getFreeBytes(path: string): Promise; | Added| -| ohos.fileio | Watcher | stop(): Promise;
stop(callback: AsyncCallback): void; | Added| +| ohos.statfs | Statfs | getTotalBytes(path: string, callback: AsyncCallback\): void;
getTotalBytes(path: string): Promise\; | Added| +| ohos.statfs | Statfs | getFreeBytes(path: string, callback: AsyncCallback\): void;
getFreeBytes(path: string): Promise\; | Added| +| ohos.fileio | Watcher | stop(): Promise\;
stop(callback: AsyncCallback\): void; | Added| | ohos.fileio | ReadOut | buffer: ArrayBuffer; | Added| | ohos.fileio | ReadOut | offset: number; | Added| | ohos.fileio | ReadOut | bytesRead: number; | Added| -| ohos.fileio | Stream | read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): Promise;
read(buffer: ArrayBuffer, callback: AsyncCallback): void;
read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback): void; | Added| -| ohos.fileio | Stream | write(buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise;
write(buffer: ArrayBuffer \| string, callback: AsyncCallback): void;
write(buffer: ArrayBuffer \| string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback): void; | Added| -| ohos.fileio | Stream | flush(): Promise;
flush(callback: AsyncCallback): void; | Added| -| ohos.fileio | Stream | close(): Promise;
close(callback: AsyncCallback): void; | Added| -| ohos.fileio | Dir | close(): Promise;
close(callback: AsyncCallback): void; | Added| -| ohos.fileio | Dir | read(): Promise;
read(callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function createWatcher(filename: string, events: number, callback: AsyncCallback): Watcher; | Added| -| ohos.fileio | fileIO | function write(fd: number, buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise;
function write(fd: number, buffer: ArrayBuffer \| string, callback: AsyncCallback): void;
function write(fd: number, buffer: ArrayBuffer \| string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function unlink(path: string): Promise;
function unlink(path: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function truncate(path: string, len?: number): Promise;
function truncate(path: string, callback: AsyncCallback): void;
function truncate(path: string, len: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function symlinkSync(target: string, srcPath: string): void; | Added| -| ohos.fileio | fileIO | function symlink(target: string, srcPath: string): Promise;
function symlink(target: string, srcPath: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function stat(path: string): Promise;
function stat(path: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function rmdir(path: string): Promise;
function rmdir(path: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function rename(oldPath: string, newPath: string): Promise;
function rename(oldPath: string, newPath: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise
function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback): void;
function read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string;| Added| -| ohos.fileio | fileIO | function readText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): Promise;
function readText(filePath: string, options: { position?: number; length?: number; encoding?: string; }, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function opendir(path: string): Promise;
function opendir(path: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function open(path: string, flags?: number, mode?: number): Promise;
function open(path: string, callback: AsyncCallback): void;
function open(path: string, flags: number, callback: AsyncCallback): void;
function open(path: string, flags: number, mode: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function mkdtempSync(prefix: string): string; | Added| -| ohos.fileio | fileIO | function mkdtemp(prefix: string): Promise;
function mkdtemp(prefix: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function mkdir(path: string, mode?: number): Promise;
function mkdir(path: string, callback: AsyncCallback): void;
function mkdir(path: string, mode: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function lstatSync(path: string): Stat; | Added| -| ohos.fileio | fileIO | function lstat(path: string): Promise;
function lstat(path: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function lchownSync(path: string, uid: number, gid: number): void; | Added| -| ohos.fileio | fileIO | function lchown(path: string, uid: number, gid: number): Promise;
function lchown(path: string, uid: number, gid: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function hash(path: string, algorithm: string): Promise;
function hash(path: string, algorithm: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function fdopenStream(fd: number, mode: string): Promise;
function fdopenStream(fd: number, mode: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function fchmod(fd: number, mode: number): Promise;
function fchmod(fd: number, mode: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function fchown(fd: number, uid: number, gid: number): Promise;
function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function fdatasyncSync(fd: number): void; | Added| -| ohos.fileio | fileIO | function fdatasync(fd: number): Promise;
function fdatasync(fd: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function fstat(fd: number): Promise;
function fstat(fd: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function fsync(fd: number): Promise;
function fsync(fd: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function ftruncate(fd: number, len?: number): Promise;
function ftruncate(fd: number, callback: AsyncCallback): void;
function ftruncate(fd: number, len: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function chmod(path: string, mode: number): Promise;
function chmod(path: string, mode: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function chown(path: string, uid: number, gid: number): Promise;
function chown(path: string, uid: number, gid: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function createStream(path: string, mode: string): Promise;
function createStream(path: string, mode: string, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise;
function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback): void;
function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function close(fd: number): Promise;
function close(fd: number, callback: AsyncCallback): void; | Added| -| ohos.fileio | fileIO | function access(path: string, mode?: number): Promise;
function access(path: string, callback: AsyncCallback): void;
function access(path: string, mode: number, callback: AsyncCallback): void; | Added| -| ohos.document | document | function show(uri: string, type: string): Promise;
function show(uri: string, type: string, callback: AsyncCallback): void; | Added| -| ohos.document | document | function choose(types?: string[]): Promise;
function choose(callback: AsyncCallback): void;
function choose(types: string[], callback: AsyncCallback): void; | Added| +| ohos.fileio | Stream | read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }): Promise\;
read(buffer: ArrayBuffer, callback: AsyncCallback\): void;
read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback\): void; | Added| +| ohos.fileio | Stream | write(buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise\;
write(buffer: ArrayBuffer \| string, callback: AsyncCallback\): void;
write(buffer: ArrayBuffer \| string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback\): void; | Added| +| ohos.fileio | Stream | flush(): Promise\;
flush(callback: AsyncCallback\): void; | Added| +| ohos.fileio | Stream | close(): Promise\;
close(callback: AsyncCallback\): void; | Added| +| ohos.fileio | Dir | close(): Promise\;
close(callback: AsyncCallback\): void; | Added| +| ohos.fileio | Dir | read(): Promise\;
read(callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | createWatcher(filename: string, events: number, callback: AsyncCallback\): Watcher; | Added| +| ohos.fileio | fileIO | write(fd: number, buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise\;
write(fd: number, buffer: ArrayBuffer \| string, callback: AsyncCallback\): void;
write(fd: number, buffer: ArrayBuffer \| string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | unlink(path: string): Promise\;
unlink(path: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | truncate(path: string, len?: number): Promise\;
truncate(path: string, callback: AsyncCallback\): void;
truncate(path: string, len: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | symlinkSync(target: string, srcPath: string): void; | Added| +| ohos.fileio | fileIO | symlink(target: string, srcPath: string): Promise\;
symlink(target: string, srcPath: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | stat(path: string): Promise\;
stat(path: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | rmdir(path: string): Promise\;
rmdir(path: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | rename(oldPath: string, newPath: string): Promise\;
rename(oldPath: string, newPath: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise\
read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback\): void;
read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string; | Added| +| ohos.fileio | fileIO | readText(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): Promise\;
readText(filePath: string, options: { position?: number; length?: number; encoding?: string; }, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | opendir(path: string): Promise\;
opendir(path: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | open(path: string, flags?: number, mode?: number): Promise\;
open(path: string, callback: AsyncCallback\): void;
open(path: string, flags: number, callback: AsyncCallback\): void;
open(path: string, flags: number, mode: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | mkdtempSync(prefix: string): string; | Added| +| ohos.fileio | fileIO | mkdtemp(prefix: string): Promise\;
mkdtemp(prefix: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | mkdir(path: string, mode?: number): Promise\;
mkdir(path: string, callback: AsyncCallback\): void;
mkdir(path: string, mode: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | lstatSync(path: string): Stat; | Added| +| ohos.fileio | fileIO | lstat(path: string): Promise\;
lstat(path: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | lchownSync(path: string, uid: number, gid: number): void; | Added| +| ohos.fileio | fileIO | lchown(path: string, uid: number, gid: number): Promise\;
lchown(path: string, uid: number, gid: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | hash(path: string, algorithm: string): Promise\;
hash(path: string, algorithm: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | fdopenStream(fd: number, mode: string): Promise\;
fdopenStream(fd: number, mode: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | fchmod(fd: number, mode: number): Promise\;
fchmod(fd: number, mode: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | fchown(fd: number, uid: number, gid: number): Promise\;
fchown(fd: number, uid: number, gid: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | fdatasyncSync(fd: number): void; | Added| +| ohos.fileio | fileIO | fdatasync(fd: number): Promise\;
fdatasync(fd: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | fstat(fd: number): Promise\;
fstat(fd: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | fsync(fd: number): Promise\;
fsync(fd: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | ftruncate(fd: number, len?: number): Promise\;
ftruncate(fd: number, callback: AsyncCallback\): void;
ftruncate(fd: number, len: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | chmod(path: string, mode: number): Promise\;
chmod(path: string, mode: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | chown(path: string, uid: number, gid: number): Promise\;
chown(path: string, uid: number, gid: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | createStream(path: string, mode: string): Promise\;
createStream(path: string, mode: string, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | copyFile(src: string \| number, dest: string \| number, mode?: number): Promise\;
copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback\): void;
copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | close(fd: number): Promise\;
close(fd: number, callback: AsyncCallback\): void; | Added| +| ohos.fileio | fileIO | access(path: string, mode?: number): Promise\;
access(path: string, callback: AsyncCallback\): void;
access(path: string, mode: number, callback: AsyncCallback\): void; | Added| +| ohos.document | document | show(uri: string, type: string): Promise\;
show(uri: string, type: string, callback: AsyncCallback\): void; | Added| +| ohos.document | document | choose(types?: string[]): Promise\;
choose(callback: AsyncCallback\): void;
choose(types: string[], callback: AsyncCallback\): void; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md index 0400aa65fbe4afb77a7e2ed0e5507d9024072171..19b0cf59e9e6cfe72f5fa7c6dbf2c6f385c3d144 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md @@ -29,7 +29,7 @@ The table below lists the APIs changes of the location subsystem in OpenHarmony | ohos.geolocation | LocationRequestPriority | ACCURACY | Added| | ohos.geolocation | LocationRequestPriority | UNSET = 0x200 | Added| | ohos.geolocation | Location | additionSize?: number; | Added| -| ohos.geolocation | Location | additions?: Array; | Added| +| ohos.geolocation | Location | additions?: Array\; | Added| | ohos.geolocation | Location | timeSinceBoot: number; | Added| | ohos.geolocation | Location | direction: number; | Added| | ohos.geolocation | Location | timeStamp: number; | Added| @@ -48,7 +48,7 @@ The table below lists the APIs changes of the location subsystem in OpenHarmony | ohos.geolocation | LocationRequest | scenario?: LocationRequestScenario; | Added| | ohos.geolocation | LocationRequest | priority?: LocationRequestPriority; | Added| | ohos.geolocation | GeoAddress | descriptionsSize?: number; | Added| -| ohos.geolocation | GeoAddress | descriptions?: Array; | Added| +| ohos.geolocation | GeoAddress | descriptions?: Array\; | Added| | ohos.geolocation | GeoAddress | addressUrl?: string; | Added| | ohos.geolocation | GeoAddress | phoneNumber?: string; | Added| | ohos.geolocation | GeoAddress | postalCode?: string; | Added| @@ -85,31 +85,31 @@ The table below lists the APIs changes of the location subsystem in OpenHarmony | ohos.geolocation | GeofenceRequest | priority: LocationRequestPriority; | Added| | ohos.geolocation | CachedGnssLocationsRequest | wakeUpCacheQueueFull: boolean; | Added| | ohos.geolocation | CachedGnssLocationsRequest | reportingPeriodSec: number; | Added| -| ohos.geolocation | SatelliteStatusInfo | carrierFrequencies: Array; | Added| -| ohos.geolocation | SatelliteStatusInfo | azimuths: Array; | Added| -| ohos.geolocation | SatelliteStatusInfo | altitudes: Array; | Added| -| ohos.geolocation | SatelliteStatusInfo | carrierToNoiseDensitys: Array; | Added| -| ohos.geolocation | SatelliteStatusInfo | satelliteIds: Array; | Added| +| ohos.geolocation | SatelliteStatusInfo | carrierFrequencies: Array\; | Added| +| ohos.geolocation | SatelliteStatusInfo | azimuths: Array\; | Added| +| ohos.geolocation | SatelliteStatusInfo | altitudes: Array\; | Added| +| ohos.geolocation | SatelliteStatusInfo | carrierToNoiseDensitys: Array\; | Added| +| ohos.geolocation | SatelliteStatusInfo | satelliteIds: Array\; | Added| | ohos.geolocation | SatelliteStatusInfo | satellitesNumber: number; | Added| -| ohos.geolocation | geolocation | function sendCommand(command: LocationCommand, callback: AsyncCallback) : void;
function sendCommand(command: LocationCommand) : Promise; | Added| -| ohos.geolocation | geolocation | function flushCachedGnssLocations(callback: AsyncCallback) : void;
function flushCachedGnssLocations() : Promise; | Added| -| ohos.geolocation | geolocation | function getCachedGnssLocationsSize(callback: AsyncCallback) : void;
function getCachedGnssLocationsSize() : Promise; | Added| -| ohos.geolocation | geolocation | function isGeoServiceAvailable(callback: AsyncCallback) : void;
function isGeoServiceAvailable() : Promise; | Added| -| ohos.geolocation | geolocation | function getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback>) : void;
function getAddressesFromLocationName(request: GeoCodeRequest) : Promise>; | Added| -| ohos.geolocation | geolocation | function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback>) : void;
function getAddressesFromLocation(request: ReverseGeoCodeRequest) : Promise>; | Added| -| ohos.geolocation | geolocation | function requestEnableLocation(callback: AsyncCallback) : void;
function requestEnableLocation() : Promise; | Added| -| ohos.geolocation | geolocation | function isLocationEnabled(callback: AsyncCallback) : void;
function isLocationEnabled() : Promise; | Added| -| ohos.geolocation | geolocation | function getLastLocation(callback: AsyncCallback) : void;
function getLastLocation() : Promise; | Added| -| ohos.geolocation | geolocation | function getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback) : void;
function getCurrentLocation(callback: AsyncCallback) : void;
function getCurrentLocation(request?: CurrentLocationRequest) : Promise; | Added| -| ohos.geolocation | geolocation | function off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | Added| -| ohos.geolocation | geolocation | function on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | Added| -| ohos.geolocation | geolocation | function off(type: 'nmeaMessageChange', callback?: Callback) : void; | Added| -| ohos.geolocation | geolocation | function on(type: 'nmeaMessageChange', callback: Callback) : void; | Added| -| ohos.geolocation | geolocation | function off(type: 'gnssStatusChange', callback?: Callback) : void; | Added| -| ohos.geolocation | geolocation | function on(type: 'gnssStatusChange', callback: Callback) : void; | Added| -| ohos.geolocation | geolocation | function off(type: 'cachedGnssLocationsReporting', callback?: Callback>) : void; | Added| -| ohos.geolocation | geolocation | function on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback>) : void; | Added| -| ohos.geolocation | geolocation | function off(type: 'locationServiceState', callback?: Callback) : void; | Added| -| ohos.geolocation | geolocation | function on(type: 'locationServiceState', callback: Callback) : void; | Added| -| ohos.geolocation | geolocation | function off(type: 'locationChange', callback?: Callback) : void; | Added| -| ohos.geolocation | geolocation | function on(type: 'locationChange', request: LocationRequest, callback: Callback) : void; | Added| +| ohos.geolocation | geolocation | sendCommand(command: LocationCommand, callback: AsyncCallback\) : void;
sendCommand(command: LocationCommand) : Promise\; | Added| +| ohos.geolocation | geolocation | flushCachedGnssLocations(callback: AsyncCallback\) : void;
flushCachedGnssLocations() : Promise\; | Added| +| ohos.geolocation | geolocation | getCachedGnssLocationsSize(callback: AsyncCallback\) : void;
getCachedGnssLocationsSize() : Promise\; | Added| +| ohos.geolocation | geolocation | isGeoServiceAvailable(callback: AsyncCallback\) : void;
isGeoServiceAvailable() : Promise\; | Added| +| ohos.geolocation | geolocation | getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback\>) : void;
getAddressesFromLocationName(request: GeoCodeRequest) : Promise\>; | Added| +| ohos.geolocation | geolocation | getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback\>) : void;
getAddressesFromLocation(request: ReverseGeoCodeRequest) : Promise\>; | Added| +| ohos.geolocation | geolocation | requestEnableLocation(callback: AsyncCallback\) : void;
requestEnableLocation() : Promise\; | Added| +| ohos.geolocation | geolocation | isLocationEnabled(callback: AsyncCallback\) : void;
isLocationEnabled() : Promise\; | Added| +| ohos.geolocation | geolocation | getLastLocation(callback: AsyncCallback\) : void;
getLastLocation() : Promise\; | Added| +| ohos.geolocation | geolocation | getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback\) : void;
getCurrentLocation(callback: AsyncCallback\) : void;
getCurrentLocation(request?: CurrentLocationRequest) : Promise\; | Added| +| ohos.geolocation | geolocation | off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | Added| +| ohos.geolocation | geolocation | on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | Added| +| ohos.geolocation | geolocation | off(type: 'nmeaMessageChange', callback?: Callback\) : void; | Added| +| ohos.geolocation | geolocation | on(type: 'nmeaMessageChange', callback: Callback\) : void; | Added| +| ohos.geolocation | geolocation | off(type: 'gnssStatusChange', callback?: Callback\) : void; | Added| +| ohos.geolocation | geolocation | on(type: 'gnssStatusChange', callback: Callback\) : void; | Added| +| ohos.geolocation | geolocation | off(type: 'cachedGnssLocationsReporting', callback?: Callback\>) : void; | Added| +| ohos.geolocation | geolocation | on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback\>) : void; | Added| +| ohos.geolocation | geolocation | off(type: 'locationServiceState', callback?: Callback\) : void; | Added| +| ohos.geolocation | geolocation | on(type: 'locationServiceState', callback: Callback\) : void; | Added| +| ohos.geolocation | geolocation | off(type: 'locationChange', callback?: Callback\) : void; | Added| +| ohos.geolocation | geolocation | on(type: 'locationChange', request: LocationRequest, callback: Callback\) : void; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-global.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-global.md index 6a51f97bc9ccc0971a38ff38cb1c674ba72f93ce..c98d88b4254dd4ab0ca3dcd50b8198e0e1e8e4dd 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-global.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-global.md @@ -10,12 +10,12 @@ The table below lists the APIs changes of the globalization subsystem in OpenHar | rawFileDescriptor | RawFileDescriptor | offset: number; | Added| | rawFileDescriptor | RawFileDescriptor | fd: number; | Added| | ohos.resourceManager | ResourceManager | release(); | Added| -| ohos.resourceManager | ResourceManager | closeRawFileDescriptor(path: string, callback: AsyncCallback): void;
closeRawFileDescriptor(path: string): Promise; | Added| -| ohos.resourceManager | ResourceManager | getRawFileDescriptor(path: string, callback: AsyncCallback): void;
getRawFileDescriptor(path: string): Promise; | Added| -| ohos.resourceManager | ResourceManager | getRawFile(path: string, callback: AsyncCallback): void;
getRawFile(path: string): Promise; | Added| -| ohos.resourceManager | resourceManager | function getResourceManager(callback: AsyncCallback): void;
export function getResourceManager(bundleName: string, callback: AsyncCallback): void;
export function getResourceManager(): Promise;
export function getResourceManager(bundleName: string): Promise; | Added| +| ohos.resourceManager | ResourceManager | closeRawFileDescriptor(path: string, callback: AsyncCallback\): void;
closeRawFileDescriptor(path: string): Promise\; | Added| +| ohos.resourceManager | ResourceManager | getRawFileDescriptor(path: string, callback: AsyncCallback\): void;
getRawFileDescriptor(path: string): Promise\; | Added| +| ohos.resourceManager | ResourceManager | getRawFile(path: string, callback: AsyncCallback\): void;
getRawFile(path: string): Promise\; | Added| +| ohos.resourceManager | resourceManager | getResourceManager(callback: AsyncCallback\): void;
getResourceManager(bundleName: string, callback: AsyncCallback\): void;
getResourceManager(): Promise\;
getResourceManager(bundleName: string): Promise\; | Added| | ohos.intl | RelativeTimeFormat | resolvedOptions(): RelativeTimeFormatResolvedOptions; | Added| -| ohos.intl | RelativeTimeFormat | formatToParts(value: number, unit: string): Array; | Added| +| ohos.intl | RelativeTimeFormat | formatToParts(value: number, unit: string): Array\; | Added| | ohos.intl | RelativeTimeFormat | format(value: number, unit: string): string; | Added| | ohos.intl | RelativeTimeFormat | constructor(); | Added| | ohos.intl | RelativeTimeFormatResolvedOptions | numberingSystem: string; | Added| @@ -55,13 +55,13 @@ The table below lists the APIs changes of the globalization subsystem in OpenHar | ohos.i18n | TimeZone | getRawOffset(): number; | Added| | ohos.i18n | TimeZone | getDisplayName(locale?: string, isDST?: boolean): string; | Added| | ohos.i18n | TimeZone | getID(): string; | Added| -| ohos.i18n | i18n | function getTimeZone(zoneID?: string): TimeZone; | Added| -| ohos.i18n | i18n | function getFirstPreferredLanguage(): string; | Added| -| ohos.i18n | i18n | function getPreferredLanguageList(): Array; | Added| -| ohos.i18n | i18n | function removePreferredLanguage(index: number): boolean; | Added| -| ohos.i18n | i18n | function addPreferredLanguage(language: string, index?: number): boolean; | Added| -| ohos.i18n | i18n | function set24HourClock(option: boolean): boolean; | Added| -| ohos.i18n | i18n | function is24HourClock(): boolean; | Added| +| ohos.i18n | i18n | getTimeZone(zoneID?: string): TimeZone; | Added| +| ohos.i18n | i18n | getFirstPreferredLanguage(): string; | Added| +| ohos.i18n | i18n | getPreferredLanguageList(): Array\; | Added| +| ohos.i18n | i18n | removePreferredLanguage(index: number): boolean; | Added| +| ohos.i18n | i18n | addPreferredLanguage(language: string, index?: number): boolean; | Added| +| ohos.i18n | i18n | set24HourClock(option: boolean): boolean; | Added| +| ohos.i18n | i18n | is24HourClock(): boolean; | Added| | ohos.i18n | Character | getType(char: string): string; | Added| | ohos.i18n | Character | isUpperCase(char: string): boolean; | Added| | ohos.i18n | Character | isLowerCase(char: string): boolean; | Added| @@ -73,8 +73,8 @@ The table below lists the APIs changes of the globalization subsystem in OpenHar | ohos.i18n | Character | isDigit(char: string): boolean; | Added| | ohos.i18n | IndexUtil | getIndex(text: string): string; | Added| | ohos.i18n | IndexUtil | addLocale(locale: string): void; | Added| -| ohos.i18n | IndexUtil | getIndexList(): Array; | Added| -| ohos.i18n | i18n | function getInstance(locale?:string): IndexUtil; | Added| +| ohos.i18n | IndexUtil | getIndexList(): Array\; | Added| +| ohos.i18n | i18n | getInstance(locale?:string): IndexUtil; | Added| | ohos.i18n | BreakIterator | isBoundary(offset: number): boolean; | Added| | ohos.i18n | BreakIterator | getLineBreakText(): string; | Added| | ohos.i18n | BreakIterator | following(offset: number): number; | Added| @@ -84,8 +84,8 @@ The table below lists the APIs changes of the globalization subsystem in OpenHar | ohos.i18n | BreakIterator | last(): number; | Added| | ohos.i18n | BreakIterator | first(): number; | Added| | ohos.i18n | BreakIterator | current(): number; | Added| -| ohos.i18n | i18n | function getLineInstance(locale: string): BreakIterator; | Added| -| ohos.i18n | i18n | function isRTL(locale: string): boolean; | Added| +| ohos.i18n | i18n | getLineInstance(locale: string): BreakIterator; | Added| +| ohos.i18n | i18n | isRTL(locale: string): boolean; | Added| | ohos.i18n | Calendar | isWeekend(date?: Date): boolean; | Added| | ohos.i18n | Calendar | getDisplayName(locale: string): string; | Added| | ohos.i18n | Calendar | get(field: string): number; | Added| @@ -97,7 +97,7 @@ The table below lists the APIs changes of the globalization subsystem in OpenHar | ohos.i18n | Calendar | setTimeZone(timezone: string): void; | Added| | ohos.i18n | Calendar | set(year: number, month: number, date:number, hour?: number, minute?: number, second?: number): void; | Added| | ohos.i18n | Calendar | setTime(date: Date): void;
setTime(time: number): void; | Added| -| ohos.i18n | i18n | function getCalendar(locale: string, type?: string): Calendar; | Added| +| ohos.i18n | i18n | getCalendar(locale: string, type?: string): Calendar; | Added| | ohos.i18n | PhoneNumberFormat | format(number: string): string; | Added| | ohos.i18n | PhoneNumberFormat | isValidNumber(number: string): boolean; | Added| | ohos.i18n | PhoneNumberFormat | constructor(country: string, options?: PhoneNumberFormatOptions); | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-misc.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-misc.md index 5dd36610549f5b3be4d5d9d7fa0ed6fe56eac05e..a7061231501caaca750aca213b7529483558e1f7 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-misc.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-misc.md @@ -10,34 +10,34 @@ The table below lists the APIs changes of the Misc services subsystem in OpenHar | ohos.wallpaper | RgbaColor | blue: number; | Added| | ohos.wallpaper | RgbaColor | green: number; | Added| | ohos.wallpaper | RgbaColor | red: number; | Added| -| ohos.wallpaper | wallpaper | function off(type: 'colorChange', callback?: (colors: Array, wallpaperType: WallpaperType) => void): void; | Added| -| ohos.wallpaper | wallpaper | function on(type: 'colorChange', callback: (colors: Array, wallpaperType: WallpaperType) => void): void; | Added| -| ohos.wallpaper | wallpaper | function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback): void;
function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise; | Added| -| ohos.wallpaper | wallpaper | function reset(wallpaperType: WallpaperType, callback: AsyncCallback): void;
function reset(wallpaperType: WallpaperType): Promise; | Added| -| ohos.wallpaper | wallpaper | function isOperationAllowed(callback: AsyncCallback): void;
function isOperationAllowed(): Promise; | Added| -| ohos.wallpaper | wallpaper | function isChangePermitted(callback: AsyncCallback): void;
function isChangePermitted(): Promise; | Added| -| ohos.wallpaper | wallpaper | function getMinWidth(callback: AsyncCallback): void;
function getMinWidth(): Promise; | Added| -| ohos.wallpaper | wallpaper | function getMinHeight(callback: AsyncCallback): void;
function getMinHeight(): Promise; | Added| -| ohos.wallpaper | wallpaper | function getFile(wallpaperType: WallpaperType, callback: AsyncCallback): void;
function getFile(wallpaperType: WallpaperType): Promise; | Added| -| ohos.wallpaper | wallpaper | function getId(wallpaperType: WallpaperType, callback: AsyncCallback): void;
function getId(wallpaperType: WallpaperType): Promise; | Added| -| ohos.wallpaper | wallpaper | function getColors(wallpaperType: WallpaperType, callback: AsyncCallback>): void;
function getColors(wallpaperType: WallpaperType): Promise>; | Added| +| ohos.wallpaper | wallpaper | function off(type: 'colorChange', callback?: (colors: Array\, wallpaperType: WallpaperType) => void): void; | Added| +| ohos.wallpaper | wallpaper | function on(type: 'colorChange', callback: (colors: Array\, wallpaperType: WallpaperType) => void): void; | Added| +| ohos.wallpaper | wallpaper | function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback\): void;
function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise\; | Added| +| ohos.wallpaper | wallpaper | function reset(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
function reset(wallpaperType: WallpaperType): Promise\; | Added| +| ohos.wallpaper | wallpaper | function isOperationAllowed(callback: AsyncCallback\): void;
function isOperationAllowed(): Promise\; | Added| +| ohos.wallpaper | wallpaper | function isChangePermitted(callback: AsyncCallback\): void;
function isChangePermitted(): Promise\; | Added| +| ohos.wallpaper | wallpaper | function getMinWidth(callback: AsyncCallback\): void;
function getMinWidth(): Promise\; | Added| +| ohos.wallpaper | wallpaper | function getMinHeight(callback: AsyncCallback\): void;
function getMinHeight(): Promise\; | Added| +| ohos.wallpaper | wallpaper | function getFile(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
function getFile(wallpaperType: WallpaperType): Promise\; | Added| +| ohos.wallpaper | wallpaper | function getId(wallpaperType: WallpaperType, callback: AsyncCallback\): void;
function getId(wallpaperType: WallpaperType): Promise\; | Added| +| ohos.wallpaper | wallpaper | function getColors(wallpaperType: WallpaperType, callback: AsyncCallback\>): void;
function getColors(wallpaperType: WallpaperType): Promise\>; | Added| | ohos.wallpaper | WallpaperType | WALLPAPER_LOCKSCREEN | Added| | ohos.wallpaper | WallpaperType | WALLPAPER_SYSTEM | Added| -| ohos.systemTime | systemTime | function getTimezone(callback: AsyncCallback): void;
function getTimezone(): Promise; | Added| -| ohos.systemTime | systemTime | function getDate(callback: AsyncCallback): void;
function getDate(): Promise; | Added| -| ohos.systemTime | systemTime | function getRealTime(isNano?: boolean, callback: AsyncCallback): void;
function getRealTime(isNano?: boolean): Promise; | Added| -| ohos.systemTime | systemTime | function getRealActiveTime(isNano?: boolean, callback: AsyncCallback): void;
function getRealActiveTime(isNano?: boolean): Promise; | Added| -| ohos.systemTime | systemTime | function getCurrentTime(isNano?: boolean, callback: AsyncCallback): void;
function getCurrentTime(isNano?: boolean): Promise; | Added| -| ohos.screenLock | screenLock | function unlockScreen(callback: AsyncCallback): void;
function unlockScreen():Promise; | Added| -| ohos.screenLock | screenLock | function isSecureMode(callback: AsyncCallback): void;
function isSecureMode(): Promise; | Added| -| ohos.screenLock | screenLock | function isScreenLocked(callback: AsyncCallback): void;
function isScreenLocked(): Promise; | Added| -| ohos.request | UploadTask | remove(callback: AsyncCallback): void;
remove(): Promise; | Added| +| ohos.systemTime | systemTime | function getTimezone(callback: AsyncCallback\): void;
function getTimezone(): Promise\; | Added| +| ohos.systemTime | systemTime | function getDate(callback: AsyncCallback\): void;
function getDate(): Promise\; | Added| +| ohos.systemTime | systemTime | function getRealTime(isNano?: boolean, callback: AsyncCallback\): void;
function getRealTime(isNano?: boolean): Promise\; | Added| +| ohos.systemTime | systemTime | function getRealActiveTime(isNano?: boolean, callback: AsyncCallback\): void;
function getRealActiveTime(isNano?: boolean): Promise\; | Added| +| ohos.systemTime | systemTime | function getCurrentTime(isNano?: boolean, callback: AsyncCallback\): void;
function getCurrentTime(isNano?: boolean): Promise\; | Added| +| ohos.screenLock | screenLock | function unlockScreen(callback: AsyncCallback\): void;
function unlockScreen():Promise\; | Added| +| ohos.screenLock | screenLock | function isSecureMode(callback: AsyncCallback\): void;
function isSecureMode(): Promise\; | Added| +| ohos.screenLock | screenLock | function isScreenLocked(callback: AsyncCallback\): void;
function isScreenLocked(): Promise\; | Added| +| ohos.request | UploadTask | remove(callback: AsyncCallback\): void;
remove(): Promise\; | Added| | ohos.request | UploadTask | off(type: 'headerReceive', callback?: (header: object) => void): void; | Added| | ohos.request | UploadTask | on(type: 'headerReceive', callback: (header: object) => void): void; | Added| | ohos.request | UploadTask | off(type: 'progress', callback?: (uploadedSize: number, totalSize: number) => void): void; | Added| | ohos.request | UploadTask | on(type: 'progress', callback: (uploadedSize: number, totalSize: number) => void): void; | Added| -| ohos.request | UploadConfig | data: Array; | Added| -| ohos.request | UploadConfig | files: Array; | Added| +| ohos.request | UploadConfig | data: Array\; | Added| +| ohos.request | UploadConfig | files: Array\; | Added| | ohos.request | UploadConfig | method: string; | Added| | ohos.request | UploadConfig | header: Object; | Added| | ohos.request | UploadConfig | url: string; | Added| @@ -47,11 +47,11 @@ The table below lists the APIs changes of the Misc services subsystem in OpenHar | ohos.request | File | uri: string; | Added| | ohos.request | File | name: string; | Added| | ohos.request | File | filename: string; | Added| -| ohos.request | DownloadTask | queryMimeType(callback: AsyncCallback): void;
queryMimeType(): Promise; | Added| -| ohos.request | DownloadTask | query(callback: AsyncCallback): void;
query(): Promise; | Added| -| ohos.request | DownloadTask | resume(callback: AsyncCallback): void;
resume(): Promise; | Added| -| ohos.request | DownloadTask | pause(callback: AsyncCallback): void;
pause(): Promise; | Added| -| ohos.request | DownloadTask | remove(callback: AsyncCallback): void;
remove(): Promise; | Added| +| ohos.request | DownloadTask | queryMimeType(callback: AsyncCallback\): void;
queryMimeType(): Promise\; | Added| +| ohos.request | DownloadTask | query(callback: AsyncCallback\): void;
query(): Promise\; | Added| +| ohos.request | DownloadTask | resume(callback: AsyncCallback\): void;
resume(): Promise\; | Added| +| ohos.request | DownloadTask | pause(callback: AsyncCallback\): void;
pause(): Promise\; | Added| +| ohos.request | DownloadTask | remove(callback: AsyncCallback\): void;
remove(): Promise\; | Added| | ohos.request | DownloadTask | off(type: 'fail', callback?: (err: number) => void): void; | Added| | ohos.request | DownloadTask | on(type: 'fail', callback: (err: number) => void): void; | Added| | ohos.request | DownloadTask | off(type: 'complete' \| 'pause' \| 'remove', callback?: () => void): void; | Added| @@ -81,8 +81,8 @@ The table below lists the APIs changes of the Misc services subsystem in OpenHar | ohos.request | DownloadConfig | enableMetered?: boolean; | Added| | ohos.request | DownloadConfig | header?: Object; | Added| | ohos.request | DownloadConfig | url: string; | Added| -| ohos.request | request | function upload(config: UploadConfig, callback: AsyncCallback): void;
function upload(config: UploadConfig): Promise; | Added| -| ohos.request | request | function download(config: DownloadConfig, callback: AsyncCallback): void;
function download(config: DownloadConfig): Promise; | Added| +| ohos.request | request | function upload(config: UploadConfig, callback: AsyncCallback\): void;
function upload(config: UploadConfig): Promise\; | Added| +| ohos.request | request | function download(config: DownloadConfig, callback: AsyncCallback\): void;
function download(config: DownloadConfig): Promise\; | Added| | ohos.request | request | const SESSION_SUCCESSFUL: number; | Added| | ohos.request | request | const SESSION_RUNNING: number; | Added| | ohos.request | request | const SESSION_PENDING: number; | Added| @@ -103,10 +103,10 @@ The table below lists the APIs changes of the Misc services subsystem in OpenHar | ohos.request | request | const ERROR_CANNOT_RESUME: number; | Added| | ohos.request | request | const NETWORK_WIFI: number; | Added| | ohos.request | request | const NETWORK_MOBILE: number; | Added| -| ohos.pasteboard | SystemPasteboard | setPasteData(data: PasteData, callback: AsyncCallback): void;
setPasteData(data: PasteData): Promise; | Added| -| ohos.pasteboard | SystemPasteboard | hasPasteData(callback: AsyncCallback): void;
hasPasteData(): Promise; | Added| -| ohos.pasteboard | SystemPasteboard | getPasteData(callback: AsyncCallback): void;
getPasteData(): Promise; | Added| -| ohos.pasteboard | SystemPasteboard | clear(callback: AsyncCallback): void;
clear(): Promise; | Added| +| ohos.pasteboard | SystemPasteboard | setPasteData(data: PasteData, callback: AsyncCallback\): void;
setPasteData(data: PasteData): Promise\; | Added| +| ohos.pasteboard | SystemPasteboard | hasPasteData(callback: AsyncCallback\): void;
hasPasteData(): Promise\; | Added| +| ohos.pasteboard | SystemPasteboard | getPasteData(callback: AsyncCallback\): void;
getPasteData(): Promise\; | Added| +| ohos.pasteboard | SystemPasteboard | clear(callback: AsyncCallback\): void;
clear(): Promise\; | Added| | ohos.pasteboard | SystemPasteboard | off(type: 'update', callback?: () => void): void; | Added| | ohos.pasteboard | SystemPasteboard | on(type: 'update', callback: () => void): void; | Added| | ohos.pasteboard | PasteData | replaceRecordAt(index: number, record: PasteDataRecord): boolean; | Added| @@ -121,13 +121,13 @@ The table below lists the APIs changes of the Misc services subsystem in OpenHar | ohos.pasteboard | PasteData | getPrimaryMimeType(): string; | Added| | ohos.pasteboard | PasteData | getPrimaryWant(): Want; | Added| | ohos.pasteboard | PasteData | getPrimaryHtml(): string; | Added| -| ohos.pasteboard | PasteData | getMimeTypes(): Array; | Added| +| ohos.pasteboard | PasteData | getMimeTypes(): Array\; | Added| | ohos.pasteboard | PasteData | addUriRecord(uri: string): void; | Added| | ohos.pasteboard | PasteData | addTextRecord(text: string): void; | Added| | ohos.pasteboard | PasteData | addRecord(record: PasteDataRecord): void; | Added| | ohos.pasteboard | PasteData | addWantRecord(want: Want): void; | Added| | ohos.pasteboard | PasteData | addHtmlRecord(htmlText: string): void; | Added| -| ohos.pasteboard | PasteDataRecord | convertToText(callback: AsyncCallback): void;
convertToText(): Promise; | Added| +| ohos.pasteboard | PasteDataRecord | convertToText(callback: AsyncCallback\): void;
convertToText(): Promise\; | Added| | ohos.pasteboard | PasteDataRecord | uri: string; | Added| | ohos.pasteboard | PasteDataRecord | plainText: string; | Added| | ohos.pasteboard | PasteDataRecord | mimeType: string; | Added| @@ -136,7 +136,7 @@ The table below lists the APIs changes of the Misc services subsystem in OpenHar | ohos.pasteboard | PasteDataProperty | localOnly: boolean; | Added| | ohos.pasteboard | PasteDataProperty | readonly timestamp: number; | Added| | ohos.pasteboard | PasteDataProperty | tag: string; | Added| -| ohos.pasteboard | PasteDataProperty | readonly mimeTypes: Array; | Added| +| ohos.pasteboard | PasteDataProperty | readonly mimeTypes: Array\; | Added| | ohos.pasteboard | PasteDataProperty | additions: { [key: string]: object } | Added| | ohos.pasteboard | pasteboard | function getSystemPasteboard(): SystemPasteboard; | Added| | ohos.pasteboard | pasteboard | function createUriRecord(uri: string): PasteDataRecord; | Added| @@ -166,20 +166,20 @@ The table below lists the APIs changes of the Misc services subsystem in OpenHar | ohos.inputmethodengine | KeyboardDelegate | off(type: 'keyDown'\|'keyUp', callback?: (event: KeyEvent) => boolean): void; | Added| | ohos.inputmethodengine | KeyboardDelegate | on(type: 'keyDown'\|'keyUp', callback: (event: KeyEvent) => boolean): void; | Added| | ohos.inputmethodengine | KeyboardDelegate | on(type: 'keyDown'\|'keyUp', callback: (event: KeyEvent) => boolean): void; | Added| -| ohos.inputmethodengine | TextInputClient | getEditorAttribute(callback: AsyncCallback): void;
getEditorAttribute(): Promise; | Added| -| ohos.inputmethodengine | TextInputClient | getBackward(length: number, callback: AsyncCallback): void;
getBackward(length: number): Promise; | Added| -| ohos.inputmethodengine | TextInputClient | getForward(length: number, callback: AsyncCallback): void;
getForward(length: number): Promise; | Added| -| ohos.inputmethodengine | TextInputClient | insertText(text: string, callback: AsyncCallback): void;
insertText(text: string): Promise; | Added| -| ohos.inputmethodengine | TextInputClient | deleteBackward(length: number, callback: AsyncCallback): void;
deleteBackward(length: number): Promise; | Added| -| ohos.inputmethodengine | TextInputClient | deleteForward(length: number, callback: AsyncCallback): void;
deleteForward(length: number): Promise; | Added| -| ohos.inputmethodengine | TextInputClient | sendKeyFunction(action: number, callback: AsyncCallback): void;
sendKeyFunction(action: number): Promise; | Added| +| ohos.inputmethodengine | TextInputClient | getEditorAttribute(callback: AsyncCallback\): void;
getEditorAttribute(): Promise\; | Added| +| ohos.inputmethodengine | TextInputClient | getBackward(length: number, callback: AsyncCallback\): void;
getBackward(length: number): Promise\; | Added| +| ohos.inputmethodengine | TextInputClient | getForward(length: number, callback: AsyncCallback\): void;
getForward(length: number): Promise\; | Added| +| ohos.inputmethodengine | TextInputClient | insertText(text: string, callback: AsyncCallback\): void;
insertText(text: string): Promise\; | Added| +| ohos.inputmethodengine | TextInputClient | deleteBackward(length: number, callback: AsyncCallback\): void;
deleteBackward(length: number): Promise\; | Added| +| ohos.inputmethodengine | TextInputClient | deleteForward(length: number, callback: AsyncCallback\): void;
deleteForward(length: number): Promise\; | Added| +| ohos.inputmethodengine | TextInputClient | sendKeyFunction(action: number, callback: AsyncCallback\): void;
sendKeyFunction(action: number): Promise\; | Added| | ohos.inputmethodengine | InputMethodEngine | off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void; | Added| | ohos.inputmethodengine | InputMethodEngine | off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void; | Added| | ohos.inputmethodengine | InputMethodEngine | on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void; | Added| | ohos.inputmethodengine | InputMethodEngine | on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void; | Added| | ohos.inputmethodengine | InputMethodEngine | off(type: 'inputStart', callback?: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void; | Added| | ohos.inputmethodengine | InputMethodEngine | on(type: 'inputStart', callback: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void; | Added| -| ohos.inputmethodengine | KeyboardController | hideKeyboard(callback: AsyncCallback): void;
hideKeyboard(): Promise; | Added| +| ohos.inputmethodengine | KeyboardController | hideKeyboard(callback: AsyncCallback\): void;
hideKeyboard(): Promise\; | Added| | ohos.inputmethodengine | inputMethodEngine | function createKeyboardDelegate(): KeyboardDelegate; | Added| | ohos.inputmethodengine | inputMethodEngine | function getInputMethodEngine(): InputMethodEngine; | Added| | ohos.inputmethodengine | inputMethodEngine | const OPTION_NO_FULLSCREEN: number; | Added| @@ -210,9 +210,9 @@ The table below lists the APIs changes of the Misc services subsystem in OpenHar | ohos.inputmethodengine | inputMethodEngine | const ENTER_KEY_TYPE_UNSPECIFIED: number; | Added| | ohos.inputmethod | InputMethodProperty | readonly methodId: string; | Added| | ohos.inputmethod | InputMethodProperty | readonly packageName: string; | Added| -| ohos.inputmethod | InputMethodController | stopInput(callback: AsyncCallback): void;
stopInput(): Promise; | Added| -| ohos.inputmethod | InputMethodSetting | displayOptionalInputMethod(callback: AsyncCallback): void;
displayOptionalInputMethod(): Promise; | Added| -| ohos.inputmethod | InputMethodSetting | listInputMethod(callback: AsyncCallback>): void;
listInputMethod(): Promise>; | Added| +| ohos.inputmethod | InputMethodController | stopInput(callback: AsyncCallback\): void;
stopInput(): Promise\; | Added| +| ohos.inputmethod | InputMethodSetting | displayOptionalInputMethod(callback: AsyncCallback\): void;
displayOptionalInputMethod(): Promise\; | Added| +| ohos.inputmethod | InputMethodSetting | listInputMethod(callback: AsyncCallback\>): void;
listInputMethod(): Promise\>; | Added| | ohos.inputmethod | inputMethod | function getInputMethodController(): InputMethodController; | Added| | ohos.inputmethod | inputMethod | function getInputMethodSetting(): InputMethodSetting; | Added| | ohos.inputmethod | inputMethod | const MAX_TYPE_NUM: number | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md index e514eabe85823618d784f96b9635debf050a8afb..557fdff7c504d5f627f6e580705bee33174d5eb3 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md @@ -6,10 +6,10 @@ The table below lists the APIs changes of the multimodal input subsystem in Open | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| -| ohos.multimodalInput.inputDevice | inputDevice | function getDevice(deviceId: number, callback: AsyncCallback): void;
function getDevice(deviceId: number): Promise; | Added| -| ohos.multimodalInput.inputDevice | inputDevice | function getDeviceIds(callback: AsyncCallback>): void;
function getDeviceIds(): Promise>; | Added| -| ohos.multimodalInput.inputDevice | InputDeviceData | axisRanges : Array; | Added| -| ohos.multimodalInput.inputDevice | InputDeviceData | sources : Array; | Added| +| ohos.multimodalInput.inputDevice | inputDevice | function getDevice(deviceId: number, callback: AsyncCallback\): void;
function getDevice(deviceId: number): Promise\; | Added| +| ohos.multimodalInput.inputDevice | inputDevice | function getDeviceIds(callback: AsyncCallback>): void;
function getDeviceIds(): Promise>; | Added| +| ohos.multimodalInput.inputDevice | InputDeviceData | axisRanges : Array\; | Added| +| ohos.multimodalInput.inputDevice | InputDeviceData | sources : Array\; | Added| | ohos.multimodalInput.inputDevice | InputDeviceData | name: string; | Added| | ohos.multimodalInput.inputDevice | InputDeviceData | id: number; | Added| | ohos.multimodalInput.inputDevice | AxisRange | min: number; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md index f904dc8cefc7d2a7c3e0931a740ea4ca5ca1417b..e4b792bb2acb37947074fbf33659fbf4f5287360 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md @@ -8,36 +8,36 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon |---|---|---|---| | ohos.multimedia.mediaLibrary | Size | height: number; | Added| | ohos.multimedia.mediaLibrary | Size | width: number; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | release(callback: AsyncCallback): void;
release(): Promise; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | startMediaSelect(option: MediaSelectOption, callback: AsyncCallback>): void;
startMediaSelect(option: MediaSelectOption): Promise>; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | startImagePreview(images: Array, index: number, callback: AsyncCallback): void;
startImagePreview(images: Array, callback: AsyncCallback): void;
startImagePreview(images: Array, index?: number): Promise; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | storeMediaAsset(option: MediaAssetOption, callback: AsyncCallback): void;
storeMediaAsset(option: MediaAssetOption): Promise; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | getAlbums(options: MediaFetchOptions, callback: AsyncCallback>): void;
getAlbums(options: MediaFetchOptions): Promise>; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback): void;
createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | getFileAssets(options: MediaFetchOptions, callback: AsyncCallback): void;
getFileAssets(options: MediaFetchOptions): Promise; | Added| -| ohos.multimedia.mediaLibrary | MediaLibrary | getPublicDirectory(type: DirectoryType, callback: AsyncCallback): void;
getPublicDirectory(type: DirectoryType): Promise; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | release(callback: AsyncCallback\): void;
release(): Promise\; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | startMediaSelect(option: MediaSelectOption, callback: AsyncCallback\>): void;
startMediaSelect(option: MediaSelectOption): Promise\>; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | startImagePreview(images: Array\, index: number, callback: AsyncCallback\): void;
startImagePreview(images: Array\, callback: AsyncCallback\): void;
startImagePreview(images: Array\, index?: number): Promise\; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | storeMediaAsset(option: MediaAssetOption, callback: AsyncCallback\): void;
storeMediaAsset(option: MediaAssetOption): Promise\; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | getAlbums(options: MediaFetchOptions, callback: AsyncCallback\>): void;
getAlbums(options: MediaFetchOptions): Promise\>; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback\): void;
createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise\; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\): void; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
getFileAssets(options: MediaFetchOptions): Promise\; | Added| +| ohos.multimedia.mediaLibrary | MediaLibrary | getPublicDirectory(type: DirectoryType, callback: AsyncCallback\): void;
getPublicDirectory(type: DirectoryType): Promise\; | Added| | ohos.multimedia.mediaLibrary | DirectoryType | DIR_DOWNLOAD | Added| | ohos.multimedia.mediaLibrary | DirectoryType | DIR_DOCUMENTS | Added| | ohos.multimedia.mediaLibrary | DirectoryType | DIR_AUDIO | Added| | ohos.multimedia.mediaLibrary | DirectoryType | DIR_IMAGE | Added| | ohos.multimedia.mediaLibrary | DirectoryType | DIR_VIDEO | Added| | ohos.multimedia.mediaLibrary | DirectoryType | DIR_CAMERA = 0 | Added| -| ohos.multimedia.mediaLibrary | Album | getFileAssets(callback: AsyncCallback): void;
getFileAssets(options: MediaFetchOptions, callback: AsyncCallback): void;
getFileAssets(options?: MediaFetchOptions): Promise; | Added| -| ohos.multimedia.mediaLibrary | Album | commitModify(callback: AsyncCallback): void;
commitModify(): Promise; | Added| +| ohos.multimedia.mediaLibrary | Album | getFileAssets(callback: AsyncCallback\): void;
getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\): void;
getFileAssets(options?: MediaFetchOptions): Promise\; | Added| +| ohos.multimedia.mediaLibrary | Album | commitModify(callback: AsyncCallback\): void;
commitModify(): Promise\; | Added| | ohos.multimedia.mediaLibrary | Album | readonly coverUri: string; | Added| | ohos.multimedia.mediaLibrary | Album | readonly relativePath: string; | Added| | ohos.multimedia.mediaLibrary | Album | readonly count: number; | Added| @@ -45,11 +45,11 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.mediaLibrary | Album | readonly albumUri: string; | Added| | ohos.multimedia.mediaLibrary | Album | albumName: string; | Added| | ohos.multimedia.mediaLibrary | Album | readonly albumId: number; | Added| -| ohos.multimedia.mediaLibrary | FetchFileResult | getAllObject(callback: AsyncCallback>): void;
getAllObject(): Promise>; | Added| -| ohos.multimedia.mediaLibrary | FetchFileResult | getPositionObject(index: number, callback: AsyncCallback): void;
getPositionObject(index: number): Promise; | Added| -| ohos.multimedia.mediaLibrary | FetchFileResult | getLastObject(callback: AsyncCallback): void;
getLastObject(): Promise; | Added| -| ohos.multimedia.mediaLibrary | FetchFileResult | getNextObject(callback: AsyncCallback): void;
getNextObject(): Promise; | Added| -| ohos.multimedia.mediaLibrary | FetchFileResult | getFirstObject(callback: AsyncCallback): void;
getFirstObject(): Promise; | Added| +| ohos.multimedia.mediaLibrary | FetchFileResult | getAllObject(callback: AsyncCallback\>): void;
getAllObject(): Promise\>; | Added| +| ohos.multimedia.mediaLibrary | FetchFileResult | getPositionObject(index: number, callback: AsyncCallback\): void;
getPositionObject(index: number): Promise\; | Added| +| ohos.multimedia.mediaLibrary | FetchFileResult | getLastObject(callback: AsyncCallback\): void;
getLastObject(): Promise\; | Added| +| ohos.multimedia.mediaLibrary | FetchFileResult | getNextObject(callback: AsyncCallback\): void;
getNextObject(): Promise\; | Added| +| ohos.multimedia.mediaLibrary | FetchFileResult | getFirstObject(callback: AsyncCallback\): void;
getFirstObject(): Promise\; | Added| | ohos.multimedia.mediaLibrary | FetchFileResult | close(): void; | Added| | ohos.multimedia.mediaLibrary | FetchFileResult | isAfterLast(): boolean; | Added| | ohos.multimedia.mediaLibrary | FetchFileResult | getCount(): number; | Added| @@ -57,7 +57,7 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.mediaLibrary | MediaFetchOptions | networkId?: string; | Added| | ohos.multimedia.mediaLibrary | MediaFetchOptions | uri?: string; | Added| | ohos.multimedia.mediaLibrary | MediaFetchOptions | order?: string; | Added| -| ohos.multimedia.mediaLibrary | MediaFetchOptions | selectionArgs: Array; | Added| +| ohos.multimedia.mediaLibrary | MediaFetchOptions | selectionArgs: Array\; | Added| | ohos.multimedia.mediaLibrary | MediaFetchOptions | selections: string; | Added| | ohos.multimedia.mediaLibrary | FileKey | ALBUM_NAME = "bucket_display_name" | Added| | ohos.multimedia.mediaLibrary | FileKey | ALBUM_ID = "bucket_id" | Added| @@ -78,15 +78,15 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.mediaLibrary | FileKey | DISPLAY_NAME = "display_name" | Added| | ohos.multimedia.mediaLibrary | FileKey | RELATIVE_PATH = "relative_path" | Added| | ohos.multimedia.mediaLibrary | FileKey | ID = "file_id" | Added| -| ohos.multimedia.mediaLibrary | FileAsset | isTrash(callback: AsyncCallback): void;
isTrash():Promise; | Added| -| ohos.multimedia.mediaLibrary | FileAsset | trash(isTrash: boolean, callback: AsyncCallback): void;
trash(isTrash: boolean): Promise; | Added| -| ohos.multimedia.mediaLibrary | FileAsset | isFavorite(callback: AsyncCallback): void;
isFavorite():Promise; | Added| -| ohos.multimedia.mediaLibrary | FileAsset | favorite(isFavorite: boolean, callback: AsyncCallback): void;
favorite(isFavorite: boolean): Promise; | Added| -| ohos.multimedia.mediaLibrary | FileAsset | getThumbnail(callback: AsyncCallback): void;
getThumbnail(size: Size, callback: AsyncCallback): void;
getThumbnail(size?: Size): Promise; | Added| -| ohos.multimedia.mediaLibrary | FileAsset | close(fd: number, callback: AsyncCallback): void;
close(fd: number): Promise; | Added| -| ohos.multimedia.mediaLibrary | FileAsset | open(mode: string, callback: AsyncCallback): void;
open(mode: string): Promise; | Added| -| ohos.multimedia.mediaLibrary | FileAsset | commitModify(callback: AsyncCallback): void;
commitModify(): Promise; | Added| -| ohos.multimedia.mediaLibrary | FileAsset | isDirectory(callback: AsyncCallback): void;
isDirectory():Promise; | Added| +| ohos.multimedia.mediaLibrary | FileAsset | isTrash(callback: AsyncCallback\): void;
isTrash():Promise\; | Added| +| ohos.multimedia.mediaLibrary | FileAsset | trash(isTrash: boolean, callback: AsyncCallback\): void;
trash(isTrash: boolean): Promise\; | Added| +| ohos.multimedia.mediaLibrary | FileAsset | isFavorite(callback: AsyncCallback\): void;
isFavorite():Promise\; | Added| +| ohos.multimedia.mediaLibrary | FileAsset | favorite(isFavorite: boolean, callback: AsyncCallback\): void;
favorite(isFavorite: boolean): Promise\; | Added| +| ohos.multimedia.mediaLibrary | FileAsset | getThumbnail(callback: AsyncCallback\): void;
getThumbnail(size: Size, callback: AsyncCallback\): void;
getThumbnail(size?: Size): Promise\; | Added| +| ohos.multimedia.mediaLibrary | FileAsset | close(fd: number, callback: AsyncCallback\): void;
close(fd: number): Promise\; | Added| +| ohos.multimedia.mediaLibrary | FileAsset | open(mode: string, callback: AsyncCallback\): void;
open(mode: string): Promise\; | Added| +| ohos.multimedia.mediaLibrary | FileAsset | commitModify(callback: AsyncCallback\): void;
commitModify(): Promise\; | Added| +| ohos.multimedia.mediaLibrary | FileAsset | isDirectory(callback: AsyncCallback\): void;
isDirectory():Promise\; | Added| | ohos.multimedia.mediaLibrary | FileAsset | readonly albumName: string; | Added| | ohos.multimedia.mediaLibrary | FileAsset | readonly albumUri: string; | Added| | ohos.multimedia.mediaLibrary | FileAsset | readonly albumId: number; | Added| @@ -117,7 +117,7 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.mediaLibrary | MediaType | VIDEO | Added| | ohos.multimedia.mediaLibrary | MediaType | IMAGE | Added| | ohos.multimedia.mediaLibrary | MediaType | FILE = 0 | Added| -| ohos.multimedia.mediaLibrary | mediaLibrary | function getMediaLibrary(): MediaLibrary;
function getMediaLibrary(context: Context): MediaLibrary; | Added| +| ohos.multimedia.mediaLibrary | mediaLibrary | getMediaLibrary(): MediaLibrary;
getMediaLibrary(context: Context): MediaLibrary; | Added| | ohos.multimedia.media | CodecMimeType | AUDIO_FLAC = 'audio/flac' | Added| | ohos.multimedia.media | CodecMimeType | AUDIO_VORBIS = 'audio/vorbis' | Added| | ohos.multimedia.media | CodecMimeType | AUDIO_AAC = 'audio/mp4a-latm' | Added| @@ -145,10 +145,10 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.media | ContainerFormatType | CFT_MPEG_4 = "mp4" | Added| | ohos.multimedia.media | VideoPlayer | on(type: 'error', callback: ErrorCallback): void; | Added| | ohos.multimedia.media | VideoPlayer | on(type: 'videoSizeChanged', callback: (width: number, height: number) => void): void; | Added| -| ohos.multimedia.media | VideoPlayer | on(type: 'startRenderFrame', callback: Callback): void; | Added| +| ohos.multimedia.media | VideoPlayer | on(type: 'startRenderFrame', callback: Callback\): void; | Added| | ohos.multimedia.media | VideoPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void; | Added| -| ohos.multimedia.media | VideoPlayer | on(type: 'playbackCompleted', callback: Callback): void; | Added| -| ohos.multimedia.media | VideoPlayer | setSpeed(speed:number, callback: AsyncCallback): void;
setSpeed(speed:number): Promise; | Added| +| ohos.multimedia.media | VideoPlayer | on(type: 'playbackCompleted', callback: Callback\): void; | Added| +| ohos.multimedia.media | VideoPlayer | setSpeed(speed:number, callback: AsyncCallback\): void;
setSpeed(speed:number): Promise\; | Added| | ohos.multimedia.media | VideoPlayer | readonly height: number; | Added| | ohos.multimedia.media | VideoPlayer | readonly width: number; | Added| | ohos.multimedia.media | VideoPlayer | readonly state: VideoPlayState; | Added| @@ -156,16 +156,16 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.media | VideoPlayer | readonly currentTime: number; | Added| | ohos.multimedia.media | VideoPlayer | loop: boolean; | Added| | ohos.multimedia.media | VideoPlayer | url: string; | Added| -| ohos.multimedia.media | VideoPlayer | getTrackDescription(callback: AsyncCallback>): void;
getTrackDescription() : Promise>; | Added| -| ohos.multimedia.media | VideoPlayer | release(callback: AsyncCallback): void;
release(): Promise; | Added| -| ohos.multimedia.media | VideoPlayer | setVolume(vol: number, callback: AsyncCallback): void;
setVolume(vol: number): Promise; | Added| -| ohos.multimedia.media | VideoPlayer | seek(timeMs: number, callback: AsyncCallback): void;
seek(timeMs: number, mode:SeekMode, callback: AsyncCallback): void;
seek(timeMs: number, mode?:SeekMode): Promise; | Added| -| ohos.multimedia.media | VideoPlayer | reset(callback: AsyncCallback): void;
reset(): Promise; | Added| -| ohos.multimedia.media | VideoPlayer | stop(callback: AsyncCallback): void;
stop(): Promise; | Added| -| ohos.multimedia.media | VideoPlayer | pause(callback: AsyncCallback): void;
pause(): Promise; | Added| -| ohos.multimedia.media | VideoPlayer | play(callback: AsyncCallback): void;
play(): Promise; | Added| -| ohos.multimedia.media | VideoPlayer | prepare(callback: AsyncCallback): void;
prepare(): Promise; | Added| -| ohos.multimedia.media | VideoPlayer | setDisplaySurface(surfaceId: string, callback: AsyncCallback): void;
setDisplaySurface(surfaceId: string): Promise; | Added| +| ohos.multimedia.media | VideoPlayer | getTrackDescription(callback: AsyncCallback\>): void;
getTrackDescription() : Promise\>; | Added| +| ohos.multimedia.media | VideoPlayer | release(callback: AsyncCallback\): void;
release(): Promise\; | Added| +| ohos.multimedia.media | VideoPlayer | setVolume(vol: number, callback: AsyncCallback\): void;
setVolume(vol: number): Promise\; | Added| +| ohos.multimedia.media | VideoPlayer | seek(timeMs: number, callback: AsyncCallback\): void;
seek(timeMs: number, mode:SeekMode, callback: AsyncCallback\): void;
seek(timeMs: number, mode?:SeekMode): Promise\; | Added| +| ohos.multimedia.media | VideoPlayer | reset(callback: AsyncCallback\): void;
reset(): Promise\; | Added| +| ohos.multimedia.media | VideoPlayer | stop(callback: AsyncCallback\): void;
stop(): Promise\; | Added| +| ohos.multimedia.media | VideoPlayer | pause(callback: AsyncCallback\): void;
pause(): Promise\; | Added| +| ohos.multimedia.media | VideoPlayer | play(callback: AsyncCallback\): void;
play(): Promise\; | Added| +| ohos.multimedia.media | VideoPlayer | prepare(callback: AsyncCallback\): void;
prepare(): Promise\; | Added| +| ohos.multimedia.media | VideoPlayer | setDisplaySurface(surfaceId: string, callback: AsyncCallback\): void;
setDisplaySurface(surfaceId: string): Promise\; | Added| | ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_2_00_X = 4 | Added| | ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_75_X = 3 | Added| | ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_25_X = 2 | Added| @@ -209,7 +209,7 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.media | AudioEncoder | DEFAULT = 0 | Added| | ohos.multimedia.media | AudioPlayer | on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void; | Added| | ohos.multimedia.media | AudioPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void; | Added| -| ohos.multimedia.media | AudioPlayer | getTrackDescription(callback: AsyncCallback>): void;
getTrackDescription() : Promise>; | Added| +| ohos.multimedia.media | AudioPlayer | getTrackDescription(callback: AsyncCallback\>): void;
getTrackDescription() : Promise\>; | Added| | ohos.multimedia.media | AudioPlayer | reset(): void; | Added| | ohos.multimedia.media | BufferingInfoType | CACHED_DURATION = 4 | Added| | ohos.multimedia.media | BufferingInfoType | BUFFERING_PERCENT = 3 | Added| @@ -225,28 +225,28 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.media | MediaErrorCode | MSERR_OPERATION_NOT_PERMIT = 2 | Added| | ohos.multimedia.media | MediaErrorCode | MSERR_NO_MEMORY = 1 | Added| | ohos.multimedia.media | MediaErrorCode | MSERR_OK = 0 | Added| -| ohos.multimedia.media | media | function createVideoPlayer(callback: AsyncCallback): void;
function createVideoPlayer() : Promise; | Added| -| ohos.multimedia.media | media | function createAudioRecorder(): AudioRecorder; | Added| -| ohos.multimedia.image | ImagePacker | readonly supportedFormats: Array; | Added| -| ohos.multimedia.image | ImagePacker | release(callback: AsyncCallback): void;
release(): Promise; | Added| -| ohos.multimedia.image | ImagePacker | packing(source: ImageSource, option: PackingOption, callback: AsyncCallback): void;
packing(source: ImageSource, option: PackingOption): Promise;
packing(source: PixelMap, option: PackingOption, callback: AsyncCallback): void;
packing(source: PixelMap, option: PackingOption): Promise; | Added| -| ohos.multimedia.image | ImageSource | readonly supportedFormats: Array; | Added| -| ohos.multimedia.image | ImageSource | release(callback: AsyncCallback): void;
release(): Promise; | Added| -| ohos.multimedia.image | ImageSource | getImageProperty(key:string, options?: GetImagePropertyOptions): Promise;
getImageProperty(key:string, callback: AsyncCallback): void;
getImageProperty(key:string, options: GetImagePropertyOptions, callback: AsyncCallback): void; | Added| -| ohos.multimedia.image | ImageSource | createPixelMap(options?: DecodingOptions): Promise;
createPixelMap(callback: AsyncCallback): void;
createPixelMap(options: DecodingOptions, callback: AsyncCallback): void; | Added| -| ohos.multimedia.image | ImageSource | getImageInfo(index: number, callback: AsyncCallback): void;
getImageInfo(callback: AsyncCallback): void;
getImageInfo(index?: number): Promise; | Added| -| ohos.multimedia.image | PixelMap | release(callback: AsyncCallback): void;
release(): Promise; | Added| +| ohos.multimedia.media | media | createVideoPlayer(callback: AsyncCallback\): void;
createVideoPlayer() : Promise\; | Added| +| ohos.multimedia.media | media | createAudioRecorder(): AudioRecorder; | Added| +| ohos.multimedia.image | ImagePacker | readonly supportedFormats: Array\; | Added| +| ohos.multimedia.image | ImagePacker | release(callback: AsyncCallback\): void;
release(): Promise\; | Added| +| ohos.multimedia.image | ImagePacker | packing(source: ImageSource, option: PackingOption, callback: AsyncCallback\): void;
packing(source: ImageSource, option: PackingOption): Promise\;
packing(source: PixelMap, option: PackingOption, callback: AsyncCallback\): void;
packing(source: PixelMap, option: PackingOption): Promise\; | Added| +| ohos.multimedia.image | ImageSource | readonly supportedFormats: Array\; | Added| +| ohos.multimedia.image | ImageSource | release(callback: AsyncCallback\): void;
release(): Promise\; | Added| +| ohos.multimedia.image | ImageSource | getImageProperty(key:string, options?: GetImagePropertyOptions): Promise\;
getImageProperty(key:string, callback: AsyncCallback\): void;
getImageProperty(key:string, options: GetImagePropertyOptions, callback: AsyncCallback\): void; | Added| +| ohos.multimedia.image | ImageSource | createPixelMap(options?: DecodingOptions): Promise\;
createPixelMap(callback: AsyncCallback\): void;
createPixelMap(options: DecodingOptions, callback: AsyncCallback\): void; | Added| +| ohos.multimedia.image | ImageSource | getImageInfo(index: number, callback: AsyncCallback\): void;
getImageInfo(callback: AsyncCallback\): void;
getImageInfo(index?: number): Promise\; | Added| +| ohos.multimedia.image | PixelMap | release(callback: AsyncCallback\): void;
release(): Promise\; | Added| | ohos.multimedia.image | PixelMap | getPixelBytesNumber(): number; | Added| | ohos.multimedia.image | PixelMap | getBytesNumberPerRow(): number; | Added| -| ohos.multimedia.image | PixelMap | getImageInfo(): Promise;
getImageInfo(callback: AsyncCallback): void; | Added| -| ohos.multimedia.image | PixelMap | writeBufferToPixels(src: ArrayBuffer): Promise;
writeBufferToPixels(src: ArrayBuffer, callback: AsyncCallback): void; | Added| -| ohos.multimedia.image | PixelMap | writePixels(area: PositionArea): Promise;
writePixels(area: PositionArea, callback: AsyncCallback): void; | Added| -| ohos.multimedia.image | PixelMap | readPixels(area: PositionArea): Promise;
readPixels(area: PositionArea, callback: AsyncCallback): void; | Added| -| ohos.multimedia.image | PixelMap | readPixelsToBuffer(dst: ArrayBuffer): Promise;
readPixelsToBuffer(dst: ArrayBuffer, callback: AsyncCallback): void; | Added| +| ohos.multimedia.image | PixelMap | getImageInfo(): Promise\;
getImageInfo(callback: AsyncCallback\): void; | Added| +| ohos.multimedia.image | PixelMap | writeBufferToPixels(src: ArrayBuffer): Promise\;
writeBufferToPixels(src: ArrayBuffer, callback: AsyncCallback\): void; | Added| +| ohos.multimedia.image | PixelMap | writePixels(area: PositionArea): Promise\;
writePixels(area: PositionArea, callback: AsyncCallback\): void; | Added| +| ohos.multimedia.image | PixelMap | readPixels(area: PositionArea): Promise\;
readPixels(area: PositionArea, callback: AsyncCallback\): void; | Added| +| ohos.multimedia.image | PixelMap | readPixelsToBuffer(dst: ArrayBuffer): Promise\;
readPixelsToBuffer(dst: ArrayBuffer, callback: AsyncCallback\): void; | Added| | ohos.multimedia.image | PixelMap | readonly isEditable: boolean; | Added| -| ohos.multimedia.image | image | function createImagePacker(): ImagePacker; | Added| -| ohos.multimedia.image | image | function createImageSource(uri: string): ImageSource;
function createImageSource(fd: number): ImageSource; | Added| -| ohos.multimedia.image | image | function createPixelMap(colors: ArrayBuffer, options: InitializationOptions, callback: AsyncCallback): void;
function createPixelMap(colors: ArrayBuffer, options: InitializationOptions): Promise; | Added| +| ohos.multimedia.image | image | createImagePacker(): ImagePacker; | Added| +| ohos.multimedia.image | image | createImageSource(uri: string): ImageSource;
createImageSource(fd: number): ImageSource; | Added| +| ohos.multimedia.image | image | createPixelMap(colors: ArrayBuffer, options: InitializationOptions, callback: AsyncCallback\): void;
createPixelMap(colors: ArrayBuffer, options: InitializationOptions): Promise\; | Added| | ohos.multimedia.image | InitializationOptions | editable?: boolean; | Added| | ohos.multimedia.image | InitializationOptions | pixelFormat?: PixelMapFormat; | Added| | ohos.multimedia.image | InitializationOptions | size: Size; | Added| @@ -282,19 +282,19 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.image | PixelMapFormat | RGBA_8888 = 3 | Added| | ohos.multimedia.image | PixelMapFormat | RGB_565 = 2 | Added| | ohos.multimedia.image | PixelMapFormat | UNKNOWN = 0 | Added| -| ohos.multimedia.audio | AudioCapturer | on(type: "stateChange", callback: Callback): void; | Added| +| ohos.multimedia.audio | AudioCapturer | on(type: "stateChange", callback: Callback\): void; | Added| | ohos.multimedia.audio | AudioCapturer | off(type: "periodReach"): void; | Added| | ohos.multimedia.audio | AudioCapturer | on(type: "periodReach", frame: number, callback: (position: number) => {}): void; | Added| | ohos.multimedia.audio | AudioCapturer | off(type: "markReach"): void; | Added| | ohos.multimedia.audio | AudioCapturer | on(type: "markReach", frame: number, callback: (position: number) => {}): void; | Added| -| ohos.multimedia.audio | AudioCapturer | getBufferSize(callback: AsyncCallback): void;
getBufferSize(): Promise; | Added| -| ohos.multimedia.audio | AudioCapturer | release(callback: AsyncCallback): void;
release(): Promise; | Added| -| ohos.multimedia.audio | AudioCapturer | stop(callback: AsyncCallback): void;
stop(): Promise; | Added| -| ohos.multimedia.audio | AudioCapturer | getAudioTime(callback: AsyncCallback): void;
getAudioTime(): Promise; | Added| -| ohos.multimedia.audio | AudioCapturer | read(size: number, isBlockingRead: boolean, callback: AsyncCallback): void;
read(size: number, isBlockingRead: boolean): Promise; | Added| -| ohos.multimedia.audio | AudioCapturer | start(callback: AsyncCallback): void;
start(): Promise; | Added| -| ohos.multimedia.audio | AudioCapturer | getStreamInfo(callback: AsyncCallback): void;
getStreamInfo(): Promise; | Added| -| ohos.multimedia.audio | AudioCapturer | getCapturerInfo(callback: AsyncCallback): void;
getCapturerInfo(): Promise; | Added| +| ohos.multimedia.audio | AudioCapturer | getBufferSize(callback: AsyncCallback\): void;
getBufferSize(): Promise\; | Added| +| ohos.multimedia.audio | AudioCapturer | release(callback: AsyncCallback\): void;
release(): Promise\; | Added| +| ohos.multimedia.audio | AudioCapturer | stop(callback: AsyncCallback\): void;
stop(): Promise\; | Added| +| ohos.multimedia.audio | AudioCapturer | getAudioTime(callback: AsyncCallback\): void;
getAudioTime(): Promise\; | Added| +| ohos.multimedia.audio | AudioCapturer | read(size: number, isBlockingRead: boolean, callback: AsyncCallback\): void;
read(size: number, isBlockingRead: boolean): Promise\; | Added| +| ohos.multimedia.audio | AudioCapturer | start(callback: AsyncCallback\): void;
start(): Promise\; | Added| +| ohos.multimedia.audio | AudioCapturer | getStreamInfo(callback: AsyncCallback\): void;
getStreamInfo(): Promise\; | Added| +| ohos.multimedia.audio | AudioCapturer | getCapturerInfo(callback: AsyncCallback\): void;
getCapturerInfo(): Promise\; | Added| | ohos.multimedia.audio | AudioCapturer | readonly state: AudioState; | Added| | ohos.multimedia.audio | AudioCapturerOptions | capturerInfo: AudioCapturerInfo; | Added| | ohos.multimedia.audio | AudioCapturerOptions | streamInfo: AudioStreamInfo; | Added| @@ -303,23 +303,23 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.audio | SourceType | SOURCE_TYPE_VOICE_COMMUNICATION = 7 | Added| | ohos.multimedia.audio | SourceType | SOURCE_TYPE_MIC = 0 | Added| | ohos.multimedia.audio | SourceType | SOURCE_TYPE_INVALID = -1 | Added| -| ohos.multimedia.audio | AudioRenderer | on(type: "stateChange", callback: Callback): void; | Added| +| ohos.multimedia.audio | AudioRenderer | on(type: "stateChange", callback: Callback\): void; | Added| | ohos.multimedia.audio | AudioRenderer | off(type: "periodReach"): void; | Added| | ohos.multimedia.audio | AudioRenderer | on(type: "periodReach", frame: number, callback: (position: number) => {}): void; | Added| | ohos.multimedia.audio | AudioRenderer | off(type: "markReach"): void; | Added| | ohos.multimedia.audio | AudioRenderer | on(type: "markReach", frame: number, callback: (position: number) => {}): void; | Added| -| ohos.multimedia.audio | AudioRenderer | getRenderRate(callback: AsyncCallback): void;
getRenderRate(): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | setRenderRate(rate: AudioRendererRate, callback: AsyncCallback): void;
setRenderRate(rate: AudioRendererRate): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | getBufferSize(callback: AsyncCallback): void;
getBufferSize(): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | release(callback: AsyncCallback): void;
release(): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | stop(callback: AsyncCallback): void;
stop(): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | pause(callback: AsyncCallback): void;
pause(): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | drain(callback: AsyncCallback): void;
drain(): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | getAudioTime(callback: AsyncCallback): void;
getAudioTime(): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | write(buffer: ArrayBuffer, callback: AsyncCallback): void;
write(buffer: ArrayBuffer): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | start(callback: AsyncCallback): void;
start(): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | getStreamInfo(callback: AsyncCallback): void;
getStreamInfo(): Promise; | Added| -| ohos.multimedia.audio | AudioRenderer | getRendererInfo(callback: AsyncCallback): void;
getRendererInfo(): Promise; | Added| +| ohos.multimedia.audio | AudioRenderer | getRenderRate(callback: AsyncCallback\): void;
getRenderRate(): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | setRenderRate(rate: AudioRendererRate, callback: AsyncCallback\): void;
setRenderRate(rate: AudioRendererRate): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | getBufferSize(callback: AsyncCallback\): void;
getBufferSize(): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | release(callback: AsyncCallback\): void;
release(): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | stop(callback: AsyncCallback\): void;
stop(): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | pause(callback: AsyncCallback\): void;
pause(): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | drain(callback: AsyncCallback\): void;
drain(): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | getAudioTime(callback: AsyncCallback\): void;
getAudioTime(): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | write(buffer: ArrayBuffer, callback: AsyncCallback\): void;
write(buffer: ArrayBuffer): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | start(callback: AsyncCallback\): void;
start(): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | getStreamInfo(callback: AsyncCallback\): void;
getStreamInfo(): Promise\; | Added| +| ohos.multimedia.audio | AudioRenderer | getRendererInfo(callback: AsyncCallback\): void;
getRendererInfo(): Promise\; | Added| | ohos.multimedia.audio | AudioRenderer | readonly state: AudioState; | Added| | ohos.multimedia.audio | DeviceChangeAction | deviceDescriptors: AudioDeviceDescriptors; | Added| | ohos.multimedia.audio | DeviceChangeAction | type: DeviceChangeType; | Added| @@ -330,22 +330,22 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.audio | InterruptAction | hint?: InterruptHint; | Added| | ohos.multimedia.audio | InterruptAction | type?: InterruptType; | Added| | ohos.multimedia.audio | InterruptAction | actionType: InterruptActionType; | Added| -| ohos.multimedia.audio | AudioManager | off(type: 'interrupt', interrupt: AudioInterrupt, callback?: Callback): void; | Added| -| ohos.multimedia.audio | AudioManager | on(type: 'interrupt', interrupt: AudioInterrupt, callback: Callback): void; | Added| -| ohos.multimedia.audio | AudioManager | off(type: 'deviceChange', callback?: Callback): void; | Added| -| ohos.multimedia.audio | AudioManager | on(type: 'deviceChange', callback: Callback): void; | Added| -| ohos.multimedia.audio | AudioManager | getAudioScene(callback: AsyncCallback): void;
getAudioScene(): Promise; | Added| -| ohos.multimedia.audio | AudioManager | isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback): void;
isDeviceActive(deviceType: ActiveDeviceType): Promise; | Added| -| ohos.multimedia.audio | AudioManager | setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback): void;
setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise; | Added| -| ohos.multimedia.audio | AudioManager | getAudioParameter(key: string, callback: AsyncCallback): void;
getAudioParameter(key: string): Promise; | Added| -| ohos.multimedia.audio | AudioManager | setAudioParameter(key: string, value: string, callback: AsyncCallback): void;
setAudioParameter(key: string, value: string): Promise; | Added| -| ohos.multimedia.audio | AudioManager | getRingerMode(callback: AsyncCallback): void;
getRingerMode(): Promise; | Added| -| ohos.multimedia.audio | AudioManager | setRingerMode(mode: AudioRingMode, callback: AsyncCallback): void;
setRingerMode(mode: AudioRingMode): Promise; | Added| -| ohos.multimedia.audio | AudioManager | isMicrophoneMute(callback: AsyncCallback): void;
isMicrophoneMute(): Promise; | Added| -| ohos.multimedia.audio | AudioManager | setMicrophoneMute(mute: boolean, callback: AsyncCallback): void;
setMicrophoneMute(mute: boolean): Promise; | Added| -| ohos.multimedia.audio | AudioManager | isActive(volumeType: AudioVolumeType, callback: AsyncCallback): void;
isActive(volumeType: AudioVolumeType): Promise; | Added| -| ohos.multimedia.audio | AudioManager | isMute(volumeType: AudioVolumeType, callback: AsyncCallback): void;
isMute(volumeType: AudioVolumeType): Promise; | Added| -| ohos.multimedia.audio | AudioManager | mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback): void;
mute(volumeType: AudioVolumeType, mute: boolean): Promise; | Added| +| ohos.multimedia.audio | AudioManager | off(type: 'interrupt', interrupt: AudioInterrupt, callback?: Callback\): void; | Added| +| ohos.multimedia.audio | AudioManager | on(type: 'interrupt', interrupt: AudioInterrupt, callback: Callback\): void; | Added| +| ohos.multimedia.audio | AudioManager | off(type: 'deviceChange', callback?: Callback\): void; | Added| +| ohos.multimedia.audio | AudioManager | on(type: 'deviceChange', callback: Callback\): void; | Added| +| ohos.multimedia.audio | AudioManager | getAudioScene(callback: AsyncCallback\): void;
getAudioScene(): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback\): void;
isDeviceActive(deviceType: ActiveDeviceType): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback\): void;
setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | getAudioParameter(key: string, callback: AsyncCallback\): void;
getAudioParameter(key: string): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | setAudioParameter(key: string, value: string, callback: AsyncCallback\): void;
setAudioParameter(key: string, value: string): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | getRingerMode(callback: AsyncCallback\): void;
getRingerMode(): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | setRingerMode(mode: AudioRingMode, callback: AsyncCallback\): void;
setRingerMode(mode: AudioRingMode): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | isMicrophoneMute(callback: AsyncCallback\): void;
isMicrophoneMute(): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | setMicrophoneMute(mute: boolean, callback: AsyncCallback\): void;
setMicrophoneMute(mute: boolean): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | isActive(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
isActive(volumeType: AudioVolumeType): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | isMute(volumeType: AudioVolumeType, callback: AsyncCallback\): void;
isMute(volumeType: AudioVolumeType): Promise\; | Added| +| ohos.multimedia.audio | AudioManager | mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback\): void;
mute(volumeType: AudioVolumeType, mute: boolean): Promise\; | Added| | ohos.multimedia.audio | AudioScene | AUDIO_SCENE_VOICE_CHAT | Added| | ohos.multimedia.audio | AudioScene | AUDIO_SCENE_DEFAULT = 0 | Added| | ohos.multimedia.audio | DeviceChangeType | DISCONNECT = 1 | Added| @@ -395,8 +395,8 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_12000 = 12000 | Added| | ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_11025 = 11025 | Added| | ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_8000 = 8000 | Added| -| ohos.multimedia.audio | AudioChannel | CHANNEL_2 = 0x1 << 1 | Added| -| ohos.multimedia.audio | AudioChannel | CHANNEL_1 = 0x1 << 0 | Added| +| ohos.multimedia.audio | AudioChannel | CHANNEL_2 = 0x1 \<\< 1 | Added| +| ohos.multimedia.audio | AudioChannel | CHANNEL_1 = 0x1 \<\< 0 | Added| | ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S32LE = 3 | Added| | ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S24LE = 2 | Added| | ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S16LE = 1 | Added| @@ -419,5 +419,5 @@ The table below lists the APIs changes of the multimedia subsystem in OpenHarmon | ohos.multimedia.audio | AudioState | STATE_PREPARED | Added| | ohos.multimedia.audio | AudioState | STATE_NEW | Added| | ohos.multimedia.audio | AudioState | STATE_INVALID = -1 | Added| -| ohos.multimedia.audio | audio | function createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback): void;
function createAudioRenderer(options: AudioRendererOptions): Promise; | Added| -| ohos.multimedia.audio | audio | function createAudioCapturer(options: AudioCapturerOptions, callback: AsyncCallback): void;
function createAudioCapturer(options: AudioCapturerOptions): Promise; | Added| +| ohos.multimedia.audio | audio | createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback\): void;
createAudioRenderer(options: AudioRendererOptions): Promise\; | Added| +| ohos.multimedia.audio | audio | createAudioCapturer(options: AudioCapturerOptions, callback: AsyncCallback\): void;
createAudioCapturer(options: AudioCapturerOptions): Promise\; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-network.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-network.md index d3849dfc6693b6f0617039b175082864dfbe18d7..f23b55b8f59c57f4545f0a174db262366613558f 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-network.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-network.md @@ -8,34 +8,34 @@ The table below lists the APIs changes of the network management subsystem in Op |---|---|---|---| | ohos.net.webSocket | WebSocket | off(type: 'error', callback?: ErrorCallback): void; | Added| | ohos.net.webSocket | WebSocket | on(type: 'error', callback: ErrorCallback): void; | Added| -| ohos.net.webSocket | WebSocket | off(type: 'close', callback?: AsyncCallback<{ code: number, reason: string }>): void; | Added| -| ohos.net.webSocket | WebSocket | on(type: 'close', callback: AsyncCallback<{ code: number, reason: string }>): void; | Added| -| ohos.net.webSocket | WebSocket | off(type: 'message', callback?: AsyncCallback): void; | Added| -| ohos.net.webSocket | WebSocket | on(type: 'message', callback: AsyncCallback): void; | Added| -| ohos.net.webSocket | WebSocket | off(type: 'open', callback?: AsyncCallback): void; | Added| -| ohos.net.webSocket | WebSocket | on(type: 'open', callback: AsyncCallback): void; | Added| -| ohos.net.webSocket | WebSocket | close(callback: AsyncCallback): void;
close(options: WebSocketCloseOptions, callback: AsyncCallback): void;
close(options?: WebSocketCloseOptions): Promise; | Added| -| ohos.net.webSocket | WebSocket | send(data: string \| ArrayBuffer, callback: AsyncCallback): void;
send(data: string \| ArrayBuffer): Promise; | Added| -| ohos.net.webSocket | WebSocket | connect(url: string, callback: AsyncCallback): void;
connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback): void;
connect(url: string, options?: WebSocketRequestOptions): Promise; | Added| +| ohos.net.webSocket | WebSocket | off(type: 'close', callback?: AsyncCallback\<{ code: number, reason: string }>): void; | Added| +| ohos.net.webSocket | WebSocket | on(type: 'close', callback: AsyncCallback\<{ code: number, reason: string }>): void; | Added| +| ohos.net.webSocket | WebSocket | off(type: 'message', callback?: AsyncCallback\): void; | Added| +| ohos.net.webSocket | WebSocket | on(type: 'message', callback: AsyncCallback\): void; | Added| +| ohos.net.webSocket | WebSocket | off(type: 'open', callback?: AsyncCallback\): void; | Added| +| ohos.net.webSocket | WebSocket | on(type: 'open', callback: AsyncCallback\): void; | Added| +| ohos.net.webSocket | WebSocket | close(callback: AsyncCallback\): void;
close(options: WebSocketCloseOptions, callback: AsyncCallback\): void;
close(options?: WebSocketCloseOptions): Promise\; | Added| +| ohos.net.webSocket | WebSocket | send(data: string \| ArrayBuffer, callback: AsyncCallback\): void;
send(data: string \| ArrayBuffer): Promise\; | Added| +| ohos.net.webSocket | WebSocket | connect(url: string, callback: AsyncCallback\): void;
connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback\): void;
connect(url: string, options?: WebSocketRequestOptions): Promise\; | Added| | ohos.net.webSocket | WebSocketCloseOptions | reason?: string; | Added| | ohos.net.webSocket | WebSocketCloseOptions | code?: number; | Added| | ohos.net.webSocket | WebSocketRequestOptions | header?: Object; | Added| -| ohos.net.webSocket | webSocket | function createWebSocket(): WebSocket; | Added| +| ohos.net.webSocket | webSocket | createWebSocket(): WebSocket; | Added| | ohos.net.socket | TCPSocket | off(type: 'error', callback?: ErrorCallback): void; | Added| | ohos.net.socket | TCPSocket | on(type: 'error', callback: ErrorCallback): void; | Added| -| ohos.net.socket | TCPSocket | off(type: 'connect' \| 'close', callback?: Callback): void; | Added| -| ohos.net.socket | TCPSocket | off(type: 'connect' \| 'close', callback?: Callback): void; | Added| -| ohos.net.socket | TCPSocket | on(type: 'connect' \| 'close', callback: Callback): void; | Added| -| ohos.net.socket | TCPSocket | on(type: 'connect' \| 'close', callback: Callback): void; | Added| -| ohos.net.socket | TCPSocket | off(type: 'message', callback?: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | Added| -| ohos.net.socket | TCPSocket | on(type: 'message', callback: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | Added| -| ohos.net.socket | TCPSocket | setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback): void;
setExtraOptions(options: TCPExtraOptions): Promise; | Added| -| ohos.net.socket | TCPSocket | getState(callback: AsyncCallback): void;
getState(): Promise; | Added| -| ohos.net.socket | TCPSocket | getRemoteAddress(callback: AsyncCallback): void;
getRemoteAddress(): Promise; | Added| -| ohos.net.socket | TCPSocket | close(callback: AsyncCallback): void;
close(): Promise; | Added| -| ohos.net.socket | TCPSocket | send(options: TCPSendOptions, callback: AsyncCallback): void;
send(options: TCPSendOptions): Promise; | Added| -| ohos.net.socket | TCPSocket | connect(options: TCPConnectOptions, callback: AsyncCallback): void;
connect(options: TCPConnectOptions): Promise; | Added| -| ohos.net.socket | TCPSocket | bind(address: NetAddress, callback: AsyncCallback): void;
bind(address: NetAddress): Promise; | Added| +| ohos.net.socket | TCPSocket | off(type: 'connect' \| 'close', callback?: Callback\): void; | Added| +| ohos.net.socket | TCPSocket | off(type: 'connect' \| 'close', callback?: Callback\): void; | Added| +| ohos.net.socket | TCPSocket | on(type: 'connect' \| 'close', callback: Callback\): void; | Added| +| ohos.net.socket | TCPSocket | on(type: 'connect' \| 'close', callback: Callback\): void; | Added| +| ohos.net.socket | TCPSocket | off(type: 'message', callback?: Callback\<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | Added| +| ohos.net.socket | TCPSocket | on(type: 'message', callback: Callback\<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | Added| +| ohos.net.socket | TCPSocket | setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback\): void;
setExtraOptions(options: TCPExtraOptions): Promise\; | Added| +| ohos.net.socket | TCPSocket | getState(callback: AsyncCallback\): void;
getState(): Promise\; | Added| +| ohos.net.socket | TCPSocket | getRemoteAddress(callback: AsyncCallback\): void;
getRemoteAddress(): Promise\; | Added| +| ohos.net.socket | TCPSocket | close(callback: AsyncCallback\): void;
close(): Promise\; | Added| +| ohos.net.socket | TCPSocket | send(options: TCPSendOptions, callback: AsyncCallback\): void;
send(options: TCPSendOptions): Promise\; | Added| +| ohos.net.socket | TCPSocket | connect(options: TCPConnectOptions, callback: AsyncCallback\): void;
connect(options: TCPConnectOptions): Promise\; | Added| +| ohos.net.socket | TCPSocket | bind(address: NetAddress, callback: AsyncCallback\): void;
bind(address: NetAddress): Promise\; | Added| | ohos.net.socket | TCPExtraOptions | socketLinger: {on: boolean, linger: number}; | Added| | ohos.net.socket | TCPExtraOptions | TCPNoDelay?: boolean; | Added| | ohos.net.socket | TCPExtraOptions | OOBInline?: boolean; | Added| @@ -46,17 +46,17 @@ The table below lists the APIs changes of the network management subsystem in Op | ohos.net.socket | TCPConnectOptions | address: NetAddress; | Added| | ohos.net.socket | UDPSocket | off(type: 'error', callback?: ErrorCallback): void; | Added| | ohos.net.socket | UDPSocket | on(type: 'error', callback: ErrorCallback): void; | Added| -| ohos.net.socket | UDPSocket | off(type: 'listening' \| 'close', callback?: Callback): void; | Added| -| ohos.net.socket | UDPSocket | off(type: 'listening' \| 'close', callback?: Callback): void; | Added| -| ohos.net.socket | UDPSocket | on(type: 'listening' \| 'close', callback: Callback): void; | Added| -| ohos.net.socket | UDPSocket | on(type: 'listening' \| 'close', callback: Callback): void; | Added| -| ohos.net.socket | UDPSocket | off(type: 'message', callback?: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | Added| -| ohos.net.socket | UDPSocket | on(type: 'message', callback: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | Added| -| ohos.net.socket | UDPSocket | setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback): void;
setExtraOptions(options: UDPExtraOptions): Promise; | Added| -| ohos.net.socket | UDPSocket | getState(callback: AsyncCallback): void;
getState(): Promise; | Added| -| ohos.net.socket | UDPSocket | close(callback: AsyncCallback): void;
close(): Promise; | Added| -| ohos.net.socket | UDPSocket | send(options: UDPSendOptions, callback: AsyncCallback): void;
send(options: UDPSendOptions): Promise; | Added| -| ohos.net.socket | UDPSocket | bind(address: NetAddress, callback: AsyncCallback): void;
bind(address: NetAddress): Promise; | Added| +| ohos.net.socket | UDPSocket | off(type: 'listening' \| 'close', callback?: Callback\): void; | Added| +| ohos.net.socket | UDPSocket | off(type: 'listening' \| 'close', callback?: Callback\): void; | Added| +| ohos.net.socket | UDPSocket | on(type: 'listening' \| 'close', callback: Callback\): void; | Added| +| ohos.net.socket | UDPSocket | on(type: 'listening' \| 'close', callback: Callback\): void; | Added| +| ohos.net.socket | UDPSocket | off(type: 'message', callback?: Callback\<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | Added| +| ohos.net.socket | UDPSocket | on(type: 'message', callback: Callback\<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | Added| +| ohos.net.socket | UDPSocket | setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback\): void;
setExtraOptions(options: UDPExtraOptions): Promise\; | Added| +| ohos.net.socket | UDPSocket | getState(callback: AsyncCallback\): void;
getState(): Promise\; | Added| +| ohos.net.socket | UDPSocket | close(callback: AsyncCallback\): void;
close(): Promise\; | Added| +| ohos.net.socket | UDPSocket | send(options: UDPSendOptions, callback: AsyncCallback\): void;
send(options: UDPSendOptions): Promise\; | Added| +| ohos.net.socket | UDPSocket | bind(address: NetAddress, callback: AsyncCallback\): void;
bind(address: NetAddress): Promise\; | Added| | ohos.net.socket | SocketRemoteInfo | size: number; | Added| | ohos.net.socket | SocketRemoteInfo | port: number; | Added| | ohos.net.socket | SocketRemoteInfo | family: 'IPv4' \| 'IPv6'; | Added| @@ -71,8 +71,8 @@ The table below lists the APIs changes of the network management subsystem in Op | ohos.net.socket | ExtraOptionsBase | receiveBufferSize?: number; | Added| | ohos.net.socket | UDPSendOptions | address: NetAddress; | Added| | ohos.net.socket | UDPSendOptions | data: string \| ArrayBuffer; | Added| -| ohos.net.socket | socket | function constructTCPSocketInstance(): TCPSocket; | Added| -| ohos.net.socket | socket | function constructUDPSocketInstance(): UDPSocket; | Added| +| ohos.net.socket | socket | constructTCPSocketInstance(): TCPSocket; | Added| +| ohos.net.socket | socket | constructUDPSocketInstance(): UDPSocket; | Added| | ohos.net.socket | socket | import NetAddress = connection.NetAddress; | Added| | ohos.net.http | HttpResponse | cookies: string; | Added| | ohos.net.http | HttpResponse | header: Object; | Added| @@ -121,19 +121,19 @@ The table below lists the APIs changes of the network management subsystem in Op | ohos.net.http | RequestMethod | HEAD = "HEAD" | Added| | ohos.net.http | RequestMethod | GET = "GET" | Added| | ohos.net.http | RequestMethod | OPTIONS = "OPTIONS" | Added| -| ohos.net.http | HttpRequest | once(type: "headersReceive", callback: Callback): void; | Added| -| ohos.net.http | HttpRequest | off(type: "headersReceive", callback?: Callback): void; | Added| -| ohos.net.http | HttpRequest | on(type: "headersReceive", callback: Callback): void; | Added| -| ohos.net.http | HttpRequest | off(type: "headerReceive", callback?: AsyncCallback): void; | Added| -| ohos.net.http | HttpRequest | on(type: "headerReceive", callback: AsyncCallback): void; | Added| +| ohos.net.http | HttpRequest | once(type: "headersReceive", callback: Callback\): void; | Added| +| ohos.net.http | HttpRequest | off(type: "headersReceive", callback?: Callback\): void; | Added| +| ohos.net.http | HttpRequest | on(type: "headersReceive", callback: Callback\): void; | Added| +| ohos.net.http | HttpRequest | off(type: "headerReceive", callback?: AsyncCallback\): void; | Added| +| ohos.net.http | HttpRequest | on(type: "headerReceive", callback: AsyncCallback\): void; | Added| | ohos.net.http | HttpRequest | destroy(): void; | Added| -| ohos.net.http | HttpRequest | request(url: string, callback: AsyncCallback): void;
request(url: string, options: HttpRequestOptions, callback: AsyncCallback): void;
request(url: string, options?: HttpRequestOptions): Promise; | Added| +| ohos.net.http | HttpRequest | request(url: string, callback: AsyncCallback\): void;
request(url: string, options: HttpRequestOptions, callback: AsyncCallback\): void;
request(url: string, options?: HttpRequestOptions): Promise\; | Added| | ohos.net.http | HttpRequestOptions | connectTimeout?: number; | Added| | ohos.net.http | HttpRequestOptions | readTimeout?: number; | Added| | ohos.net.http | HttpRequestOptions | header?: Object; | Added| | ohos.net.http | HttpRequestOptions | extraData?: string \| Object \| ArrayBuffer; | Added| | ohos.net.http | HttpRequestOptions | method?: RequestMethod; | Added| -| ohos.net.http | http | function createHttp(): HttpRequest; | Added| +| ohos.net.http | http | createHttp(): HttpRequest; | Added| | ohos.net.connection | NetAddress | port?: number; | Added| | ohos.net.connection | NetAddress | family?: number; | Added| | ohos.net.connection | NetAddress | address: string; | Added| @@ -145,9 +145,9 @@ The table below lists the APIs changes of the network management subsystem in Op | ohos.net.connection | RouteInfo | destination: LinkAddress; | Added| | ohos.net.connection | RouteInfo | interface: string; | Added| | ohos.net.connection | ConnectionProperties | mtu: number; | Added| -| ohos.net.connection | ConnectionProperties | routes: Array; | Added| -| ohos.net.connection | ConnectionProperties | dnses: Array; | Added| -| ohos.net.connection | ConnectionProperties | linkAddresses: Array; | Added| +| ohos.net.connection | ConnectionProperties | routes: Array\; | Added| +| ohos.net.connection | ConnectionProperties | dnses: Array\; | Added| +| ohos.net.connection | ConnectionProperties | linkAddresses: Array\; | Added| | ohos.net.connection | ConnectionProperties | domains: string; | Added| | ohos.net.connection | ConnectionProperties | interfaceName: string; | Added| | ohos.net.connection | NetBearType | BEARER_ETHERNET = 3 | Added| @@ -158,29 +158,29 @@ The table below lists the APIs changes of the network management subsystem in Op | ohos.net.connection | NetCap | NET_CAPABILITY_INTERNET = 12 | Added| | ohos.net.connection | NetCap | NET_CAPABILITY_NOT_METERED = 11 | Added| | ohos.net.connection | NetCap | NET_CAPABILITY_MMS = 0 | Added| -| ohos.net.connection | NetCapabilities | bearerTypes: Array; | Added| -| ohos.net.connection | NetCapabilities | networkCap?: Array; | Added| +| ohos.net.connection | NetCapabilities | bearerTypes: Array\; | Added| +| ohos.net.connection | NetCapabilities | networkCap?: Array\; | Added| | ohos.net.connection | NetCapabilities | linkDownBandwidthKbps?: number; | Added| | ohos.net.connection | NetCapabilities | linkUpBandwidthKbps?: number; | Added| -| ohos.net.connection | NetHandle | getAddressByName(host: string, callback: AsyncCallback): void;
getAddressByName(host: string): Promise; | Added| -| ohos.net.connection | NetHandle | getAddressesByName(host: string, callback: AsyncCallback>): void;
getAddressesByName(host: string): Promise>; | Added| +| ohos.net.connection | NetHandle | getAddressByName(host: string, callback: AsyncCallback\): void;
getAddressByName(host: string): Promise\; | Added| +| ohos.net.connection | NetHandle | getAddressesByName(host: string, callback: AsyncCallback\>): void;
getAddressesByName(host: string): Promise\>; | Added| | ohos.net.connection | NetHandle | netId: number; | Added| | ohos.net.connection | NetSpecifier | bearerPrivateIdentifier?: string; | Added| | ohos.net.connection | NetSpecifier | netCapabilities: NetCapabilities; | Added| -| ohos.net.connection | NetConnection | unregister(callback: AsyncCallback): void; | Added| -| ohos.net.connection | NetConnection | register(callback: AsyncCallback): void; | Added| -| ohos.net.connection | NetConnection | on(type: 'netUnavailable', callback: Callback): void; | Added| -| ohos.net.connection | NetConnection | on(type: 'netLost', callback: Callback): void; | Added| -| ohos.net.connection | NetConnection | on(type: 'netConnectionPropertiesChange', callback: Callback<{ netHandle: NetHandle, connectionProperties: ConnectionProperties }>): void; | Added| -| ohos.net.connection | NetConnection | on(type: 'netCapabilitiesChange', callback: Callback<{ netHandle: NetHandle, netCap: NetCapabilities }>): void; | Added| -| ohos.net.connection | NetConnection | on(type: 'netBlockStatusChange', callback: Callback<{ netHandle: NetHandle, blocked: boolean }>): void; | Added| -| ohos.net.connection | NetConnection | on(type: 'netAvailable', callback: Callback): void; | Added| -| ohos.net.connection | connection | function getAddressesByName(host: string, callback: AsyncCallback>): void;
function getAddressesByName(host: string): Promise>; | Added| -| ohos.net.connection | connection | function reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback): void;
function reportNetDisconnected(netHandle: NetHandle): Promise; | Added| -| ohos.net.connection | connection | function reportNetConnected(netHandle: NetHandle, callback: AsyncCallback): void;
function reportNetConnected(netHandle: NetHandle): Promise; | Added| -| ohos.net.connection | connection | function hasDefaultNet(callback: AsyncCallback): void;
function hasDefaultNet(): Promise; | Added| -| ohos.net.connection | connection | function getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback): void;
function getNetCapabilities(netHandle: NetHandle): Promise; | Added| -| ohos.net.connection | connection | function getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback): void;
function getConnectionProperties(netHandle: NetHandle): Promise; | Added| -| ohos.net.connection | connection | function getAllNets(callback: AsyncCallback>): void;
function getAllNets(): Promise>; | Added| -| ohos.net.connection | connection | function getDefaultNet(callback: AsyncCallback): void;
function getDefaultNet(): Promise; | Added| -| ohos.net.connection | connection | function createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection; | Added| +| ohos.net.connection | NetConnection | unregister(callback: AsyncCallback\): void; | Added| +| ohos.net.connection | NetConnection | register(callback: AsyncCallback\): void; | Added| +| ohos.net.connection | NetConnection | on(type: 'netUnavailable', callback: Callback\): void; | Added| +| ohos.net.connection | NetConnection | on(type: 'netLost', callback: Callback\): void; | Added| +| ohos.net.connection | NetConnection | on(type: 'netConnectionPropertiesChange', callback: Callback\<{ netHandle: NetHandle, connectionProperties: ConnectionProperties }>): void; | Added| +| ohos.net.connection | NetConnection | on(type: 'netCapabilitiesChange', callback: Callback\<{ netHandle: NetHandle, netCap: NetCapabilities }>): void; | Added| +| ohos.net.connection | NetConnection | on(type: 'netBlockStatusChange', callback: Callback\<{ netHandle: NetHandle, blocked: boolean }>): void; | Added| +| ohos.net.connection | NetConnection | on(type: 'netAvailable', callback: Callback\): void; | Added| +| ohos.net.connection | connection | getAddressesByName(host: string, callback: AsyncCallback\>): void;
getAddressesByName(host: string): Promise\>; | Added| +| ohos.net.connection | connection | reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback\): void;
reportNetDisconnected(netHandle: NetHandle): Promise\; | Added| +| ohos.net.connection | connection | reportNetConnected(netHandle: NetHandle, callback: AsyncCallback\): void;
reportNetConnected(netHandle: NetHandle): Promise\; | Added| +| ohos.net.connection | connection | hasDefaultNet(callback: AsyncCallback\): void;
hasDefaultNet(): Promise\; | Added| +| ohos.net.connection | connection | getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback\): void;
getNetCapabilities(netHandle: NetHandle): Promise\; | Added| +| ohos.net.connection | connection | getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback\): void;
getConnectionProperties(netHandle: NetHandle): Promise\; | Added| +| ohos.net.connection | connection | getAllNets(callback: AsyncCallback\>): void;
getAllNets(): Promise\>; | Added| +| ohos.net.connection | connection | getDefaultNet(callback: AsyncCallback\): void;
getDefaultNet(): Promise\; | Added| +| ohos.net.connection | connection | createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md index 8a37b2a2295b20a302a34fce773a98cbc670cf2a..ef9ad43396a0e5591084a16baf3f4cc2872d648a 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md @@ -1,6 +1,6 @@ -# JS API Changes of the Resource Scheduling Subsystem +# JS API Changes of the Distributed Scheduler Subsystem -The table below lists the APIs changes of the resource scheduling subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS. +The table below lists the APIs changes of the distributed scheduler subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS. ## API Changes @@ -13,11 +13,11 @@ The table below lists the APIs changes of the resource scheduling subsystem in O | ohos.reminderAgent | LocalDateTime | month: number; | Added| | ohos.reminderAgent | LocalDateTime | year: number; | Added| | ohos.reminderAgent | ReminderRequestTimer | triggerTimeInSeconds: number; | Added| -| ohos.reminderAgent | ReminderRequestAlarm | daysOfWeek?: Array; | Added| +| ohos.reminderAgent | ReminderRequestAlarm | daysOfWeek?: Array\; | Added| | ohos.reminderAgent | ReminderRequestAlarm | minute: number; | Added| | ohos.reminderAgent | ReminderRequestAlarm | hour: number; | Added| -| ohos.reminderAgent | ReminderRequestCalendar | repeatDays?: Array; | Added| -| ohos.reminderAgent | ReminderRequestCalendar | repeatMonths?: Array; | Added| +| ohos.reminderAgent | ReminderRequestCalendar | repeatDays?: Array\; | Added| +| ohos.reminderAgent | ReminderRequestCalendar | repeatMonths?: Array\; | Added| | ohos.reminderAgent | ReminderRequestCalendar | dateTime: LocalDateTime; | Added| | ohos.reminderAgent | ReminderRequest | slotType?: notification.SlotType; | Added| | ohos.reminderAgent | ReminderRequest | notificationId?: number; | Added| @@ -43,21 +43,21 @@ The table below lists the APIs changes of the resource scheduling subsystem in O | ohos.reminderAgent | ReminderType | REMINDER_TYPE_TIMER = 0 | Added| | ohos.reminderAgent | ActionButtonType | ACTION_BUTTON_TYPE_SNOOZE = 1 | Added| | ohos.reminderAgent | ActionButtonType | ACTION_BUTTON_TYPE_CLOSE = 0 | Added| -| ohos.reminderAgent | reminderAgent | function removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback): void;
function removeNotificationSlot(slotType: notification.SlotType): Promise; | Added| -| ohos.reminderAgent | reminderAgent | function addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback): void;
function addNotificationSlot(slot: NotificationSlot): Promise; | Added| -| ohos.reminderAgent | reminderAgent | function cancelAllReminders(callback: AsyncCallback): void;
function cancelAllReminders(): Promise; | Added| -| ohos.reminderAgent | reminderAgent | function getValidReminders(callback: AsyncCallback>): void;
function getValidReminders(): Promise>; | Added| -| ohos.reminderAgent | reminderAgent | function cancelReminder(reminderId: number, callback: AsyncCallback): void;
function cancelReminder(reminderId: number): Promise; | Added| -| ohos.reminderAgent | reminderAgent | function publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback): void;
function publishReminder(reminderReq: ReminderRequest): Promise; | Added| -| ohos.bundleState | bundleState | function queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback>): void;
function queryCurrentBundleActiveStates(begin: number, end: number): Promise>; | Added| +| ohos.reminderAgent | reminderAgent | removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback\): void;
removeNotificationSlot(slotType: notification.SlotType): Promise\; | Added| +| ohos.reminderAgent | reminderAgent | addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback\): void;
addNotificationSlot(slot: NotificationSlot): Promise\; | Added| +| ohos.reminderAgent | reminderAgent | cancelAllReminders(callback: AsyncCallback\): void;
cancelAllReminders(): Promise\; | Added| +| ohos.reminderAgent | reminderAgent | getValidReminders(callback: AsyncCallback\>): void;
getValidReminders(): Promise\>; | Added| +| ohos.reminderAgent | reminderAgent | cancelReminder(reminderId: number, callback: AsyncCallback\): void;
cancelReminder(reminderId: number): Promise\; | Added| +| ohos.reminderAgent | reminderAgent | publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback\): void;
publishReminder(reminderReq: ReminderRequest): Promise\; | Added| +| ohos.bundleState | bundleState | queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback\>): void;
queryCurrentBundleActiveStates(begin: number, end: number): Promise\>; | Added| | ohos.bundleState | IntervalType | BY_ANNUALLY = 4 | Added| | ohos.bundleState | IntervalType | BY_MONTHLY = 3 | Added| | ohos.bundleState | IntervalType | BY_WEEKLY = 2 | Added| | ohos.bundleState | IntervalType | BY_DAILY = 1 | Added| | ohos.bundleState | IntervalType | BY_OPTIMIZED = 0 | Added| | ohos.bundleState | BundleActiveInfoResponse | [key: string]: BundleStateInfo; | Added| -| ohos.bundleState | bundleState | function queryAppUsagePriorityGroup(callback: AsyncCallback): void;
function queryAppUsagePriorityGroup(): Promise; | Added| -| ohos.bundleState | bundleState | function isIdleState(bundleName: string, callback: AsyncCallback): void;
function isIdleState(bundleName: string): Promise; | Added| +| ohos.bundleState | bundleState | queryAppUsagePriorityGroup(callback: AsyncCallback\): void;
queryAppUsagePriorityGroup(): Promise\; | Added| +| ohos.bundleState | bundleState | isIdleState(bundleName: string, callback: AsyncCallback\): void;
isIdleState(bundleName: string): Promise\; | Added| | ohos.bundleState | BundleActiveState | stateType?: number; | Added| | ohos.bundleState | BundleActiveState | stateOccurredTime?: number; | Added| | ohos.bundleState | BundleActiveState | nameOfClass?: string; | Added| @@ -82,10 +82,10 @@ The table below lists the APIs changes of the resource scheduling subsystem in O | ohos.backgroundTaskManager | BackgroundMode | AUDIO_RECORDING = 3 | Added| | ohos.backgroundTaskManager | BackgroundMode | AUDIO_PLAYBACK = 2 | Added| | ohos.backgroundTaskManager | BackgroundMode | DATA_TRANSFER = 1 | Added| -| ohos.backgroundTaskManager | backgroundTaskManager | function stopBackgroundRunning(context: Context, callback: AsyncCallback): void;
function stopBackgroundRunning(context: Context): Promise; | Added| -| ohos.backgroundTaskManager | backgroundTaskManager | function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback): void;
function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise; | Added| -| ohos.backgroundTaskManager | backgroundTaskManager | function requestSuspendDelay(reason: string, callback: Callback): DelaySuspendInfo; | Added| -| ohos.backgroundTaskManager | backgroundTaskManager | function getRemainingDelayTime(requestId: number, callback: AsyncCallback): void;
function getRemainingDelayTime(requestId: number): Promise; | Added| -| ohos.backgroundTaskManager | backgroundTaskManager | function cancelSuspendDelay(requestId: number): void; | Added| +| ohos.backgroundTaskManager | backgroundTaskManager | stopBackgroundRunning(context: Context, callback: AsyncCallback\): void;
stopBackgroundRunning(context: Context): Promise\; | Added| +| ohos.backgroundTaskManager | backgroundTaskManager | startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback\): void;
startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise\; | Added| +| ohos.backgroundTaskManager | backgroundTaskManager | requestSuspendDelay(reason: string, callback: Callback\): DelaySuspendInfo; | Added| +| ohos.backgroundTaskManager | backgroundTaskManager | getRemainingDelayTime(requestId: number, callback: AsyncCallback\): void;
getRemainingDelayTime(requestId: number): Promise\; | Added| +| ohos.backgroundTaskManager | backgroundTaskManager | cancelSuspendDelay(requestId: number): void; | Added| | ohos.backgroundTaskManager | DelaySuspendInfo | actualDelayTime: number; | Added| | ohos.backgroundTaskManager | DelaySuspendInfo | requestId: number; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-security.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-security.md index a85183cd5f1839772749927a26bc3e84c84e3199..69e8b08c1b5fea4fa1a92ae3026af34bc92b0e1a 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-security.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-security.md @@ -82,12 +82,12 @@ The table below lists the APIs changes of the security subsystem in OpenHarmony | ohos.security.huks | HuksTag | HUKS_TAG_PURPOSE = HuksTagType.HUKS_TAG_TYPE_UINT \| 2 | Added| | ohos.security.huks | HuksTag | HUKS_TAG_ALGORITHM = HuksTagType.HUKS_TAG_TYPE_UINT \| 1 | Added| | ohos.security.huks | HuksTag | HUKS_TAG_INVALID = HuksTagType.HUKS_TAG_TYPE_INVALID \| 0 | Added| -| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BYTES = 5 << 28 | Added| -| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BOOL = 4 << 28 | Added| -| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_ULONG = 3 << 28 | Added| -| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_UINT = 2 << 28 | Added| -| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INT = 1 << 28 | Added| -| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INVALID = 0 << 28 | Added| +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BYTES = 5 \<\< 28 | Added| +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BOOL = 4 \<\< 28 | Added| +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_ULONG = 3 \<\< 28 | Added| +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_UINT = 2 \<\< 28 | Added| +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INT = 1 \<\< 28 | Added| +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INVALID = 0 \<\< 28 | Added| | ohos.security.huks | HuksSendType | HUKS_SEND_TYPE_SYNC = 1 | Added| | ohos.security.huks | HuksSendType | HUKS_SEND_TYPE_ASYNC = 0 | Added| | ohos.security.huks | HuksKeyStorageType | HUKS_STORAGE_PERSISTENT = 1 | Added| @@ -223,25 +223,25 @@ The table below lists the APIs changes of the security subsystem in OpenHarmony | ohos.security.huks | HuksErrorCode | HUKS_ERROR_BAD_STATE = -2 | Added| | ohos.security.huks | HuksErrorCode | HUKS_FAILURE = -1 | Added| | ohos.security.huks | HuksErrorCode | HUKS_SUCCESS = 0 | Added| -| ohos.security.huks | HuksResult | certChains?: Array; | Added| -| ohos.security.huks | HuksResult | properties?: Array; | Added| +| ohos.security.huks | HuksResult | certChains?: Array\; | Added| +| ohos.security.huks | HuksResult | properties?: Array\; | Added| | ohos.security.huks | HuksResult | outData?: Uint8Array; | Added| | ohos.security.huks | HuksResult | errorCode: number; | Added| | ohos.security.huks | HuksOptions | inData?: Uint8Array; | Added| -| ohos.security.huks | HuksOptions | properties?: Array; | Added| +| ohos.security.huks | HuksOptions | properties?: Array\; | Added| | ohos.security.huks | HuksHandle | token?: Uint8Array; | Added| | ohos.security.huks | HuksHandle | handle: number; | Added| | ohos.security.huks | HuksHandle | errorCode: number; | Added| | ohos.security.huks | HuksParam | value: boolean \| number \| bigint \| Uint8Array; | Added| | ohos.security.huks | HuksParam | tag: HuksTag; | Added| -| ohos.security.huks | huks | function getSdkVersion(options: HuksOptions) : string; | Added| -| ohos.security.huks | huks | function abort(handle: number, options: HuksOptions, callback: AsyncCallback) : void;
function abort(handle: number, options: HuksOptions) : Promise; | Added| -| ohos.security.huks | huks | function finish(handle: number, options: HuksOptions, callback: AsyncCallback) : void;
function finish(handle: number, options: HuksOptions) : Promise; | Added| -| ohos.security.huks | huks | function update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback) : void;
function update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise; | Added| -| ohos.security.huks | huks | function init(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function init(keyAlias: string, options: HuksOptions) : Promise; | Added| -| ohos.security.huks | huks | function isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function isKeyExist(keyAlias: string, options: HuksOptions) : Promise; | Added| -| ohos.security.huks | huks | function getKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function getKeyProperties(keyAlias: string, options: HuksOptions) : Promise; | Added| -| ohos.security.huks | huks | function exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function exportKey(keyAlias: string, options: HuksOptions) : Promise; | Added| -| ohos.security.huks | huks | function importKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function importKey(keyAlias: string, options: HuksOptions) : Promise; | Added| -| ohos.security.huks | huks | function deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function deleteKey(keyAlias: string, options: HuksOptions) : Promise; | Added| -| ohos.security.huks | huks | function generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function generateKey(keyAlias: string, options: HuksOptions) : Promise; | Added| +| ohos.security.huks | huks | getSdkVersion(options: HuksOptions) : string; | Added| +| ohos.security.huks | huks | abort(handle: number, options: HuksOptions, callback: AsyncCallback\) : void;
abort(handle: number, options: HuksOptions) : Promise\; | Added| +| ohos.security.huks | huks | finish(handle: number, options: HuksOptions, callback: AsyncCallback\) : void;
finish(handle: number, options: HuksOptions) : Promise\; | Added| +| ohos.security.huks | huks | update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback\) : void;
update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise\; | Added| +| ohos.security.huks | huks | init(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
init(keyAlias: string, options: HuksOptions) : Promise\; | Added| +| ohos.security.huks | huks | isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
isKeyExist(keyAlias: string, options: HuksOptions) : Promise\; | Added| +| ohos.security.huks | huks | getKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
getKeyProperties(keyAlias: string, options: HuksOptions) : Promise\; | Added| +| ohos.security.huks | huks | exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
exportKey(keyAlias: string, options: HuksOptions) : Promise\; | Added| +| ohos.security.huks | huks | importKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
importKey(keyAlias: string, options: HuksOptions) : Promise\; | Added| +| ohos.security.huks | huks | deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
deleteKey(keyAlias: string, options: HuksOptions) : Promise\; | Added| +| ohos.security.huks | huks | generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback\) : void;
generateKey(keyAlias: string, options: HuksOptions) : Promise\; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md index 509fe7793d6eb27e4705c1db0efcb3f6281ac78e..2d4c914d7ef5c84bf39d66d8584156ee6bf1c7f4 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md @@ -9,8 +9,8 @@ The table below lists the APIs changes of the pan-sensor subsystem in OpenHarmon | ohos.vibrator | VibratorStopMode | VIBRATOR_STOP_MODE_PRESET = "preset" | Added| | ohos.vibrator | VibratorStopMode | VIBRATOR_STOP_MODE_TIME = "time" | Added| | ohos.vibrator | EffectId | EFFECT_CLOCK_TIMER = "haptic.clock.timer" | Added| -| ohos.vibrator | vibrator | function stop(stopMode: VibratorStopMode): Promise;
function stop(stopMode: VibratorStopMode, callback?: AsyncCallback): void; | Added| -| ohos.vibrator | vibrator | function vibrate(duration: number, callback?: AsyncCallback): void;
function vibrate(duration: number): Promise;
function vibrate(effectId: EffectId): Promise;
function vibrate(effectId: EffectId, callback?: AsyncCallback): void; | Added| +| ohos.vibrator | vibrator | stop(stopMode: VibratorStopMode): Promise\;
stop(stopMode: VibratorStopMode, callback?: AsyncCallback\): void; | Added| +| ohos.vibrator | vibrator | vibrate(duration: number, callback?: AsyncCallback\): void;
vibrate(duration: number): Promise\;
vibrate(effectId: EffectId): Promise\;
vibrate(effectId: EffectId, callback?: AsyncCallback\): void; | Added| | ohos.sensor | WearDetectionResponse | value: number; | Added| | ohos.sensor | HeartRateResponse | heartRate: number; | Added| | ohos.sensor | BarometerResponse | pressure: number; | Added| @@ -85,18 +85,18 @@ The table below lists the APIs changes of the pan-sensor subsystem in OpenHarmon | ohos.sensor | SensorType | SENSOR_TYPE_ID_GYROSCOPE = 2 | Added| | ohos.sensor | SensorType | SENSOR_TYPE_ID_ACCELEROMETER = 1 | Added| | ohos.sensor | Options | interval?: number; | Added| -| ohos.sensor | RotationMatrixResponse | inclination: Array | Added| -| ohos.sensor | RotationMatrixResponse | rotation: Array; | Added| -| ohos.sensor | sensor | function getDirection(rotationMatrix: Array, callback: AsyncCallback>): void;
function getDirection(rotationMatrix: Array): Promise>; | Added| -| ohos.sensor | sensor | function createQuaternion(rotationVector: Array, callback: AsyncCallback>): void;
function createQuaternion(rotationVector: Array): Promise>; | Added| -| ohos.sensor | sensor | function transformCoordinateSystem(inRotationVector: Array, coordinates: CoordinatesOptions, callback: AsyncCallback>): void;
function transformCoordinateSystem(inRotationVector: Array, coordinates: CoordinatesOptions): Promise>; | Added| +| ohos.sensor | RotationMatrixResponse | inclination: Array\ | Added| +| ohos.sensor | RotationMatrixResponse | rotation: Array\; | Added| +| ohos.sensor | sensor | getDirection(rotationMatrix: Array\, callback: AsyncCallback\>): void;
getDirection(rotationMatrix: Array\): Promise\>; | Added| +| ohos.sensor | sensor | createQuaternion(rotationVector: Array\, callback: AsyncCallback\>): void;
createQuaternion(rotationVector: Array\): Promise\>; | Added| +| ohos.sensor | sensor | transformCoordinateSystem(inRotationVector: Array\, coordinates: CoordinatesOptions, callback: AsyncCallback\>): void;
transformCoordinateSystem(inRotationVector: Array\, coordinates: CoordinatesOptions): Promise\>; | Added| | ohos.sensor | CoordinatesOptions | y: number; | Added| | ohos.sensor | CoordinatesOptions | x: number; | Added| -| ohos.sensor | sensor | function createRotationMatrix(rotationVector: Array, callback: AsyncCallback>): void;
function createRotationMatrix(rotationVector: Array): Promise>;
function createRotationMatrix(gravity: Array, geomagnetic: Array, callback: AsyncCallback): void;
function createRotationMatrix(gravity: Array, geomagnetic: Array,): Promise; | Added| -| ohos.sensor | sensor | function getAngleModify(currentRotationMatrix: Array, preRotationMatrix: Array, callback: AsyncCallback>): void;
function getAngleModify(currentRotationMatrix: Array, preRotationMatrix: Array): Promise>;| Added| -| ohos.sensor | sensor | function getGeomagneticDip(inclinationMatrix: Array, callback: AsyncCallback): void;
function getGeomagneticDip(inclinationMatrix: Array): Promise; | Added| -| ohos.sensor | sensor | function getAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback): void;
function getAltitude(seaPressure: number, currentPressure: number): Promise; | Added| -| ohos.sensor | sensor | function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback): void;
function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise; | Added| +| ohos.sensor | sensor | createRotationMatrix(rotationVector: Array\, callback: AsyncCallback\>): void;
createRotationMatrix(rotationVector: Array\): Promise\>;
createRotationMatrix(gravity: Array\, geomagnetic: Array\, callback: AsyncCallback\): void;
createRotationMatrix(gravity: Array\, geomagnetic: Array\,): Promise\; | Added| +| ohos.sensor | sensor | getAngleModify(currentRotationMatrix: Array\, preRotationMatrix: Array\, callback: AsyncCallback\>): void;
getAngleModify(currentRotationMatrix: Array\, preRotationMatrix: Array\): Promise\>; | Added| +| ohos.sensor | sensor | getGeomagneticDip(inclinationMatrix: Array\, callback: AsyncCallback\): void;
getGeomagneticDip(inclinationMatrix: Array\): Promise\; | Added| +| ohos.sensor | sensor | getAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback\): void;
getAltitude(seaPressure: number, currentPressure: number): Promise\; | Added| +| ohos.sensor | sensor | getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback\): void;
getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise\; | Added| | ohos.sensor | GeomagneticResponse | totalIntensity: number; | Added| | ohos.sensor | GeomagneticResponse | levelIntensity: number; | Added| | ohos.sensor | GeomagneticResponse | deflectionAngle: number; | Added| @@ -107,6 +107,6 @@ The table below lists the APIs changes of the pan-sensor subsystem in OpenHarmon | ohos.sensor | LocationOptions | altitude: number; | Added| | ohos.sensor | LocationOptions | longitude: number; | Added| | ohos.sensor | LocationOptions | latitude: number; | Added| -| ohos.sensor | sensor | function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_HALL, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback?: Callback): void;
function off(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback?: Callback): void;| Added| -| ohos.sensor | sensor | function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback): void;
function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback): void; | Added| -| ohos.sensor | sensor | function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback, options?: Options): void;
function on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback, options?: Options): void; | Added| +| ohos.sensor | sensor | off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_HALL, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback?: Callback\): void;
off(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback?: Callback\): void; | Added| +| ohos.sensor | sensor | once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\): void;
once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\): void; | Added| +| ohos.sensor | sensor | on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback\, options?: Options): void;
on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback\, options?: Options): void; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-settings.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-settings.md index a2f81a7132f4d7cce8f03242d59a30ace73e8337..153d65c1eccd6b5381917bbc2aa611b456288c73 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-settings.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-settings.md @@ -6,13 +6,13 @@ The table below lists the APIs changes of the application framework subsystem in | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| -| ohos.settings | settings | function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean; | Added| -| ohos.settings | settings | function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string; | Added| -| ohos.settings | settings | function getUriSync(name: string): string; | Added| -| ohos.settings | settings | function canShowFloating(callback: AsyncCallback): void;
function canShowFloating(): Promise; | Added| -| ohos.settings | settings | function enableAirplaneMode(enable: boolean, callback: AsyncCallback): void;
function enableAirplaneMode(enable: boolean): Promise; | Added| -| ohos.settings | settings | function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback): void;
function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise; | Added| -| ohos.settings | settings | function getURI(name: string, callback: AsyncCallback): void;
function getURI(name: string): Promise; | Added| +| ohos.settings | settings | setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean; | Added| +| ohos.settings | settings | getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string; | Added| +| ohos.settings | settings | getUriSync(name: string): string; | Added| +| ohos.settings | settings | canShowFloating(callback: AsyncCallback\): void;
canShowFloating(): Promise\; | Added| +| ohos.settings | settings | enableAirplaneMode(enable: boolean, callback: AsyncCallback\): void;
enableAirplaneMode(enable: boolean): Promise\; | Added| +| ohos.settings | settings | getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback\): void;
getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise\; | Added| +| ohos.settings | settings | getURI(name: string, callback: AsyncCallback\): void;
getURI(name: string): Promise\; | Added| | ohos.settings | wireless | const WIFI_WATCHDOG_STATUS: string | Added| | ohos.settings | wireless | const WIFI_STATUS: string | Added| | ohos.settings | wireless | const WIFI_TO_MOBILE_DATA_AWAKE_TIMEOUT: string | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md index af44d4a00900448d96cc2324c4217ad460d5f04b..f26186fd35085b323ed90724ec431a99e4f43bbc 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md @@ -6,7 +6,7 @@ The table below lists the APIs changes of the Telephony subsystem in OpenHarmony | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| -| ohos.telephony.sms | sms | function hasSmsCapability(): boolean; | Added| +| ohos.telephony.sms | sms | hasSmsCapability(): boolean; | Added| | ohos.telephony.sim | CardType | SINGLE_MODE_ISIM_CARD = 60 | Added| | ohos.telephony.sim | CardType | DUAL_MODE_UG_CARD = 50 | Added| | ohos.telephony.sim | CardType | DUAL_MODE_TELECOM_LTE_CARD = 43 | Added| @@ -17,15 +17,15 @@ The table below lists the APIs changes of the Telephony subsystem in OpenHarmony | ohos.telephony.sim | CardType | SINGLE_MODE_USIM_CARD = 20 | Added| | ohos.telephony.sim | CardType | SINGLE_MODE_SIM_CARD = 10 | Added| | ohos.telephony.sim | CardType | UNKNOWN_CARD = -1 | Added| -| ohos.telephony.sim | sim | function hasSimCard(slotId: number, callback: AsyncCallback): void;
function hasSimCard(slotId: number): Promise; | Added| -| ohos.telephony.sim | sim | function getMaxSimCount(): number; | Added| -| ohos.telephony.sim | sim | function getCardType(slotId: number, callback: AsyncCallback): void;
function getCardType(slotId: number): Promise; | Added| -| ohos.telephony.sim | sim | function hasOperatorPrivileges(slotId: number, callback: AsyncCallback): void;
function hasOperatorPrivileges(slotId: number): Promise; | Added| -| ohos.telephony.sim | sim | function isSimActive(slotId: number, callback: AsyncCallback): void;
function isSimActive(slotId: number): Promise; | Added| +| ohos.telephony.sim | sim | hasSimCard(slotId: number, callback: AsyncCallback\): void;
hasSimCard(slotId: number): Promise\; | Added| +| ohos.telephony.sim | sim | getMaxSimCount(): number; | Added| +| ohos.telephony.sim | sim | getCardType(slotId: number, callback: AsyncCallback\): void;
getCardType(slotId: number): Promise\; | Added| +| ohos.telephony.sim | sim | hasOperatorPrivileges(slotId: number, callback: AsyncCallback\): void;
hasOperatorPrivileges(slotId: number): Promise\; | Added| +| ohos.telephony.sim | sim | isSimActive(slotId: number, callback: AsyncCallback\): void;
isSimActive(slotId: number): Promise\; | Added| | ohos.telephony.radio | NetworkState | cfgTech: RadioTechnology; | Added| -| ohos.telephony.radio | radio | function getOperatorName(slotId: number, callback: AsyncCallback): void;
function getOperatorName(slotId: number): Promise; | Added| -| ohos.telephony.radio | radio | function isNrSupported(): boolean;
function isNrSupported(slotId: number): boolean; | Added| -| ohos.telephony.radio | radio | function getPrimarySlotId(callback: AsyncCallback): void;
function getPrimarySlotId(): Promise; | Added| +| ohos.telephony.radio | radio | getOperatorName(slotId: number, callback: AsyncCallback\): void;
getOperatorName(slotId: number): Promise\; | Added| +| ohos.telephony.radio | radio | isNrSupported(): boolean;
isNrSupported(slotId: number): boolean; | Added| +| ohos.telephony.radio | radio | getPrimarySlotId(callback: AsyncCallback\): void;
getPrimarySlotId(): Promise\; | Added| | ohos.telephony.observer | LockReason | SIM_SIM_PUK | Added| | ohos.telephony.observer | LockReason | SIM_SIM_PIN | Added| | ohos.telephony.observer | LockReason | SIM_PC_PUK | Added| @@ -42,12 +42,12 @@ The table below lists the APIs changes of the Telephony subsystem in OpenHarmony | ohos.telephony.observer | SimStateData | reason: LockReason; | Added| | ohos.telephony.observer | SimStateData | state: SimState; | Added| | ohos.telephony.observer | SimStateData | type: CardType; | Added| -| ohos.telephony.observer | observer | function off(type: 'simStateChange', callback?: Callback): void; | Added| -| ohos.telephony.observer | observer | function on(type: 'simStateChange', callback: Callback): void;
function on(type: 'simStateChange', options: { slotId: number }, callback: Callback): void; | Added| -| ohos.telephony.observer | observer | function off(type: 'cellularDataFlowChange', callback?: Callback): void; | Added| -| ohos.telephony.observer | observer | function on(type: 'cellularDataFlowChange', callback: Callback): void;
function on(type: 'cellularDataFlowChange', options: { slotId: number },callback: Callback): void;| Added| -| ohos.telephony.observer | observer | function off(type: 'cellularDataConnectionStateChange',callback?: Callback<{ state: DataConnectState, network: RatType }>): void;| Added| -| ohos.telephony.observer | observer | function on(type: 'cellularDataConnectionStateChange', callback: Callback<{ state: DataConnectState, network: RatType }>): void;
function on(type: 'cellularDataConnectionStateChange', options: { slotId: number }, callback: Callback<{ state: DataConnectState, network: RatType }>): void; | Added| +| ohos.telephony.observer | observer | off(type: 'simStateChange', callback?: Callback\): void; | Added| +| ohos.telephony.observer | observer | on(type: 'simStateChange', callback: Callback\): void;
on(type: 'simStateChange', options: { slotId: number }, callback: Callback\): void; | Added| +| ohos.telephony.observer | observer | off(type: 'cellularDataFlowChange', callback?: Callback\): void; | Added| +| ohos.telephony.observer | observer | on(type: 'cellularDataFlowChange', callback: Callback\): void;
on(type: 'cellularDataFlowChange', options: { slotId: number },callback: Callback\): void; | Added| +| ohos.telephony.observer | observer | off(type: 'cellularDataConnectionStateChange',callback?: Callback\<{ state: DataConnectState, network: RatType }>): void; | Added| +| ohos.telephony.observer | observer | on(type: 'cellularDataConnectionStateChange', callback: Callback\<{ state: DataConnectState, network: RatType }>): void;
on(type: 'cellularDataConnectionStateChange', options: { slotId: number }, callback: Callback\<{ state: DataConnectState, network: RatType }>): void; | Added| | ohos.telephony.data | DataConnectState | DATA_STATE_SUSPENDED = 3 | Added| | ohos.telephony.data | DataConnectState | DATA_STATE_CONNECTED = 2 | Added| | ohos.telephony.data | DataConnectState | DATA_STATE_CONNECTING = 1 | Added| @@ -58,13 +58,13 @@ The table below lists the APIs changes of the Telephony subsystem in OpenHarmony | ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_UP = 2 | Added| | ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_DOWN = 1 | Added| | ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_NONE = 0 | Added| -| ohos.telephony.data | data | function isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback): void;
function isCellularDataRoamingEnabled(slotId: number): Promise; | Added| -| ohos.telephony.data | data | function isCellularDataEnabled(callback: AsyncCallback): void;
function isCellularDataEnabled(): Promise; | Added| -| ohos.telephony.data | data | function getCellularDataState(callback: AsyncCallback): void;
function getCellularDataState(): Promise; | Added| -| ohos.telephony.data | data | function getCellularDataFlowType(callback: AsyncCallback): void;
function getCellularDataFlowType(): Promise; | Added| -| ohos.telephony.data | data | function getDefaultCellularDataSlotId(callback: AsyncCallback): void;
function getDefaultCellularDataSlotId(): Promise; | Added| -| ohos.telephony.call | call | function hasVoiceCapability(): boolean; | Added| -| ohos.telephony.call | call | function makeCall(phoneNumber: string, callback: AsyncCallback): void;
function makeCall(phoneNumber: string): Promise; | Added| +| ohos.telephony.data | data | isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback\): void;
isCellularDataRoamingEnabled(slotId: number): Promise\; | Added| +| ohos.telephony.data | data | isCellularDataEnabled(callback: AsyncCallback\): void;
isCellularDataEnabled(): Promise\; | Added| +| ohos.telephony.data | data | getCellularDataState(callback: AsyncCallback\): void;
getCellularDataState(): Promise\; | Added| +| ohos.telephony.data | data | getCellularDataFlowType(callback: AsyncCallback\): void;
getCellularDataFlowType(): Promise\; | Added| +| ohos.telephony.data | data | getDefaultCellularDataSlotId(callback: AsyncCallback\): void;
getDefaultCellularDataSlotId(): Promise\; | Added| +| ohos.telephony.call | call | hasVoiceCapability(): boolean; | Added| +| ohos.telephony.call | call | makeCall(phoneNumber: string, callback: AsyncCallback\): void;
makeCall(phoneNumber: string): Promise\; | Added| | ohos.contact | Website | website: string | Added| | ohos.contact | SipAddress | labelId: number | Added| | ohos.contact | SipAddress | sipAddress: string | Added| @@ -214,17 +214,17 @@ The table below lists the APIs changes of the Telephony subsystem in OpenHarmony | ohos.contact | Contact | readonly key: string | Added| | ohos.contact | Contact | readonly id: number | Added| | ohos.contact | Contact | static readonly INVALID_CONTACT_ID: -1 | Added| -| ohos.contact | contact | function isMyCard(id: number, callback: AsyncCallback): void;
function isMyCard(id: number): Promise; | Added| -| ohos.contact | contact | function isLocalContact(id: number, callback: AsyncCallback): void;
function isLocalContact(id: number): Promise; | Added| -| ohos.contact | contact | function updateContact(contact: Contact, callback: AsyncCallback): void;
function updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallback): void;
function updateContact(contact: Contact, attrs?: ContactAttributes): Promise; | Added| -| ohos.contact | contact | function queryMyCard(callback: AsyncCallback): void;
function queryMyCard(attrs: ContactAttributes, callback: AsyncCallback): void;
function queryMyCard(attrs?: ContactAttributes): Promise; | Added| -| ohos.contact | contact | function queryKey(id: number, callback: AsyncCallback): void;
function queryKey(id: number, holder: Holder, callback: AsyncCallback): void;
function queryKey(id: number, holder?: Holder): Promise; | Added| -| ohos.contact | contact | function queryHolders(callback: AsyncCallback>): void;
function queryHolders(): Promise>; | Added| -| ohos.contact | contact | function queryGroups(callback: AsyncCallback>): void;
function queryGroups(holder: Holder, callback: AsyncCallback>): void;
function queryGroups(holder?: Holder): Promise>; | Added| -| ohos.contact | contact | function queryContactsByPhoneNumber(phoneNumber: string, callback: AsyncCallback>): void;
function queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, callback: AsyncCallback>): void;
function queryContactsByPhoneNumber(phoneNumber: string, attrs: ContactAttributes, callback: AsyncCallback>): void;
function queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback>): void;
function queryContactsByPhoneNumber(phoneNumber: string, holder?: Holder, attrs?: ContactAttributes): Promise>; | Added| -| ohos.contact | contact | function queryContactsByEmail(email: string, callback: AsyncCallback>): void;
function queryContactsByEmail(email: string, holder: Holder, callback: AsyncCallback>): void;
function queryContactsByEmail(email: string, attrs: ContactAttributes, callback: AsyncCallback>): void;
function queryContactsByEmail(email: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback>): void;
function queryContactsByEmail(email: string, holder?: Holder, attrs?: ContactAttributes): Promise>; | Added| -| ohos.contact | contact | function queryContacts(callback: AsyncCallback>): void;
function queryContacts(holder: Holder, callback: AsyncCallback>): void;
function queryContacts(attrs: ContactAttributes, callback: AsyncCallback>): void;
function queryContacts(holder: Holder, attrs: ContactAttributes, callback: AsyncCallback>): void;
function queryContacts(holder?: Holder, attrs?: ContactAttributes): Promise>; | Added| -| ohos.contact | contact | function queryContact(key: string, callback: AsyncCallback): void;
function queryContact(key: string, holder: Holder, callback: AsyncCallback): void;
function queryContact(key: string, attrs: ContactAttributes, callback: AsyncCallback): void;
function queryContact(key: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback): void;
function queryContact(key: string, holder?: Holder, attrs?: ContactAttributes): Promise; | Added| -| ohos.contact | contact | function deleteContact(key: string, callback: AsyncCallback): void;
function deleteContact(key: string): Promise; | Added| -| ohos.contact | contact | function selectContact(callback: AsyncCallback>): void;
function selectContact(): Promise>; | Added| -| ohos.contact | contact | function addContact(contact: Contact, callback: AsyncCallback): void;
function addContact(contact: Contact): Promise; | Added| +| ohos.contact | contact | isMyCard(id: number, callback: AsyncCallback\): void;
isMyCard(id: number): Promise\; | Added| +| ohos.contact | contact | isLocalContact(id: number, callback: AsyncCallback\): void;
isLocalContact(id: number): Promise\; | Added| +| ohos.contact | contact | updateContact(contact: Contact, callback: AsyncCallback\): void;
updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallback\): void;
updateContact(contact: Contact, attrs?: ContactAttributes): Promise\; | Added| +| ohos.contact | contact | queryMyCard(callback: AsyncCallback\): void;
queryMyCard(attrs: ContactAttributes, callback: AsyncCallback\): void;
queryMyCard(attrs?: ContactAttributes): Promise\; | Added| +| ohos.contact | contact | queryKey(id: number, callback: AsyncCallback\): void;
queryKey(id: number, holder: Holder, callback: AsyncCallback\): void;
queryKey(id: number, holder?: Holder): Promise\; | Added| +| ohos.contact | contact | queryHolders(callback: AsyncCallback\>): void;
queryHolders(): Promise\>; | Added| +| ohos.contact | contact | queryGroups(callback: AsyncCallback\>): void;
queryGroups(holder: Holder, callback: AsyncCallback\>): void;
queryGroups(holder?: Holder): Promise\>; | Added| +| ohos.contact | contact | queryContactsByPhoneNumber(phoneNumber: string, callback: AsyncCallback\>): void;
queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, callback: AsyncCallback\>): void;
queryContactsByPhoneNumber(phoneNumber: string, attrs: ContactAttributes, callback: AsyncCallback\>): void;
queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback\>): void;
queryContactsByPhoneNumber(phoneNumber: string, holder?: Holder, attrs?: ContactAttributes): Promise\>; | Added| +| ohos.contact | contact | queryContactsByEmail(email: string, callback: AsyncCallback\>): void;
queryContactsByEmail(email: string, holder: Holder, callback: AsyncCallback\>): void;
queryContactsByEmail(email: string, attrs: ContactAttributes, callback: AsyncCallback\>): void;
queryContactsByEmail(email: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback\>): void;
queryContactsByEmail(email: string, holder?: Holder, attrs?: ContactAttributes): Promise\>; | Added| +| ohos.contact | contact | queryContacts(callback: AsyncCallback\>): void;
queryContacts(holder: Holder, callback: AsyncCallback\>): void;
queryContacts(attrs: ContactAttributes, callback: AsyncCallback\>): void;
queryContacts(holder: Holder, attrs: ContactAttributes, callback: AsyncCallback\>): void;
queryContacts(holder?: Holder, attrs?: ContactAttributes): Promise\>; | Added| +| ohos.contact | contact | queryContact(key: string, callback: AsyncCallback\): void;
queryContact(key: string, holder: Holder, callback: AsyncCallback\): void;
queryContact(key: string, attrs: ContactAttributes, callback: AsyncCallback\): void;
queryContact(key: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback\): void;
queryContact(key: string, holder?: Holder, attrs?: ContactAttributes): Promise\; | Added| +| ohos.contact | contact | deleteContact(key: string, callback: AsyncCallback\): void;
deleteContact(key: string): Promise\; | Added| +| ohos.contact | contact | selectContact(callback: AsyncCallback\>): void;
selectContact(): Promise\>; | Added| +| ohos.contact | contact | addContact(contact: Contact, callback: AsyncCallback\): void;
addContact(contact: Contact): Promise\; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md index 5ee7be98e6335382bcc52447f0571f378cba6f75..e1a9db881ec676fb379d2decb9ff5218a52d368b 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md @@ -6,32 +6,32 @@ The table below lists the APIs changes of the testing framework subsystem in Ope | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| -| ohos.uitest | UiDriver | screenCap(savePath:string):Promise; | Added| -| ohos.uitest | UiDriver | swipe(startx:number,starty:number,endx:number,endy:number):Promise; | Added| -| ohos.uitest | UiDriver | longClick(x:number,y:number):Promise; | Added| -| ohos.uitest | UiDriver | doubleClick(x:number,y:number):Promise; | Added| -| ohos.uitest | UiDriver | click(x:number,y:number):Promise; | Added| -| ohos.uitest | UiDriver | triggerKey(keyCode:number):Promise; | Added| -| ohos.uitest | UiDriver | pressBack():Promise; | Added| -| ohos.uitest | UiDriver | assertComponentExist(by:By):Promise; | Added| -| ohos.uitest | UiDriver | findComponents(by:By):Promise>; | Added| -| ohos.uitest | UiDriver | findComponent(by:By):Promise; | Added| -| ohos.uitest | UiDriver | delayMs(duration:number):Promise; | Added| +| ohos.uitest | UiDriver | screenCap(savePath:string):Promise\; | Added| +| ohos.uitest | UiDriver | swipe(startx:number,starty:number,endx:number,endy:number):Promise\; | Added| +| ohos.uitest | UiDriver | longClick(x:number,y:number):Promise\; | Added| +| ohos.uitest | UiDriver | doubleClick(x:number,y:number):Promise\; | Added| +| ohos.uitest | UiDriver | click(x:number,y:number):Promise\; | Added| +| ohos.uitest | UiDriver | triggerKey(keyCode:number):Promise\; | Added| +| ohos.uitest | UiDriver | pressBack():Promise\; | Added| +| ohos.uitest | UiDriver | assertComponentExist(by:By):Promise\; | Added| +| ohos.uitest | UiDriver | findComponents(by:By):Promise\>; | Added| +| ohos.uitest | UiDriver | findComponent(by:By):Promise\; | Added| +| ohos.uitest | UiDriver | delayMs(duration:number):Promise\; | Added| | ohos.uitest | UiDriver | static create():UiDriver; | Added| -| ohos.uitest | UiComponent | scrollSearch(by:By):Promise; | Added| -| ohos.uitest | UiComponent | inputText(text: string):Promise; | Added| -| ohos.uitest | UiComponent | isSelected():Promise; | Added| -| ohos.uitest | UiComponent | isFocused():Promise; | Added| -| ohos.uitest | UiComponent | isEnabled():Promise; | Added| -| ohos.uitest | UiComponent | isScrollable():Promise; | Added| -| ohos.uitest | UiComponent | isClickable():Promise; | Added| -| ohos.uitest | UiComponent | getType():Promise; | Added| -| ohos.uitest | UiComponent | getText():Promise; | Added| -| ohos.uitest | UiComponent | getKey():Promise; | Added| -| ohos.uitest | UiComponent | getId():Promise; | Added| -| ohos.uitest | UiComponent | longClick():Promise; | Added| -| ohos.uitest | UiComponent | doubleClick():Promise; | Added| -| ohos.uitest | UiComponent | click():Promise; | Added| +| ohos.uitest | UiComponent | scrollSearch(by:By):Promise\; | Added| +| ohos.uitest | UiComponent | inputText(text: string):Promise\; | Added| +| ohos.uitest | UiComponent | isSelected():Promise\; | Added| +| ohos.uitest | UiComponent | isFocused():Promise\; | Added| +| ohos.uitest | UiComponent | isEnabled():Promise\; | Added| +| ohos.uitest | UiComponent | isScrollable():Promise\; | Added| +| ohos.uitest | UiComponent | isClickable():Promise\; | Added| +| ohos.uitest | UiComponent | getType():Promise\; | Added| +| ohos.uitest | UiComponent | getText():Promise\; | Added| +| ohos.uitest | UiComponent | getKey():Promise\; | Added| +| ohos.uitest | UiComponent | getId():Promise\; | Added| +| ohos.uitest | UiComponent | longClick():Promise\; | Added| +| ohos.uitest | UiComponent | doubleClick():Promise\; | Added| +| ohos.uitest | UiComponent | click():Promise\; | Added| | ohos.uitest | By | isAfter(by:By):By; | Added| | ohos.uitest | By | isBefore(by:By):By; | Added| | ohos.uitest | By | selected(b?:bool):By; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-usb.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-usb.md index 77ff0253e3cae7ff73e8144fcc0a853542fcac35..c042e89d84d451f606e0380f3b84c9040be43521 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-usb.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-usb.md @@ -23,7 +23,7 @@ The table below lists the APIs changes of the USB subsystem in OpenHarmony 3.1 R | ohos.usb | USBControlParams | request: number; | Added| | ohos.usb | USBDevicePipe | devAddress: number; | Added| | ohos.usb | USBDevicePipe | busNum: number; | Added| -| ohos.usb | USBDevice | configs: Array; | Added| +| ohos.usb | USBDevice | configs: Array\; | Added| | ohos.usb | USBDevice | protocol: number; | Added| | ohos.usb | USBDevice | subClass: number; | Added| | ohos.usb | USBDevice | clazz: number; | Added| @@ -36,14 +36,14 @@ The table below lists the APIs changes of the USB subsystem in OpenHarmony 3.1 R | ohos.usb | USBDevice | serial: string; | Added| | ohos.usb | USBDevice | devAddress: number; | Added| | ohos.usb | USBDevice | busNum: number; | Added| -| ohos.usb | USBConfig | interfaces: Array; | Added| +| ohos.usb | USBConfig | interfaces: Array\; | Added| | ohos.usb | USBConfig | isSelfPowered: boolean; | Added| | ohos.usb | USBConfig | isRemoteWakeup: boolean; | Added| | ohos.usb | USBConfig | name: string; | Added| | ohos.usb | USBConfig | maxPower: number; | Added| | ohos.usb | USBConfig | attributes: number; | Added| | ohos.usb | USBConfig | id: number; | Added| -| ohos.usb | USBInterface | endpoints: Array; | Added| +| ohos.usb | USBInterface | endpoints: Array\; | Added| | ohos.usb | USBInterface | name: string; | Added| | ohos.usb | USBInterface | alternateSetting: number; | Added| | ohos.usb | USBInterface | subClass: number; | Added| @@ -58,16 +58,16 @@ The table below lists the APIs changes of the USB subsystem in OpenHarmony 3.1 R | ohos.usb | USBEndpoint | interval: number; | Added| | ohos.usb | USBEndpoint | attributes: number; | Added| | ohos.usb | USBEndpoint | address: number; | Added| -| ohos.usb | usb | function closePipe(pipe: USBDevicePipe): number; | Added| -| ohos.usb | usb | function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,timeout?: number): Promise; | Added| -| ohos.usb | usb | function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise; | Added| -| ohos.usb | usb | function getFileDescriptor(pipe: USBDevicePipe): number; | Added| -| ohos.usb | usb | function getRawDescriptor(pipe: USBDevicePipe): Uint8Array; | Added| -| ohos.usb | usb | function setInterface(pipe: USBDevicePipe, iface: USBInterface): number; | Added| -| ohos.usb | usb | function setConfiguration(pipe: USBDevicePipe, config: USBConfig): number; | Added| -| ohos.usb | usb | function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number; | Added| -| ohos.usb | usb | function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number; | Added| -| ohos.usb | usb | function requestRight(deviceName: string): Promise; | Added| -| ohos.usb | usb | function hasRight(deviceName: string): boolean; | Added| -| ohos.usb | usb | function connectDevice(device: USBDevice): Readonly; | Added| -| ohos.usb | usb | function getDevices(): Array>; | Added| +| ohos.usb | usb | closePipe(pipe: USBDevicePipe): number; | Added| +| ohos.usb | usb | bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,timeout?: number): Promise\; | Added| +| ohos.usb | usb | controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise\; | Added| +| ohos.usb | usb | getFileDescriptor(pipe: USBDevicePipe): number; | Added| +| ohos.usb | usb | getRawDescriptor(pipe: USBDevicePipe): Uint8Array; | Added| +| ohos.usb | usb | setInterface(pipe: USBDevicePipe, iface: USBInterface): number; | Added| +| ohos.usb | usb | setConfiguration(pipe: USBDevicePipe, config: USBConfig): number; | Added| +| ohos.usb | usb | releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number; | Added| +| ohos.usb | usb | claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number; | Added| +| ohos.usb | usb | requestRight(deviceName: string): Promise\; | Added| +| ohos.usb | usb | hasRight(deviceName: string): boolean; | Added| +| ohos.usb | usb | connectDevice(device: USBDevice): Readonly\; | Added| +| ohos.usb | usb | getDevices(): Array\>; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md index fd65c15e260321080d78baa48b4bcdc98c38b775..4bc51fe8d7b80d83a21840ce31ca2063ca55646c 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md @@ -51,7 +51,7 @@ The table below lists the APIs changes of the user IAM subsystem in OpenHarmony | ohos.userIAM.userAuth | UserAuth | getVersion() : number; | Added| | ohos.userIAM.userAuth | UserAuth | constructor(); | Added| | ohos.userIAM.userAuth | userAuth | function getAuthenticator(): Authenticator; | Added| -| ohos.userIAM.userAuth | Authenticator | execute(type: AuthType, level: SecureLevel, callback: AsyncCallback): void;
execute(type: AuthType, level: SecureLevel): Promise; | Added| +| ohos.userIAM.userAuth | Authenticator | execute(type: AuthType, level: SecureLevel, callback: AsyncCallback\): void;
execute(type: AuthType, level: SecureLevel): Promise\; | Added| | ohos.userIAM.userAuth | AuthenticationResult | GENERAL_ERROR = 100 | Added| | ohos.userIAM.userAuth | AuthenticationResult | NOT_ENROLLED = 8 | Added| | ohos.userIAM.userAuth | AuthenticationResult | LOCKED = 7 | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-window.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-window.md index cab796fda5d7400e850126423f10096211b444c4..b86c445efa4e4a77570ddb51a29af347089a7715 100644 --- a/en/release-notes/api-change/v3.1-Release/js-apidiff-window.md +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-window.md @@ -6,35 +6,35 @@ The table below lists the APIs changes of the Window Manager subsystem in OpenHa | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| -| ohos.window | Window | setTouchable(isTouchable: boolean): Promise;
setTouchable(isTouchable: boolean, callback: AsyncCallback): void; | Added| -| ohos.window | Window | setPrivacyMode(isPrivacyMode: boolean): Promise;
setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback): void; | Added| -| ohos.window | Window | setOutsideTouchable(touchable: boolean): Promise;
setOutsideTouchable(touchable: boolean, callback: AsyncCallback): void; | Added| -| ohos.window | Window | setKeepScreenOn(isKeepScreenOn: boolean): Promise;
setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback): void; | Added| -| ohos.window | Window | setFocusable(isFocusable: boolean): Promise;
setFocusable(isFocusable: boolean, callback: AsyncCallback): void; | Added| -| ohos.window | Window | setDimBehind(dimBehindValue: number, callback: AsyncCallback): void;
setDimBehind(dimBehindValue: number): Promise; | Added| -| ohos.window | Window | setBrightness(brightness: number): Promise;
setBrightness(brightness: number, callback: AsyncCallback): void; | Added| -| ohos.window | Window | setBackgroundColor(color: string): Promise;
setBackgroundColor(color: string, callback: AsyncCallback): void; | Added| -| ohos.window | Window | getColorSpace(): Promise;
getColorSpace(callback: AsyncCallback): void; | Added| -| ohos.window | Window | setColorSpace(colorSpace:ColorSpace): Promise;
setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback): void; | Added| -| ohos.window | Window | isSupportWideGamut(): Promise;
isSupportWideGamut(callback: AsyncCallback): void; | Added| -| ohos.window | Window | off(type: 'keyboardHeightChange', callback?: Callback): void; | Added| -| ohos.window | Window | on(type: 'keyboardHeightChange', callback: Callback): void; | Added| -| ohos.window | Window | off(type: 'systemAvoidAreaChange', callback?: Callback): void; | Added| -| ohos.window | Window | on(type: 'systemAvoidAreaChange', callback: Callback): void; | Added| -| ohos.window | Window | off(type: 'windowSizeChange', callback?: Callback): void; | Added| -| ohos.window | Window | on(type: 'windowSizeChange', callback: Callback): void; | Added| -| ohos.window | Window | isShowing(callback: AsyncCallback): void;
isShowing(): Promise; | Added| -| ohos.window | Window | loadContent(path: string, callback: AsyncCallback): void;
loadContent(path: string): Promise; | Added| -| ohos.window | Window | setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback): void;
setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise; | Added| -| ohos.window | Window | setSystemBarEnable(names: Array<'status'\|'navigation'>, callback: AsyncCallback): void;
setSystemBarEnable(names: Array<'status'\|'navigation'>): Promise; | Added| -| ohos.window | Window | setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback): void;
setLayoutFullScreen(isLayoutFullScreen: boolean): Promise; | Added| -| ohos.window | Window | setFullScreen(isFullScreen: boolean, callback: AsyncCallback): void;
setFullScreen(isFullScreen: boolean): Promise; | Added| -| ohos.window | Window | getAvoidArea(type: AvoidAreaType, callback: AsyncCallback): void;
getAvoidArea(type: AvoidAreaType): Promise; | Added| -| ohos.window | Window | getProperties(callback: AsyncCallback): void;
getProperties(): Promise; | Added| -| ohos.window | Window | destroy(callback: AsyncCallback): void;
destroy(): Promise; | Added| -| ohos.window | Window | show(callback: AsyncCallback): void;
show(): Promise; | Added| -| ohos.window | window | function find(id: string, callback: AsyncCallback): void;
function find(id: string): Promise; | Added| -| ohos.window | window | function create(id: string, type: WindowType, callback: AsyncCallback): void;
function create(id: string, type: WindowType): Promise;
function create(ctx: Context, id: string, type: WindowType): Promise;
function create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback): void; | Added| +| ohos.window | Window | setTouchable(isTouchable: boolean): Promise\;
setTouchable(isTouchable: boolean, callback: AsyncCallback\): void; | Added| +| ohos.window | Window | setPrivacyMode(isPrivacyMode: boolean): Promise\;
setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback\): void; | Added| +| ohos.window | Window | setOutsideTouchable(touchable: boolean): Promise\;
setOutsideTouchable(touchable: boolean, callback: AsyncCallback\): void; | Added| +| ohos.window | Window | setKeepScreenOn(isKeepScreenOn: boolean): Promise\;
setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback\): void; | Added| +| ohos.window | Window | setFocusable(isFocusable: boolean): Promise\;
setFocusable(isFocusable: boolean, callback: AsyncCallback\): void; | Added| +| ohos.window | Window | setDimBehind(dimBehindValue: number, callback: AsyncCallback\): void;
setDimBehind(dimBehindValue: number): Promise\; | Added| +| ohos.window | Window | setBrightness(brightness: number): Promise\;
setBrightness(brightness: number, callback: AsyncCallback\): void; | Added| +| ohos.window | Window | setBackgroundColor(color: string): Promise\;
setBackgroundColor(color: string, callback: AsyncCallback\): void; | Added| +| ohos.window | Window | getColorSpace(): Promise\;
getColorSpace(callback: AsyncCallback\): void; | Added| +| ohos.window | Window | setColorSpace(colorSpace:ColorSpace): Promise\;
setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback\): void; | Added| +| ohos.window | Window | isSupportWideGamut(): Promise\;
isSupportWideGamut(callback: AsyncCallback\): void; | Added| +| ohos.window | Window | off(type: 'keyboardHeightChange', callback?: Callback\): void; | Added| +| ohos.window | Window | on(type: 'keyboardHeightChange', callback: Callback\): void; | Added| +| ohos.window | Window | off(type: 'systemAvoidAreaChange', callback?: Callback\): void; | Added| +| ohos.window | Window | on(type: 'systemAvoidAreaChange', callback: Callback\): void; | Added| +| ohos.window | Window | off(type: 'windowSizeChange', callback?: Callback\): void; | Added| +| ohos.window | Window | on(type: 'windowSizeChange', callback: Callback\): void; | Added| +| ohos.window | Window | isShowing(callback: AsyncCallback\): void;
isShowing(): Promise\; | Added| +| ohos.window | Window | loadContent(path: string, callback: AsyncCallback\): void;
loadContent(path: string): Promise\; | Added| +| ohos.window | Window | setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback\): void;
setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise\; | Added| +| ohos.window | Window | setSystemBarEnable(names: Array\<'status'\|'navigation'>, callback: AsyncCallback\): void;
setSystemBarEnable(names: Array\<'status'\|'navigation'>): Promise\; | Added| +| ohos.window | Window | setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback\): void;
setLayoutFullScreen(isLayoutFullScreen: boolean): Promise\; | Added| +| ohos.window | Window | setFullScreen(isFullScreen: boolean, callback: AsyncCallback\): void;
setFullScreen(isFullScreen: boolean): Promise\; | Added| +| ohos.window | Window | getAvoidArea(type: AvoidAreaType, callback: AsyncCallback\): void;
getAvoidArea(type: AvoidAreaType): Promise\; | Added| +| ohos.window | Window | getProperties(callback: AsyncCallback\): void;
getProperties(): Promise\; | Added| +| ohos.window | Window | destroy(callback: AsyncCallback\): void;
destroy(): Promise\; | Added| +| ohos.window | Window | show(callback: AsyncCallback\): void;
show(): Promise\; | Added| +| ohos.window | window | find(id: string, callback: AsyncCallback\): void;
find(id: string): Promise\; | Added| +| ohos.window | window | create(id: string, type: WindowType, callback: AsyncCallback\): void;
create(id: string, type: WindowType): Promise\;
create(ctx: Context, id: string, type: WindowType): Promise\;
create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback\): void; | Added| | ohos.window | ColorSpace | WIDE_GAMUT | Added| | ohos.window | ColorSpace | DEFAULT | Added| | ohos.window | WindowProperties | isTransparent: boolean | Added| @@ -87,11 +87,11 @@ The table below lists the APIs changes of the Window Manager subsystem in OpenHa | ohos.display | DisplayState | STATE_ON | Added| | ohos.display | DisplayState | STATE_OFF | Added| | ohos.display | DisplayState | STATE_UNKNOWN = 0 | Added| -| ohos.display | display | function off(type: 'add' \| 'remove' \| 'change', callback?: Callback): void; | Added| -| ohos.display | display | function off(type: 'add' \| 'remove' \| 'change', callback?: Callback): void; | Added| -| ohos.display | display | function off(type: 'add' \| 'remove' \| 'change', callback?: Callback): void; | Added| -| ohos.display | display | function on(type: 'add' \| 'remove' \| 'change', callback: Callback): void; | Added| -| ohos.display | display | function on(type: 'add' \| 'remove' \| 'change', callback: Callback): void; | Added| -| ohos.display | display | function on(type: 'add' \| 'remove' \| 'change', callback: Callback): void; | Added| -| ohos.display | display | function getAllDisplay(callback: AsyncCallback>): void;
function getAllDisplay(): Promise>; | Added| -| ohos.display | display | function getDefaultDisplay(callback: AsyncCallback): void;
function getDefaultDisplay(): Promise; | Added| +| ohos.display | display | off(type: 'add' \| 'remove' \| 'change', callback?: Callback\): void; | Added| +| ohos.display | display | off(type: 'add' \| 'remove' \| 'change', callback?: Callback\): void; | Added| +| ohos.display | display | off(type: 'add' \| 'remove' \| 'change', callback?: Callback\): void; | Added| +| ohos.display | display | on(type: 'add' \| 'remove' \| 'change', callback: Callback\): void; | Added| +| ohos.display | display | on(type: 'add' \| 'remove' \| 'change', callback: Callback\): void; | Added| +| ohos.display | display | on(type: 'add' \| 'remove' \| 'change', callback: Callback\): void; | Added| +| ohos.display | display | getAllDisplay(callback: AsyncCallback\>): void;
getAllDisplay(): Promise\>; | Added| +| ohos.display | display | getDefaultDisplay(callback: AsyncCallback\): void;
getDefaultDisplay(): Promise\; | Added| diff --git a/en/release-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md b/en/release-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md index 6c35b8f2444037cbff85579e3863982163774e45..901409e14369c844c66f93690ee26f06f1b0c0be 100644 --- a/en/release-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md +++ b/en/release-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md @@ -4,28 +4,28 @@ This document describes the changes of APIs in OpenHarmony 3.1 Beta when compare ## Standard System API Changes -| Module| API| Change Type| Change Description| +| Module| API | Change Type| Change Description | | -------- | -------- | -------- | -------- | -| System Application - settings| getUri(name: string): string | Added| Added the API for obtaining the URI of a string.| +| System Application - settings| getUri(name: string): string | Added | Added the API for obtaining the URI of a string.| | System Application - settings| getValue(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string | Added| Added the API for obtaining the value of a string in the database.| | System Application - settings| setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean | Added| Added the API for saving a string name and its value in the database.| -| Misc Services - systemTime| getCurrentTime(callback: AsyncCallback): void | Added| Added the API for obtaining the number of milliseconds elapsed since the Unix epoch.| -| Misc Services - systemTime| getCurrentTime(): Promise | Added| Added the API for obtaining the number of milliseconds elapsed since the Unix epoch.| -| Misc Services - systemTime| getCurrentTimeNs(callback: AsyncCallback): void | Added| Added the API for obtaining the number of nanoseconds elapsed since the Unix epoch.| -| Misc Services - systemTime| getCurrentTimeNs(): Promise | Added| Added the API for obtaining the number of nanoseconds elapsed since the Unix epoch.| -| Misc Services - systemTime| getRealActiveTime(callback: AsyncCallback): void | Added| Added the API for obtaining the number of milliseconds elapsed since the system boot, excluding the deep sleep time.| -| Misc Services - systemTime| getRealActiveTime(): Promise | Added| Added the API for obtaining the number of milliseconds elapsed since the system boot, excluding the deep sleep time.| -| Misc Services - systemTime| getRealActiveTimeNs(callback: AsyncCallback): void | Added| Added the API for obtaining the number of nanoseconds elapsed since the system boot, excluding the deep sleep time.| -| Misc Services - systemTime| getRealActiveTimeNs(): Promise | Added| Added the API for obtaining the number of nanoseconds elapsed since the system boot, excluding the deep sleep time.| -| Misc Services - systemTime| getRealTime(callback: AsyncCallback): void | Added| Added the API for obtaining the number of milliseconds elapsed since the system boot, including the deep sleep time.| -| Misc Services - systemTime| getRealTime(): Promise | Added| Added the API for obtaining the number of milliseconds elapsed since the system boot, including the deep sleep time.| -| Misc Services - systemTime| getRealTimeNs(callback: AsyncCallback): void | Added| Added the API for obtaining the number of nanoseconds elapsed since the system boot, including the deep sleep time.| -| Misc Services - systemTime| getRealTimeNs(): Promise | Added| Added the API for obtaining the number of nanoseconds elapsed since the system boot, including the deep sleep time.| -| Misc Services - systemTime| getDate(callback: AsyncCallback): void | Added| Added the API for obtaining the system date.| -| Misc Services - systemTime| getDate(): Promise | Added| Added the API for obtaining the system date.| -| Misc Services - systemTime| getTimeZone(callback: AsyncCallback): void | Added| Added the API for obtaining the system time zone.| -| Misc Services - systemTime| getTimeZone(): Promise | Added| Added the API for obtaining the system time zone.| -| ArkUI Framework - Universal Events| onAreaChange (Component Area Change Event)| Added| Added the API for subscribing to component area (including the size and position) changes.| +| Misc Services - systemTime| getCurrentTime(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of milliseconds elapsed since the Unix epoch. | +| Misc Services - systemTime| getCurrentTime(): Promise\ | Added | Added the API for obtaining the number of milliseconds elapsed since the Unix epoch. | +| Misc Services - systemTime| getCurrentTimeNs(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of nanoseconds elapsed since the Unix epoch. | +| Misc Services - systemTime| getCurrentTimeNs(): Promise\ | Added | Added the API for obtaining the number of nanoseconds elapsed since the Unix epoch. | +| Misc Services - systemTime| getRealActiveTime(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of milliseconds elapsed since the system boot, excluding the deep sleep time.| +| Misc Services - systemTime| getRealActiveTime(): Promise\ | Added | Added the API for obtaining the number of milliseconds elapsed since the system boot, excluding the deep sleep time.| +| Misc Services - systemTime| getRealActiveTimeNs(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of nanoseconds elapsed since the system boot, excluding the deep sleep time.| +| Misc Services - systemTime| getRealActiveTimeNs(): Promise\ | Added | Added the API for obtaining the number of nanoseconds elapsed since the system boot, excluding the deep sleep time.| +| Misc Services - systemTime| getRealTime(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of milliseconds elapsed since the system boot, including the deep sleep time. | +| Misc Services - systemTime| getRealTime(): Promise\ | Added | Added the API for obtaining the number of milliseconds elapsed since the system boot, including the deep sleep time. | +| Misc Services - systemTime| getRealTimeNs(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of nanoseconds elapsed since the system boot, including the deep sleep time. | +| Misc Services - systemTime| getRealTimeNs(): Promise\ | Added | Added the API for obtaining the number of nanoseconds elapsed since the system boot, including the deep sleep time. | +| Misc Services - systemTime| getDate(callback: AsyncCallback\): void | Added | Added the API for obtaining the current time. | +| Misc Services - systemTime| getDate(): Promise\ | Added | Added the API for obtaining the current time. | +| Misc Services - systemTime| getTimeZone(callback: AsyncCallback\): void | Added | Added the API for obtaining the system time zone. | +| Misc Services - systemTime| getTimeZone(): Promise\ | Added | Added the API for obtaining the system time zone. | +| ArkUI Framework - Universal Events | onAreaChange| Added | Added the event indicating component area (including the size and position) changes.| | ArkUI Framework - Universal Attributes| responseRegion| Added| Added the attribute for touch hotspot settings.| | ArkUI Framework - Universal Attributes| touchable| Added| Added the attribute that specifies whether a component is touchable.| | ArkUI Framework - Universal Attributes| stateStyle| Added| Added the attribute that specifies the styles of the pressed and disabled states of a component.| @@ -42,27 +42,27 @@ This document describes the changes of APIs in OpenHarmony 3.1 Beta when compare | ArkUI Framework - Canvas Components| Canvas | Added| Added the **\** component.| | ArkUI Framework - Canvas Components| Lottie | Added| Added the support for the Lottie library.| | ArkUI Framework - Global UI Methods| ActionSheet | Added| Added the support for the list selection dialog box.| -| USB Service - USB| getDevices(): Array> | Added| Added the API for obtaining USB devices.| -| USB Service - USB| connectDevice(device: USBDevice): Readonly | Added| Added the API for opening a USB device based on the device information returned by **getDevices()**.| +| USB Service - USB| getDevices(): Array\> | Added | Added the API for obtaining USB devices.| +| USB Service - USB| connectDevice(device: USBDevice): Readonly\ | Added| Added the API for opening a USB device based on the device information returned by **getDevices()**.| | USB Service - USB| hasRight(deviceName: string): boolean | Added| Added the API for checking whether the caller has the permission to access the USB device.| -| USB Service - USB| requestRight(deviceName: string): Promise | Added| Added the API for requesting the temporary permission for the caller to access the USB device.| +| USB Service - USB| requestRight(deviceName: string): Promise\ | Added| Added the API for requesting the temporary permission for the caller to access the USB device.| | USB Service - USB| claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number | Added| Added the API for claiming a USB interface.| | USB Service - USB| releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number | Added| Added the API for releasing a USB interface.| | USB Service - USB| setConfiguration(pipe: USBDevicePipe, config: USBConfig): number | Added| Added the API for setting USB device configurations.| | USB Service - USB| setInterface(pipe: USBDevicePipe, iface: USBInterface): number | Added| Added the API for setting USB device interfaces.| | USB Service - USB| getRawDescriptor(pipe: USBDevicePipe): Uint8Array | Added| Added the API for obtaining the raw USB descriptor.| | USB Service - USB| getFileDescriptor(pipe: USBDevicePipe): number | Added| Added the API for obtaining the file descriptor.| -| USB Service - USB| controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise | Added| Added the API for control transfer.| -| USB Service - USB| bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout?: number): Promise | Added| Added the API for bulk transfer.| +| USB Service - USB| controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise\ | Added| Added the API for control transfer.| +| USB Service - USB| bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout?: number): Promise\ | Added| Added the API for bulk transfer.| | USB Service - USB| closePipe(pipe: USBDevicePipe): number | Added| Added the API for closing the USB device pipe.| -| Application Framework - bundle| function cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback): void;
function cleanBundleCacheFiles(bundleName: string): Promise; | Added| Added the APIs for clearing the cache of an application.| -| Application Framework - bundle| function setApplicationEnabled(bundleName: string, isEnable: boolean, callback: AsyncCallback): void;
function setApplicationEnabled(bundleName: string, isEnable: boolean): Promise; | Added| Added the API for setting whether to enable an application.| -| Application Framework - bundle| function setAbilityEnabled(info: AbilityInfo, isEnable: boolean, callback: AsyncCallback): void;
function setAbilityEnabled(info: AbilityInfo, isEnable: boolean): Promise; | Added| Added the APIs for setting whether to enable an ability.| -| Application Framework - bundle.innerBundleManager| function getLauncherAbilityInfos(bundleName: string, userId: number, callback: AsyncCallback>) : void;
function getLauncherAbilityInfos(bundleName: string, userId: number) : Promise>; | Added| Added the APIs for obtaining the launcher ability information by **bundleName**.| -| Application Framework - bundle.innerBundleManager| function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback, callback: AsyncCallback) : void;
function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback): Proimise; | Added| Added the APIs for subscribing to bundle status changes.| -| Application Framework - bundle.innerBundleManager| function off(type:"BundleStatusChange", callback: AsyncCallback) : void;
function off(type:"BundleStatusChange"): Proimise; | Added| Added the APIs for unsubscribing from bundle status changes.| -| Application Framework - bundle.innerBundleManager| function getAllLauncherAbilityInfos(userId: number, callback: AsyncCallback>) : void;
function getAllLauncherAbilityInfos(userId: number) : Promise>; | Added| Added the APIs for obtaining the application abilities on all launchers by **userId**.| -| Application Framework - bundle.innerBundleManager| function getShortcutInfos(bundleName :string, callback: AsyncCallback>) : void;
function getShortcutInfos(bundleName : string) : Promise>; | Added| Added the APIs for obtaining the application shortcut information by **bundleName**.| +| Application Framework - bundle | cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback\): void;
cleanBundleCacheFiles(bundleName: string): Promise\; | Added | Added the APIs for clearing the cache of an application. | +| Application Framework - bundle | setApplicationEnabled(bundleName: string, isEnable: boolean, callback: AsyncCallback\): void;
setApplicationEnabled(bundleName: string, isEnable: boolean): Promise\; | Added | Added the API for setting whether to enable an application. | +| Application Framework - bundle | setAbilityEnabled(info: AbilityInfo, isEnable: boolean, callback: AsyncCallback\): void;
setAbilityEnabled(info: AbilityInfo, isEnable: boolean): Promise\; | Added | Added the API for setting whether to enable an ability. | +| Application Framework - bundle.innerBundleManager| getLauncherAbilityInfos(bundleName: string, userId: number, callback: AsyncCallback\>) : void;
getLauncherAbilityInfos(bundleName: string, userId: number) : Promise\>; | Added | Added the API for obtaining the launcher ability information by **bundleName**. | +| Application Framework - bundle.innerBundleManager| on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback, callback: AsyncCallback\) : void;
on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback): Proimise\; | Added | Added the API for subscribing to bundle status changes. | +| Application Framework - bundle.innerBundleManager| off(type:"BundleStatusChange", callback: AsyncCallback\) : void;
off(type:"BundleStatusChange"): Proimise\; | Added | Added the APIs for unsubscribing from bundle status changes. | +| Application Framework - bundle.innerBundleManager| getAllLauncherAbilityInfos(userId: number, callback: AsyncCallback\>) : void;
getAllLauncherAbilityInfos(userId: number) : Promise\>; | Added | Added the APIs for obtaining the application abilities on all launchers by **userId**.| +| Application Framework - bundle.innerBundleManager| getShortcutInfos(bundleName :string, callback: AsyncCallback\>) : void;
getShortcutInfos(bundleName : string) : Promise\>; | Added | Added the API for obtaining the application shortcut information by **bundleName**. | | DSoftBus - rpc.MessageParcel| writeNoException(): void | Added| - | | DSoftBus - rpc.MessageParcel| readException(): void | Added| - | | DSoftBus - rpc.MessageParcel| writeRemoteObjectArray(objectArray: IRemoteObject[]): boolean | Added| - | @@ -79,7 +79,7 @@ This document describes the changes of APIs in OpenHarmony 3.1 Beta when compare | DSoftBus - rpc.MessageParcel| getRawDataCapacity(): number | Added| - | | DSoftBus - rpc.MessageParcel| writeRawData(rawData: number[], size: number): boolean | Added| - | | DSoftBus - rpc.MessageParcel| readRawData(size: number): number[] | Added| - | -| DSoftBus - rpc| interface SendRequestResult {
errCode: number;

code: number;

data: MessageParcel;

reply: MessageParcel;
} | Added| - | +| DSoftBus - rpc| interface SendRequestResult {
errCode: number;
code: number;
data: MessageParcel;
reply: MessageParcel;
} | Added| - | | DSoftBus - rpc.Ashmem| PROT_EXEC = 4 | Added| - | | DSoftBus - rpc.Ashmem| PROT_NONE = 0 | Added| - | | DSoftBus - rpc.Ashmem| PROT_READ = 1 | Added| - | @@ -96,14 +96,14 @@ This document describes the changes of APIs in OpenHarmony 3.1 Beta when compare | DSoftBus - rpc.Ashmem| writeToAshmem(buf: number[], size: number, offset: number): boolean | Added| - | | DSoftBus - rpc.Ashmem| readFromAshmem(size: number, offset: number): number[] | Added| - | | DSoftBus - rpc.IRemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean | Deprecated| Replaced by an asynchronous interface, which uses a promise or callback.| -| DSoftBus - rpc.IRemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise | Added| - | -| DSoftBus - rpc.IRemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback): void | Added| - | +| DSoftBus - rpc.IRemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\ | Added| - | +| DSoftBus - rpc.IRemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback\): void | Added| - | | DSoftBus - rpc.RemoteProxy| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean | Deprecated| Replaced by an asynchronous interface, which uses a promise or callback.| -| DSoftBus - rpc.RemoteProxy| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise | Added| - | -| DSoftBus - rpc.RemoteProxy| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback): void | Added| - | +| DSoftBus - rpc.RemoteProxy| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\ | Added| - | +| DSoftBus - rpc.RemoteProxy| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback\): void | Added| - | | DSoftBus - rpc.RemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean | Deprecated| Replaced by an asynchronous interface, which uses a promise or callback.| -| DSoftBus - rpc.RemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise | Added| - | -| DSoftBus - rpc.RemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback): void | Added| - | +| DSoftBus - rpc.RemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\ | Added| - | +| DSoftBus - rpc.RemoteObject| sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback\): void | Added| - | | DSoftBus - rpc.IRemoteObject| PING_TRANSACTION | Deleted| Deleted since it is not implemented in API Version 7. The deletion has no impact on existing applications.| | DSoftBus - rpc.IRemoteObject| DUMP_TRANSACTION | Deleted| Deleted since it is not implemented in API Version 7. The deletion has no impact on existing applications.| | DSoftBus - rpc.IRemoteObject| INTERFACE_TRANSACTION | Deleted| Deleted since it is not implemented in API Version 7. The deletion has no impact on existing applications.| @@ -124,304 +124,304 @@ This document describes the changes of APIs in OpenHarmony 3.1 Beta when compare | DSoftBus - rpc.Proxy| MIN_TRANSACTION_ID = 0x1 | Added| - | | DSoftBus - rpc.Proxy| MAX_TRANSACTION_ID = 0x00FFFFFF | Added| - | | DSoftBus - rpc.Proxy| queryLocalInterface(interface: string): IRemoteBroker | Modified| Corrected the return type to **IRemoteBroker**. This change does not affect existing applications.| -| DSoftBus - Wi-Fi| function getLinkedInfo(): Promise;
function getLinkedInfo(callback: AsyncCallback): void;| Added| - | -| DSoftBus - Wi-Fi| function isConnected(): boolean;| Added| - | -| DSoftBus - Wi-Fi| function getSupportedFeatures(): number;| Added| - | -| DSoftBus - Wi-Fi| function isFeatureSupported(featureId: number): boolean;| Added| - | -| DSoftBus - Wi-Fi| function getDeviceMacAddress(): string[];| Added| - | -| DSoftBus - Wi-Fi| function getIpInfo(): IpInfo;| Added| - | -| DSoftBus - Wi-Fi| function getCountryCode(): string;| Added| - | -| DSoftBus - Wi-Fi| function reassociate(): boolean;| Added| - | -| DSoftBus - Wi-Fi| function reconnect(): boolean;| Added| - | -| DSoftBus - Wi-Fi| function getDeviceConfigs(): Array;| Added| - | -| DSoftBus - Wi-Fi| function updateNetwork(config: WifiDeviceConfig): number;| Added| - | -| DSoftBus - Wi-Fi| function disableNetwork(netId: number): boolean;| Added| - | -| DSoftBus - Wi-Fi| function removeAllNetwork(): boolean;| Added| - | -| DSoftBus - Wi-Fi| function removeDevice(id: number): boolean;| Added| - | -| DSoftBus - Wi-Fi| function enableHotspot(): boolean;| Added| - | -| DSoftBus - Wi-Fi| function disableHotspot(): boolean;| Added| - | -| DSoftBus - Wi-Fi| function isHotspotActive(): boolean;| Added| - | -| DSoftBus - Wi-Fi| function setHotspotConfig(config: HotspotConfig): boolean;| Added| - | -| DSoftBus - Wi-Fi| function getHotspotConfig(): HotspotConfig;| Added| - | -| DSoftBus - Wi-Fi| function getStations(): Array;| Added| - | -| DSoftBus - Wi-Fi| function on(type: "wifiStateChange", callback: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function off(type: "wifiStateChange", callback?: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function on(type: "wifiConnectionChange", callback: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function off(type: "wifiConnectionChange", callback?: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function on(type: "wifiScanStateChange", callback: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function off(type: "wifiScanStateChange", callback?: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function on(type: "wifiRssiChange", callback: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function off(type: "wifiRssiChange", callback?: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function on(type: "hotspotStateChange", callback: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function off(type: "hotspotStateChange", callback?: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function on(type: "hotspotStaJoin", callback: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function off(type: "hotspotStaJoin", callback?: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function on(type: "hotspotStaLeave", callback: Callback): void;| Added| - | -| DSoftBus - Wi-Fi| function off(type: "hotspotStaLeave", callback?: Callback): void;| Added| - | -| Globalization - resourceManager| getRawFile(path: string, callback: AsyncCallback);
getRawFile(path: string): Promise;| Added| - | +| DSoftBus - Wi-Fi| getLinkedInfo(): Promise\;
getLinkedInfo(callback: AsyncCallback\): void; | Added| - | +| DSoftBus - Wi-Fi| isConnected(): boolean; | Added| - | +| DSoftBus - Wi-Fi| getSupportedFeatures(): number; | Added| - | +| DSoftBus - Wi-Fi| isFeatureSupported(featureId: number): boolean; | Added| - | +| DSoftBus - Wi-Fi| getDeviceMacAddress(): string[]; | Added| - | +| DSoftBus - Wi-Fi| getIpInfo(): IpInfo; | Added| - | +| DSoftBus - Wi-Fi| getCountryCode(): string; | Added| - | +| DSoftBus - Wi-Fi| reassociate(): boolean; | Added| - | +| DSoftBus - Wi-Fi| reconnect(): boolean; | Added| - | +| DSoftBus - Wi-Fi| getDeviceConfigs(): Array\; | Added| - | +| DSoftBus - Wi-Fi| updateNetwork(config: WifiDeviceConfig): number; | Added| - | +| DSoftBus - Wi-Fi| disableNetwork(netId: number): boolean; | Added| - | +| DSoftBus - Wi-Fi| removeAllNetwork(): boolean; | Added| - | +| DSoftBus - Wi-Fi| removeDevice(id: number): boolean; | Added| - | +| DSoftBus - Wi-Fi| enableHotspot(): boolean; | Added| - | +| DSoftBus - Wi-Fi| disableHotspot(): boolean; | Added| - | +| DSoftBus - Wi-Fi| isHotspotActive(): boolean; | Added| - | +| DSoftBus - Wi-Fi| setHotspotConfig(config: HotspotConfig): boolean; | Added| - | +| DSoftBus - Wi-Fi| getHotspotConfig(): HotspotConfig; | Added| - | +| DSoftBus - Wi-Fi| getStations(): Array\; | Added| - | +| DSoftBus - Wi-Fi| on(type: "wifiStateChange", callback: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| off(type: "wifiStateChange", callback?: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| on(type: "wifiConnectionChange", callback: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| off(type: "wifiConnectionChange", callback?: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| on(type: "wifiScanStateChange", callback: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| off(type: "wifiScanStateChange", callback?: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| on(type: "wifiRssiChange", callback: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| off(type: "wifiRssiChange", callback?: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| on(type: "hotspotStateChange", callback: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| off(type: "hotspotStateChange", callback?: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| on(type: "hotspotStaJoin", callback: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| off(type: "hotspotStaJoin", callback?: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| on(type: "hotspotStaLeave", callback: Callback\): void; | Added| - | +| DSoftBus - Wi-Fi| off(type: "hotspotStaLeave", callback?: Callback\): void; | Added| - | +| Globalization - resourceManager| getRawFile(path: string, callback: AsyncCallback\);
getRawFile(path: string): Promise\; | Added| - | | Globalization - Intl| RelativeTimeFormat.constructor(); | Added| Added this constructor.| -| Globalization - Intl| RelativeTimeFormat.constructor(locale: string \| Array, options?: RelativeTimeFormatInputOptions); | Added| Added this constructor. | +| Globalization - Intl| RelativeTimeFormat.constructor(locale: string \| Array\, options?: RelativeTimeFormatInputOptions); | Added| Added this constructor.| | Globalization - Intl| RelativeTimeFormat.format(value: number, unit: string): string; | Added| Added the API for formatting the relative time.| -| Globalization - Intl| RelativeTimeFormat.formatToParts(value: number, unit: string): Array; | Added| Added the API for formatting the relative time. The result is divided into multiple parts and stored separately.| -| Globalization - Intl| RelativeTimeFormat.formatToParts(value: number, unit: string): Array; | Added| Added the API for formatting the relative time. The result is divided into multiple parts and stored separately.| +| Globalization - Intl| RelativeTimeFormat.formatToParts(value: number, unit: string): Array\; | Added| Added the API for formatting the relative time. The result is divided into multiple parts and stored separately.| +| Globalization - Intl| RelativeTimeFormat.formatToParts(value: number, unit: string): Array\; | Added| Added the API for formatting the relative time. The result is divided into multiple parts and stored separately.| | Globalization - Intl| PluralRules.constructor(); | Added| Added this constructor.| -| Globalization - Intl| PluralRules.constructor(locale: string \| Array, options?: PluralRulesOptions); | Added| Added this constructor.| +| Globalization - Intl| PluralRules.constructor(locale: string \| Array\, options?: PluralRulesOptions); | Added| Added this constructor.| | Globalization - Intl| PluralRules.select(n: number): string; | Added| Added the API for checking the singular-plural type of a number.| | Globalization - Intl| Collator.constructor(); | Added| Added this constructor.| -| Globalization - Intl| Collator.constructor(locale: string \| Array, options?: CollatorOptions); | Added| Added this constructor.| +| Globalization - Intl| Collator.constructor(locale: string \| Array\, options?: CollatorOptions); | Added| Added this constructor.| | Globalization - Intl| Collator.compare(first: string, second: string): number; | Added| Added the API for comparing two strings.| | Globalization - Intl| Collator.resolvedOptions(): CollatorOptions; | Added| Added the API for obtaining the attributes of a sorting object.| -| Globalization - I18N| function unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: **number**, locale: **string**, style?: **string**): **string**; | Added| Added the API for unit conversion.| -| Globalization - I18N| function **constructor**(country: **string**, options?: PhoneNumberFormatOptions);
function isValidNumber(**number**: **string**): boolean;
function format(**number**: **string**): **string**; | Added| Added the APIs for formatting phone numbers.| -| Globalization - I18N| function setTime(date: Date);
function setTime(time: **number**);
function **set**(year: **number**, month: **number**, date:**number**, hour?: **number**, minute?: **number**, second?: **number**);
function setTimeZone(timezone: **string**);
function getTimeZone(): **string**;
function getFirstDayOfWeek(): **number**;
function setFirstDayOfWeek(value: **number**);
function getMinimalDaysInFirstWeek(): **number**;
function setMinimalDaysInFirstWeek(value: **number**);
function **get**(field: **string**): **number**;
function getDisplayName(locale: **string**): **string**;
function isWeekend(date?: Date): boolean;
function **export** **function** getCalendar(locale: **string**, **type**?: **string**): Calendar; | Added| Added the APIs for the calendar.| -| Globalization - I18N| **function** isRTL(locale: **string**): boolean; | Added| Added the API for checking whether the localized script for the specified language is displayed from right to left.| -| Globalization - I18N| **function** getLineInstance(locale: **string**): BreakIterator;
function current(): **number**;
function first(): **number**;
function last(): **number**;
function next(index?: **number**): **number**;
function previous(): **number**;
function setLineBreakText(text: **string**): **void**;
function following(offset: **number**): **number**;
function getLineBreakText(): **string**;
function isBoundary(offset: **number**): boolean; | Added| Added the APIs for line feed.| -| Globalization - I18N| function getInstance(locale?:**string**): IndexUtil;
function getIndexList(): Array<**string**>; | Added| Added the APIs for obtaining the alphabet index.| -| Globalization - I18N| function addLocale(locale: **string**);
function getIndex(text: **string**): **string**;
function isDigit(char: **string**): boolean;
function isSpaceChar(char: **string**): boolean;
function isWhitespace(char: **string**): boolean;
function isRTL(char: **string**): boolean;
function isIdeograph(char: **string**): boolean;
function isLetter(char: **string**): boolean;
function isLowerCase(char: **string**): boolean;
function isUpperCase(char: **string**): boolean;
function getType(char: **string**): **string**; | Added| Added the APIs for obtaining character attributes.| -| Event Notification - DoNotDisturbDate| type: notification.DoNotDisturbType | Added| Added the do-not-disturb (DND) time type.| +| Globalization - I18N| unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string; | Added| Added the API for unit conversion.| +| Globalization - I18N| constructor(country: string, options?: PhoneNumberFormatOptions);
isValidNumber(number: string): boolean;
format(number: string): string; | Added| Added the APIs for formatting phone numbers.| +| Globalization - I18N| setTime(date: Date);
setTime(time: number);
set(year: number, month: number, date:number, hour?: number, minute?: number, second?: number);
setTimeZone(timezone: string);
getTimeZone(): string;
getFirstDayOfWeek(): number;
setFirstDayOfWeek(value: number);
getMinimalDaysInFirstWeek(): number;
setMinimalDaysInFirstWeek(value: number);
get(field: string): number;
getDisplayName(locale: string): string;
isWeekend(date?: Date): boolean;
export getCalendar(locale: string, type?: string): Calendar; | Added| Added the APIs for the calendar.| +| Globalization - I18N| isRTL(locale: string): boolean; | Added| Added the API for checking whether the localized script for the specified language is displayed from right to left.| +| Globalization - I18N| getLineInstance(locale: string): BreakIterator;
current(): number;
first(): number;
last(): number;
next(index?: number): number;
previous(): number;
setLineBreakText(text: string): void;
following(offset: number): number;
getLineBreakText(): string;
isBoundary(offset: number): boolean; | Added| Added the APIs for line feed.| +| Globalization - I18N| getInstance(locale?:string): IndexUtil;
getIndexList(): Array\; | Added| Added the APIs for obtaining the alphabet index.| +| Globalization - I18N| addLocale(locale: string);
getIndex(text: string): string;
isDigit(char: string): boolean;
isSpaceChar(char: string): boolean;
isWhitespace(char: string): boolean;
isRTL(char: string): boolean;
isIdeograph(char: string): boolean;
isLetter(char: string): boolean;
isLowerCase(char: string): boolean;
isUpperCase(char: string): boolean;
getType(char: string): string; | Added| Added the APIs for obtaining character attributes.| +| Event Notification - DoNotDisturbDate| type: notification.DoNotDisturbType | Added | Added the do-not-disturb (DND) time type.| | Event Notification - DoNotDisturbDate| begin: Date | Added| Added the DND start time setting.| | Event Notification - DoNotDisturbDate| end: Date | Added| Added the DND end time setting.| -| Event Notification - DoNotDisturbDate| export enum DoNotDisturbType {
TYPE_NONE = 0, // Non-notification DND type
TYPE_ONCE = 1, // One-shot DND at the specified time segment
TYPE_DAILY = 2, // Daily DND at the specified time segment (only the hour and minute specified)
TYPE_CLEARLY = 3, // DND at the specified time segment (the year, month, day, hour, and minute specified)
}| Added| Added the DND time type.| -| Event Notification - notification| function setDoNotDisturbDate(date DoNotDisturbDate, callback: AsyncCallback): void | Added| Added the API for setting the DND time segment.| -| Event Notification - notification| function setDoNotDisturbDate(date DoNotDisturbDate): Promise | Added| Added the API for setting the DND time segment.| -| Event Notification - notification| function getDoNotDisturbDate(callback: AsyncCallback): void | Added| Added the API for obtaining the DND time segment.| -| Event Notification - notification| function getDoNotDisturbDate(): Promise | Added| Added the API for obtaining the DND time segment.| -| Event Notification - notification| function supportDoNotDisturbMode(callback: AsyncCallback): void | Added| Added the API for checking whether DND is supported.| -| Event Notification - notification| function supportDoNotDisturbMode(): Promise | Added| Added the API for checking whether DND is supported.| -| Event Notification - notification| function cancelGroup(groupName: string, callback: AsyncCallback): void | Added| Added the API for canceling a notification group of the current application.| -| Event Notification - notification| function cancelGroup(groupName: string): Promise | Added| Added the API for canceling a notification group of the current application.| -| Event Notification - notification| function removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback): void | Added| Added the API for removing a notification group of a specified application.| -| Event Notification - notification| function removeGroupByBundle(bundle: BundleOption, groupName: string): Promise | Added| Added the API for removing a notification group of a specified application.| +| Event Notification - DoNotDisturbDate| export enum DoNotDisturbType {
TYPE_NONE = 0, // Non-notification DND type
TYPE_ONCE = 1, // One-shot DND at the specified time segment
TYPE_DAILY = 2, // Daily DND at the specified time segment (only the hour and minute specified)
TYPE_CLEARLY = 3, // DND at the specified time segment (the year, month, day, hour, and minute specified)
} | Added| Added the DND time type.| +| Event Notification - notification| setDoNotDisturbDate(date DoNotDisturbDate, callback: AsyncCallback\): void | Added| Added the API for setting the DND time segment.| +| Event Notification - notification| setDoNotDisturbDate(date DoNotDisturbDate): Promise\ | Added| Added the API for setting the DND time segment.| +| Event Notification - notification| getDoNotDisturbDate(callback: AsyncCallback\): void | Added| Added the API for obtaining the DND time segment.| +| Event Notification - notification| getDoNotDisturbDate(): Promise\ | Added| Added the API for obtaining the DND time segment.| +| Event Notification - notification| supportDoNotDisturbMode(callback: AsyncCallback\): void | Added| Added the API for checking whether DND is supported.| +| Event Notification - notification| supportDoNotDisturbMode(): Promise\ | Added| Added the API for checking whether DND is supported.| +| Event Notification - notification| cancelGroup(groupName: string, callback: AsyncCallback\): void | Added | Added the API for canceling a notification group of the current application. | +| Event Notification - notification | cancelGroup(groupName: string): Promise\ | Added| Added the API for canceling a notification group of the current application.| +| Event Notification - notification | removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback\): void | Added| Added the API for removing a notification group of a specified application.| +| Event Notification - notification | removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ | Added| Added the API for removing a notification group of a specified application.| | Event Notification - NotificationSubscriber| onDoNotDisturbDateChange?:(mode: notification.DoNotDisturbDate) => void | Added| Added the API for subscribing to DND setting changes.| | Event Notification - NotificationRequest| smallIcon?: image.PixelMap | Added| Added the small notification icon.| | Event Notification - NotificationRequest| largeIcon?: image.PixelMap; | Added| Added the large notification icon.| | Event Notification - NotificationRequest| groupName?: string; | Added| Added the notification group name.| -| Event Notification - NotificationUserInput| | Added| Added the user input object.| +| Event Notification - NotificationUserInput| | Added | Added the user input object.| | Event Notification - NotificationUserInput| inputKey: string | Added| Added a key to identify the user input.| | Event Notification - NotificationActionButton| userInput?: NotificationUserInput | Added| Added the user input object.| -| Event notification - emitter| function on(event: InnerEvent, callback: Callback): void | Added| Added the API for subscribing to an event in persistent manner and receiving the event callback.| -| Event notification - emitter| function once(event: InnerEvent, callback: Callback): void | Added| Added the API for subscribing to an event in one-shot manner and unsubscribing from it after the event is received via a callback.| -| Event notification - emitter| function off(eventId: number): void | Added| Added the API for unsubscribing from an event.| -| Event notification - emitter| function emit(event: InnerEvent, data?: EventData): void | Added| Added the API for emitting an event to the event queue.| -| Distributed File - statfs| function getFreeBytes(path: string, callback: AsyncCallback): void | Added| Added the API for obtaining the free space (in bytes) of a device using an asynchronous callback.| -| Distributed File - statfs| function getFreeBytes(path: string): Promise | Added| Added the API for obtaining the free space (in bytes) of a device using a promise.| -| Distributed File - statfs| function getTotalBytes(path: string, callback: AsyncCallback): void | Added| Added the API for obtaining the total space (in bytes) of a device using an asynchronous callback.| -| Distributed File - statfs| function getTotalBytes(path: string): Promise | Added| Added the API for obtaining the total space (in bytes) of a device using a promise.| -| Distributed Scheduler - featureAbility| function continueAbility(options: ContinueAbilityOptions, callback: AsyncCallback): void;
function continueAbility(options: ContinueAbilityOptions): Promise; | Added| - | +| Event notification - emitter| on(event: InnerEvent, callback: Callback\): void | Added| Added the API for subscribing to an event in persistent manner and receiving the event callback.| +| Event notification - emitter| once(event: InnerEvent, callback: Callback\): void | Added| Added the API for subscribing to an event in one-shot manner and unsubscribing from it after the event is received via a callback.| +| Event notification - emitter| off(eventId: number): void | Added| Added the API for unsubscribing from an event.| +| Event notification - emitter| emit(event: InnerEvent, data?: EventData): void | Added| Added the API for emitting an event to the event queue.| +| Distributed File - statfs| getFreeBytes(path: string, callback: AsyncCallback\): void | Added | Added the API for obtaining the free space (in bytes) of a device using an asynchronous callback.| +| Distributed File - statfs| getFreeBytes(path: string): Promise\ | Added| Added the API for obtaining the free space (in bytes) of a device using a promise.| +| Distributed File - statfs| getTotalBytes(path: string, callback: AsyncCallback\): void | Added| Added the API for obtaining the total space (in bytes) of a device using an asynchronous callback.| +| Distributed File - statfs| getTotalBytes(path: string): Promise\ | Added| Added the API for obtaining the total space (in bytes) of a device using a promise.| +| Distributed Scheduler - featureAbility | continueAbility(options: ContinueAbilityOptions, callback: AsyncCallback\): void;
continueAbility(options: ContinueAbilityOptions): Promise\; | Added | - | | Multi-language Runtime - URI| constructor(uri: string); | Added| | | Multi-language Runtime - URI| toString(): string | Added| | -| Multi-language Runtime - URI| equals(other: URI): boolean; | Added| | -| Multi-language Runtime - URI| checkIsAbsolute(): boolean; | Added| | -| Multi-language Runtime - URI| normalize(): URI; | Added| | -| Multi-language Runtime - URI| scheme: string; | Added| | -| Multi-language Runtime - URI| userinfo: string; | Added| | -| Multi-language Runtime - URI| host: string; | Added| | -| Multi-language Runtime - URI| port: string; | Added| | -| Multi-language Runtime - URI| path: string; | Added| | -| Multi-language Runtime - URI| query: string; | Added| | -| Multi-language Runtime - URI| query: string; | Added| | -| Multi-language Runtime - URI| authority: string; | Added| | -| Multi-language Runtime - URI| ssp: string; | Added| | -| Multi-language Runtime - RationalNumber| constructor(numerator: number, denominator: number); | Added| | -| Multi-language Runtime - RationalNumber| static createRationalFromString(rationalString: string): RationalNumber; | Added| | -| Multi-language Runtime - RationalNumber| compareTo(another :RationalNumber): number; | Added| | -| Multi-language Runtime - RationalNumber| equals(obj: Object): boolean; | Added| | -| Multi-language Runtime - RationalNumber| valueOf(): number; | Added| | -| Multi-language Runtime - RationalNumber| static getCommonDivisor(number1: number, number2: number): number; | Added| | -| Multi-language Runtime - RationalNumber| getDenominator(): number; | Added| | -| Multi-language Runtime - RationalNumber| getNumerator(): number; | Added| | -| Multi-language Runtime - RationalNumber| isFinite() : boolean; | Added| | -| Multi-language Runtime - RationalNumber| isNaN(): boolean; | Added| | -| Multi-language Runtime - RationalNumber| isZero(): boolean; | Added| | -| Multi-language Runtime - RationalNumber| toString(): string; | Added| | -| Multi-language Runtime - LruBuffer| constructor(capacity?:number); | Added| | -| Multi-language Runtime - LruBuffer| updateCapacity(newCapacity: number):void | Added| | -| Multi-language Runtime - LruBuffer| toString():string | Added| | -| Multi-language Runtime - LruBuffer| length:number | Added| | -| Multi-language Runtime - LruBuffer| getCapacity(): number; | Added| | -| Multi-language Runtime - LruBuffer| clear(): void; | Added| | -| Multi-language Runtime - LruBuffer| getCreateCount(): number; | Added| | -| Multi-language Runtime - LruBuffer| getMissCount(): number; | Added| | -| Multi-language Runtime - LruBuffer| getRemovalCount(): number; | Added| | -| Multi-language Runtime - LruBuffer| getMatchCount(): number; | Added| | -| Multi-language Runtime - LruBuffer| getPutCount(): number; | Added| | -| Multi-language Runtime - LruBuffer| isEmpty(): boolean; | Added| | -| Multi-language Runtime - LruBuffer| get(key: K): V \| undefined; | Added| | -| Multi-language Runtime - LruBuffer| put(key: K, value: V): V; | Added| | -| Multi-language Runtime - LruBuffer| values(): V[]; | Added| | -| Multi-language Runtime - LruBuffer| keys(): K[]; | Added| | -| Multi-language Runtime - LruBuffer| remove(key: K): V \| undefined; | Added| | -| Multi-language Runtime - LruBuffer| afterRemoval(isEvict: boolean, key: K, value: V, newValue: V): void; | Added| | -| Multi-language Runtime - LruBuffer| contains(key: K): boolean; | Added| | -| Multi-language Runtime - LruBuffer| createDefault(key: K): V; | Added| | -| Multi-language Runtime - LruBuffer| entries(): IterableIterator<[K, V]>; | Added| | -| Multi-language Runtime - LruBuffer| [Symbol.iterator](): IterableIterator<[K, V]>; | Added| | -| Multi-language Runtime - Scope| constructor(lowerObj: ScopeType, upperObj: ScopeType); | Added| | -| Multi-language Runtime - Scope| toString(): string; | Added| | -| Multi-language Runtime - Scope| intersect(range: Scope): Scope; | Added| | -| Multi-language Runtime - Scope| intersect(lowerObj: ScopeType, upperObj: ScopeType): Scope; | Added| | -| Multi-language Runtime - Scope| getUpper(): ScopeType; | Added| | -| Multi-language Runtime - Scope| getLower(): ScopeType; | Added| | -| Multi-language Runtime - Scope| expand(lowerObj: ScopeType, upperObj: ScopeType): Scope; | Added| | -| Multi-language Runtime - Scope| expand(range: Scope): Scope; | Added| | -| Multi-language Runtime - Scope| expand(value: ScopeType): Scope; | Added| | -| Multi-language Runtime - Scope| contains(value: ScopeType): boolean; | Added| | -| Multi-language Runtime - Scope| contains(range: Scope): boolean; | Added| | -| Multi-language Runtime - Scope| clamp(value: ScopeType): ScopeType; | Added| | -| Multi-language Runtime - Base64| constructor(); | Added| | -| Multi-language Runtime - Base64| encodeSync(src: Uint8Array): Uint8Array; | Added| | -| Multi-language Runtime - Base64| encodeToStringSync(src: Uint8Array): string; | Added| | -| Multi-language Runtime - Base64| decodeSync(src: Uint8Array \| string): Uint8Array; | Added| | -| Multi-language Runtime - Base64| encode(src: Uint8Array): Promise; | Added| | -| Multi-language Runtime - Base64| encodeToString(src: Uint8Array): Promise; | Added| | -| Multi-language Runtime - Base64| decode(src: Uint8Array \| string): Promise; | Added| | -| Multi-language Runtime - types| constructor(); | Added| | -| Multi-language Runtime - types| isAnyArrayBuffer(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isArrayBufferView(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isArgumentsObject(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isArrayBuffer(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isAsyncFunction(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isBigInt64Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isBigUint64Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isBooleanObject(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isBoxedPrimitive(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isDataView(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isDate(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isExternal(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isFloat32Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isFloat64Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isGeneratorFunction(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isGeneratorObject(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isInt8Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isInt16Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isInt32Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isMap(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isMapIterator(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isModuleNamespaceObject(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isNativeError(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isNumberObject(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isPromise(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isProxy(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isRegExp(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isSet(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isSetIterator(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isSharedArrayBuffer(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isStringObject(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isSymbolObject(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isTypedArray(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isUint8Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isUint8ClampedArray(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isUint16Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isUint32Array(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isWeakMap(value: Object): boolean; | Added| | -| Multi-language Runtime - types| isWeakSet(value: Object): boolean; | Added| | -| Multi-language Runtime - process| const tid: number; | Added| | -| Multi-language Runtime - process| function isIsolatedProcess(): boolean; | Added| | -| Multi-language Runtime - process| function isAppUid(v: number): boolean; | Added| | -| Multi-language Runtime - process| function is64Bit(): boolean; | Added| | -| Multi-language Runtime - process| function getUidForName(v: string): number; | Added| | -| Multi-language Runtime - process| function getThreadPriority(v: number): number; | Added| | -| Multi-language Runtime - process| function getStartRealtime(): number; | Added| | -| Multi-language Runtime - process| function getAvailableCores(): number[]; | Added| | -| Multi-language Runtime - process| function getPastCpuTime(): number; | Added| | -| Multi-language Runtime - process| function getSystemConfig(name: number): number; | Added| | -| Multi-language Runtime - process| function getEnvironmentVar(name: string): string; | Added| | -| Multi-language Runtime - ConvertOptions| trim: boolean; | Added| | -| Multi-language Runtime - ConvertOptions| ignoreDeclaration?: boolean; | Added| | -| Multi-language Runtime - ConvertOptions| ignoreInstruction?: boolean; | Added| | -| Multi-language Runtime - ConvertOptions| ignoreAttributes?: boolean; | Added| | -| Multi-language Runtime - ConvertOptions| ignoreComment?: boolean; | Added| | -| Multi-language Runtime - ConvertOptions| ignoreCdata?: boolean; | Added| | -| Multi-language Runtime - ConvertOptions| ignoreDoctype?: boolean; | Added| | -| Multi-language Runtime - ConvertOptions| ignoreText?: boolean; | Added| | -| Multi-language Runtime - ConvertOptions| declarationKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| instructionKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| attributesKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| textKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| cdataKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| doctypeKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| commentKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| parentKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| typeKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| nameKey: string; | Added| | -| Multi-language Runtime - ConvertOptions| elementsKey: string; | Added| | -| Multi-language Runtime - ConvertXML| convert(xml: string, options?: ConvertOptions) : Object; | Added| | -| Multi-language Runtime - XmlSerializer| constructor(buffer: ArrayBuffer \| DataView, encoding?: string); | Added| | -| Multi-language Runtime - XmlSerializer| setAttributes(name: string, value: string): void; | Added| | -| Multi-language Runtime - XmlSerializer| addEmptyElement(name: string): void; | Added| | -| Multi-language Runtime - XmlSerializer| setDeclaration(): void; | Added| | -| Multi-language Runtime - XmlSerializer| startElement(name: string): void; | Added| | -| Multi-language Runtime - XmlSerializer| endElement(): void; | Added| | -| Multi-language Runtime - XmlSerializer| setNamespace(prefix: string, namespace: string): void; | Added| | -| Multi-language Runtime - XmlSerializer| setCommnet(text: string): void; | Added| | -| Multi-language Runtime - XmlSerializer| setCData(text: string): void; | Added| | -| Multi-language Runtime - XmlSerializer| setText(text: string): void; | Added| | -| Multi-language Runtime - XmlSerializer| setDocType(text: string): void; | Added| | -| Multi-language Runtime -ParseOptions| supportDoctype?: boolean; | Added| | -| Multi-language Runtime -ParseOptions| ignoreNameSpace?: boolean; | Added| | -| Multi-language Runtime -ParseOptions| tagValueCallbackFunction?: (name: string, value: string) => boolean; | Added| | -| Multi-language Runtime -ParseOptions| attributeValueCallbackFunction?: (name: string, value: string) => boolean; | Added| | -| Multi-language Runtime -ParseOptions| tokenValueCallbackFunction?: (eventType: EventType, value: ParseInfo) => boolean; | Added| | +| Multi-language Runtime - URI | equals(other: URI): boolean; | Added | | +| Multi-language Runtime - URI | checkIsAbsolute(): boolean; | Added | | +| Multi-language Runtime - URI | normalize(): URI; | Added | | +| Multi-language Runtime - URI | scheme: string; | Added | | +| Multi-language Runtime - URI | userinfo: string; | Added | | +| Multi-language Runtime - URI | host: string; | Added | | +| Multi-language Runtime - URI | port: string; | Added | | +| Multi-language Runtime - URI | path: string; | Added | | +| Multi-language Runtime - URI | query: string; | Added | | +| Multi-language Runtime - URI | query: string; | Added | | +| Multi-language Runtime - URI | authority: string; | Added | | +| Multi-language Runtime - URI | ssp: string; | Added | | +| Multi-language Runtime - RationalNumber| constructor(numerator: number, denominator: number); | Added | | +| Multi-language Runtime - RationalNumber| static createRationalFromString(rationalString: string): RationalNumber; | Added | | +| Multi-language Runtime - RationalNumber| compareTo(another :RationalNumber): number; | Added | | +| Multi-language Runtime - RationalNumber| equals(obj: Object): boolean; | Added | | +| Multi-language Runtime - RationalNumber| valueOf(): number; | Added | | +| Multi-language Runtime - RationalNumber| static getCommonDivisor(number1: number, number2: number): number; | Added | | +| Multi-language Runtime - RationalNumber| getDenominator(): number; | Added | | +| Multi-language Runtime - RationalNumber| getNumerator(): number; | Added | | +| Multi-language Runtime - RationalNumber| isFinite() : boolean; | Added | | +| Multi-language Runtime - RationalNumber| isNaN(): boolean; | Added | | +| Multi-language Runtime - RationalNumber| isZero(): boolean; | Added | | +| Multi-language Runtime - RationalNumber| toString(): string; | Added | | +| Multi-language Runtime - LruBuffer| constructor(capacity?:number); | Added | | +| Multi-language Runtime - LruBuffer| updateCapacity(newCapacity: number):void | Added | | +| Multi-language Runtime - LruBuffer| toString():string | Added | | +| Multi-language Runtime - LruBuffer| length:number | Added | | +| Multi-language Runtime - LruBuffer| getCapacity(): number; | Added | | +| Multi-language Runtime - LruBuffer| clear(): void; | Added | | +| Multi-language Runtime - LruBuffer| getCreateCount(): number; | Added | | +| Multi-language Runtime - LruBuffer| getMissCount(): number; | Added | | +| Multi-language Runtime - LruBuffer| getRemovalCount(): number; | Added | | +| Multi-language Runtime - LruBuffer| getMatchCount(): number; | Added | | +| Multi-language Runtime - LruBuffer| getPutCount(): number; | Added | | +| Multi-language Runtime - LruBuffer| isEmpty(): boolean; | Added | | +| Multi-language Runtime - LruBuffer| get(key: K): V \| undefined; | Added | | +| Multi-language Runtime - LruBuffer| put(key: K, value: V): V; | Added | | +| Multi-language Runtime - LruBuffer| values(): V[]; | Added | | +| Multi-language Runtime - LruBuffer| keys(): K[]; | Added | | +| Multi-language Runtime - LruBuffer| remove(key: K): V \| undefined; | Added | | +| Multi-language Runtime - LruBuffer| afterRemoval(isEvict: boolean, key: K, value: V, newValue: V): void; | Added | | +| Multi-language Runtime - LruBuffer| contains(key: K): boolean; | Added | | +| Multi-language Runtime - LruBuffer| createDefault(key: K): V; | Added | | +| Multi-language Runtime - LruBuffer| entries(): IterableIterator\<[K, V]>; | Added | | +| Multi-language Runtime - LruBuffer| \[Symbol.iterator]\(): IterableIterator\<[K, V]>; | Added | | +| Multi-language Runtime - Scope| constructor(lowerObj: ScopeType, upperObj: ScopeType); | Added | | +| Multi-language Runtime - Scope| toString(): string; | Added | | +| Multi-language Runtime - Scope| intersect(range: Scope): Scope; | Added | | +| Multi-language Runtime - Scope| intersect(lowerObj: ScopeType, upperObj: ScopeType): Scope; | Added | | +| Multi-language Runtime - Scope| getUpper(): ScopeType; | Added | | +| Multi-language Runtime - Scope| getLower(): ScopeType; | Added | | +| Multi-language Runtime - Scope| expand(lowerObj: ScopeType, upperObj: ScopeType): Scope; | Added | | +| Multi-language Runtime - Scope| expand(range: Scope): Scope; | Added | | +| Multi-language Runtime - Scope| expand(value: ScopeType): Scope; | Added | | +| Multi-language Runtime - Scope| contains(value: ScopeType): boolean; | Added | | +| Multi-language Runtime - Scope| contains(range: Scope): boolean; | Added | | +| Multi-language Runtime - Scope| clamp(value: ScopeType): ScopeType; | Added | | +| Multi-language Runtime - Base64| constructor(); | Added | | +| Multi-language Runtime - Base64| encodeSync(src: Uint8Array): Uint8Array; | Added | | +| Multi-language Runtime - Base64| encodeToStringSync(src: Uint8Array): string; | Added | | +| Multi-language Runtime - Base64| decodeSync(src: Uint8Array \| string): Uint8Array; | Added | | +| Multi-language Runtime - Base64| encode(src: Uint8Array): Promise\; | Added | | +| Multi-language Runtime - Base64| encodeToString(src: Uint8Array): Promise\; | Added | | +| Multi-language Runtime - Base64| decode(src: Uint8Array \| string): Promise\; | Added | | +| Multi-language Runtime - types| constructor(); | Added | | +| Multi-language Runtime - types| isAnyArrayBuffer(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isArrayBufferView(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isArgumentsObject(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isArrayBuffer(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isAsyncFunction(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isBigInt64Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isBigUint64Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isBooleanObject(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isBoxedPrimitive(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isDataView(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isDate(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isExternal(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isFloat32Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isFloat64Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isGeneratorFunction(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isGeneratorObject(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isInt8Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isInt16Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isInt32Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isMap(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isMapIterator(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isModuleNamespaceObject(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isNativeError(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isNumberObject(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isPromise(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isProxy(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isRegExp(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isSet(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isSetIterator(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isSharedArrayBuffer(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isStringObject(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isSymbolObject(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isTypedArray(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isUint8Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isUint8ClampedArray(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isUint16Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isUint32Array(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isWeakMap(value: Object): boolean; | Added | | +| Multi-language Runtime - types| isWeakSet(value: Object): boolean; | Added | | +| Multi-language Runtime - process| const tid: number; | Added | | +| Multi-language Runtime - process| isIsolatedProcess(): boolean; | Added | | +| Multi-language Runtime - process| isAppUid(v: number): boolean; | Added | | +| Multi-language Runtime - process| is64Bit(): boolean; | Added | | +| Multi-language Runtime - process| getUidForName(v: string): number; | Added | | +| Multi-language Runtime - process| getThreadPriority(v: number): number; | Added | | +| Multi-language Runtime - process| getStartRealtime(): number; | Added | | +| Multi-language Runtime - process| getAvailableCores(): number[]; | Added | | +| Multi-language Runtime - process| getPastCpuTime(): number; | Added | | +| Multi-language Runtime - process| getSystemConfig(name: number): number; | Added | | +| Multi-language Runtime - process| getEnvironmentVar(name: string): string; | Added | | +| Multi-language Runtime - ConvertOptions| trim: boolean; | Added | | +| Multi-language Runtime - ConvertOptions| ignoreDeclaration?: boolean; | Added | | +| Multi-language Runtime - ConvertOptions| ignoreInstruction?: boolean; | Added | | +| Multi-language Runtime - ConvertOptions| ignoreAttributes?: boolean; | Added | | +| Multi-language Runtime - ConvertOptions| ignoreComment?: boolean; | Added | | +| Multi-language Runtime - ConvertOptions| ignoreCdata?: boolean; | Added | | +| Multi-language Runtime - ConvertOptions| ignoreDoctype?: boolean; | Added | | +| Multi-language Runtime - ConvertOptions| ignoreText?: boolean; | Added | | +| Multi-language Runtime - ConvertOptions| declarationKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| instructionKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| attributesKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| textKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| cdataKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| doctypeKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| commentKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| parentKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| typeKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| nameKey: string; | Added | | +| Multi-language Runtime - ConvertOptions| elementsKey: string; | Added | | +| Multi-language Runtime - ConvertXML| convert(xml: string, options?: ConvertOptions) : Object; | Added | | +| Multi-language Runtime - XmlSerializer| constructor(buffer: ArrayBuffer \| DataView, encoding?: string); | Added | | +| Multi-language Runtime - XmlSerializer| setAttributes(name: string, value: string): void; | Added | | +| Multi-language Runtime - XmlSerializer| addEmptyElement(name: string): void; | Added | | +| Multi-language Runtime - XmlSerializer| setDeclaration(): void; | Added | | +| Multi-language Runtime - XmlSerializer| startElement(name: string): void; | Added | | +| Multi-language Runtime - XmlSerializer| endElement(): void; | Added | | +| Multi-language Runtime - XmlSerializer| setNamespace(prefix: string, namespace: string): void; | Added | | +| Multi-language Runtime - XmlSerializer| setCommnet(text: string): void; | Added | | +| Multi-language Runtime - XmlSerializer| setCData(text: string): void; | Added | | +| Multi-language Runtime - XmlSerializer| setText(text: string): void; | Added | | +| Multi-language Runtime - XmlSerializer| setDocType(text: string): void; | Added | | +| Multi-language Runtime -ParseOptions| supportDoctype?: boolean; | Added | | +| Multi-language Runtime -ParseOptions| ignoreNameSpace?: boolean; | Added | | +| Multi-language Runtime -ParseOptions| tagValueCallbackFunction?: (name: string, value: string) => boolean; | Added | | +| Multi-language Runtime -ParseOptions| attributeValueCallbackFunction?: (name: string, value: string) => boolean; | Added | | +| Multi-language Runtime -ParseOptions| tokenValueCallbackFunction?: (eventType: EventType, value: ParseInfo) => boolean; | Added | | | Account - account.appAccount| createAppAccountManager | Added| Added the API for obtaining an **AppAccountManager** instance.| -| Account - account.appAccount| addAccount(name: string, callback: AsyncCallback): void;
addAccount(name: string, extraInfo: string, callback: AsyncCallback): void;
addAccount(name: string, extraInfo?: string): Promise; | Added| Added the APIs for adding an application account.| -| Account - account.appAccount| deleteAccount(name: string, callback: AsyncCallback): void;
deleteAccount(name: string): Promise; | Added| Added the APIs for deleting an application account.| -| Account - account.appAccount| disableAppAccess(name: string, bundleName: string, callback: AsyncCallback): void;
disableAppAccess(name: string, bundleName: string): Promise; | Added| Added the APIs for disabling an application account from accessing a third-party application with the given bundle name.| -| Account - account.appAccount| enableAppAccess(name: string, bundleName: string, callback: AsyncCallback): void;
enableAppAccess(name: string, bundleName: string): Promise; | Added| Added the APIs for enabling an application account to access a third-party application with the given bundle name.| -| Account - account.appAccount| checkAppAccountSyncEnable(name: string, callback: AsyncCallback): void;
checkAppAccountSyncEnable(name: string): Promise; | Added| Added the APIs for checking whether an application account allows application data synchronization.| -| Account - account.appAccount| setAccountCredential(name: string, credentialType: string, credential: string,
callback: AsyncCallback): void;
setAccountCredential(name: string, credentialType: string, credential: string): Promise; | Added| Added the APIs for setting a credential for an application account.| -| Account - account.appAccount| setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback): void;
setAccountExtraInfo(name: string, extraInfo: string): Promise; | Added| Added the APIs for setting additional information for an application account.| -| Account - account.appAccount| setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback): void;
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise; | Added| Added the APIs for setting whether to enable application data synchronization for an application account.| -| Account - account.appAccount| setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback): void;
setAssociatedData(name: string, key: string, value: string): Promise; | Added| Added the APIs for setting data to be associated with an application account.| -| Account - account.appAccount| getAllAccessibleAccounts(callback: AsyncCallback>): void;
getAllAccessibleAccounts(): Promise>; | Added| Added the APIs for obtaining the account information of this application and the information about the third-party application account that has been authorized to the current application.| -| Account - account.appAccount| getAllAccounts(owner: string, callback: AsyncCallback>): void;
getAllAccounts(owner: string): Promise>; | Added| Added the APIs for obtaining all account information of this application.| -| Account - account.appAccount| getAccountCredential(name: string, credentialType: string, callback: AsyncCallback): void;
getAccountCredential(name: string, credentialType: string): Promise; | Added| Added the APIs for obtaining the credential of an application account.| -| Account - account.appAccount| getAccountExtraInfo(name: string, callback: AsyncCallback): void;
getAccountExtraInfo(name: string): Promise; | Added| Added the APIs for obtaining additional information of an application account.| -| Account - account.appAccount| getAssociatedData(name: string, key: string, callback: AsyncCallback): void;
getAssociatedData(name: string, key: string): Promise; | Added| Added the APIs for obtaining data associated with an application account.| -| Account - account.appAccount| on(type: 'change', owners: Array, callback: Callback>): void; | Added| Added the API for subscribing to application account changes.| -| Account - account.appAccount| off(type: 'change', callback?: Callback): void; | Added| Added the API for unsubscribing from application account changes.| +| Account - account.appAccount| addAccount(name: string, callback: AsyncCallback\): void;
addAccount(name: string, extraInfo: string, callback: AsyncCallback\): void;
addAccount(name: string, extraInfo?: string): Promise\; | Added| Added the APIs for adding an application account.| +| Account - account.appAccount| deleteAccount(name: string, callback: AsyncCallback\): void;
deleteAccount(name: string): Promise\; | Added| Added the APIs for deleting an application account.| +| Account - account.appAccount| disableAppAccess(name: string, bundleName: string, callback: AsyncCallback\): void;
disableAppAccess(name: string, bundleName: string): Promise\; | Added| Added the APIs for disabling an application account from accessing a third-party application with the given bundle name.| +| Account - account.appAccount| enableAppAccess(name: string, bundleName: string, callback: AsyncCallback\): void;
enableAppAccess(name: string, bundleName: string): Promise\; | Added| Added the APIs for enabling an application account to access a third-party application with the given bundle name.| +| Account - account.appAccount| checkAppAccountSyncEnable(name: string, callback: AsyncCallback\): void;
checkAppAccountSyncEnable(name: string): Promise\; | Added| Added the APIs for checking whether an application account allows application data synchronization.| +| Account - account.appAccount| setAccountCredential(name: string, credentialType: string, credential: string,
callback: AsyncCallback\): void;
setAccountCredential(name: string, credentialType: string, credential: string): Promise\; | Added| Added the APIs for setting a credential for an application account.| +| Account - account.appAccount| setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback\): void;
setAccountExtraInfo(name: string, extraInfo: string): Promise\; | Added| Added the APIs for setting additional information for an application account.| +| Account - account.appAccount| setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback\): void;
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise\; | Added| Added the APIs for setting whether to enable application data synchronization for an application account.| +| Account - account.appAccount| setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback\): void;
setAssociatedData(name: string, key: string, value: string): Promise\; | Added| Added the APIs for setting data to be associated with an application account.| +| Account - account.appAccount| getAllAccessibleAccounts(callback: AsyncCallback\>): void;
getAllAccessibleAccounts(): Promise\>; | Added| Added the APIs for obtaining the account information of this application and the information about the third-party application account that has been authorized to the current application.| +| Account - account.appAccount| getAllAccounts(owner: string, callback: AsyncCallback\>): void;
getAllAccounts(owner: string): Promise\>; | Added| Added the APIs for obtaining all account information of this application.| +| Account - account.appAccount| getAccountCredential(name: string, credentialType: string, callback: AsyncCallback\): void;
getAccountCredential(name: string, credentialType: string): Promise\; | Added| Added the APIs for obtaining the credential of an application account.| +| Account - account.appAccount| getAccountExtraInfo(name: string, callback: AsyncCallback\): void;
getAccountExtraInfo(name: string): Promise\; | Added| Added the APIs for obtaining additional information of an application account.| +| Account - account.appAccount| getAssociatedData(name: string, key: string, callback: AsyncCallback\): void;
getAssociatedData(name: string, key: string): Promise\; | Added| Added the APIs for obtaining data associated with an application account.| +| Account - account.appAccount| on(type: 'change', owners: Array\, callback: Callback\>): void; | Added| Added the API for subscribing to application account changes.| +| Account - account.appAccount| off(type: 'change', callback?: Callback\): void; | Added| Added the API for unsubscribing from application account changes.| | Account - account.appAccount| interface AppAccountInfo | Added| Added the **AppAccountInfo** interface.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback,options?: Options): void | Added| Added the API for subscribing to acceleration sensor data changes.| -| Pan-sensor - sensor| on(type:SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the linear acceleration sensor.| -| Pan-sensor - sensor| on(type:SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback:AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the uncalibrated acceleration sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: AsyncCallback,options?: Options): void | Added| Added the API for subscribing to data changes of the gravity sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the gyroscope sensor.| -| Pan-sensor - sensor| on(type:SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback:AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the uncalibrated gyroscope sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the significant motion sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the pedometer detection sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the pedometer sensor.| -| Pan-sensor - sensor| on(type:SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback:AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the ambient temperature sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: AsyncCallback,options?: Options): void | Added| Added the API for subscribing to data changes of the magnetic field sensor.| -| Pan-sensor - sensor| on(type:SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback:AsyncCallback, options: Options): void | Added| Added the API for subscribing to data changes of the uncalibrated magnetic field sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback,options?: Options): void | Added| Added the API for subscribing to proximity sensor data changes.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback,options?: Options): void | Added| Added the API for subscribing to humidity sensor data changes.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: AsyncCallback,options?: Options): void | Added| Added the API for subscribing to barometer sensor data changes.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the Hall effect sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: AsyncCallback, options?: Options): void | Added| Added the API for subscribing to data changes of the ambient light sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: AsyncCallback, options?: Options): void | Added| Added the API for subscribing to orientation sensor data changes.| -| Pan-sensor - sensor| on(type:SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback:AsyncCallback,options?: Options): void | Added| Added the API for subscribing to data changes of the rotation vector sensor.| -| Pan-sensor - sensor| on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: AsyncCallback,options?: Options): void | Added| Added the API for subscribing to wear detection data changes.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the acceleration sensor.| -| Pan-sensor - sensor| once(type:SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:AsyncCallback): void | Added| Added the API for subscribing to only one data change of the linear acceleration sensor.| -| Pan-sensor - sensor| once(type:SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback:AsyncCallback): void | Added| Added the API for subscribing to only one data change of the uncalibrated acceleration sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the gravity sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the gyroscope sensor.| -| Pan-sensor - sensor| once(type:SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback:AsyncCallback, options?: Options): void | Added| Added the API for subscribing to only one data change of the uncalibrated gyroscope sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the significant motion sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the pedometer detection sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the pedometer sensor.| -| Pan-sensor - sensor| once(type:SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback:AsyncCallback): void | Added| Added the API for subscribing to only one data change of the ambient temperature sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the magnetic field sensor.| -| Pan-sensor - sensor| once(type:SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback:AsyncCallback): void | Added| Added the API for subscribing to only one data change of the uncalibrated magnetic field sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the proximity sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the humidity sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the barometer sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the Hall effect sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the ambient light sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the orientation sensor.| -| Pan-sensor - sensor| once(type:SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback:AsyncCallback): void | Added| Added the API for subscribing to only one data change of the rotation vector sensor.| -| Pan-sensor - sensor| once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: AsyncCallback): void | Added| Added the API for subscribing to only one data change of the wear detection sensor.| -| Pan-sensor - sensor| off(type: SensorType, callback?: AsyncCallback): void | Added| Added the API for unsubscribing from sensor data changes.| -| Pan-sensor - sensor| getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback): void
getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise | Added| Added the APIs for obtaining the geomagnetic field of a geographic location.| -| Pan-sensor - vibrator| vibrate(duration: number): Promise
vibrate(duration: number, callback?: AsyncCallback): void | Added| Added the APIs for triggering vibration with a specific duration.| -| Pan-sensor - vibrator| vibrate(effectId: EffectId): Promise
vibrate(effectId: EffectId, callback?: AsyncCallback): void | Added| Added the APIs for triggering vibration with a specific effect.| -| Pan-sensor - vibrator| stop(stopMode: VibratorStopMode): Promise
stop(stopMode: VibratorStopMode, callback?: AsyncCallback): void | Added| Added the APIs for stopping vibration.| +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback\,options?: Options): void | Added | Added the API for subscribing to acceleration sensor data changes. | +| Pan-sensor - sensor | on(type:SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the linear acceleration sensor. | +| Pan-sensor - sensor | on(type:SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback:AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the uncalibrated acceleration sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: AsyncCallback\,options?: Options): void | Added | Added the API for subscribing to data changes of the gravity sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the gyroscope sensor. | +| Pan-sensor - sensor | on(type:SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback:AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the uncalibrated gyroscope sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the significant motion sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the pedometer detection sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the pedometer sensor. | +| Pan-sensor - sensor | on(type:SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback:AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the ambient temperature sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: AsyncCallback\,options?: Options): void | Added | Added the API for subscribing to data changes of the magnetic field sensor. | +| Pan-sensor - sensor | on(type:SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback:AsyncCallback\, options: Options): void | Added | Added the API for subscribing to data changes of the uncalibrated magnetic field sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback\,options?: Options): void | Added | Added the API for subscribing to proximity sensor data changes. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback\,options?: Options): void | Added | Added the API for subscribing to humidity sensor data changes. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: AsyncCallback\,options?: Options): void | Added | Added the API for subscribing to barometer sensor data changes. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the Hall effect sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to data changes of the ambient light sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to orientation sensor data changes. | +| Pan-sensor - sensor | on(type:SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback:AsyncCallback\,options?: Options): void | Added | Added the API for subscribing to data changes of the rotation vector sensor. | +| Pan-sensor - sensor | on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: AsyncCallback\,options?: Options): void | Added | Added the API for subscribing to wear detection data changes. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the acceleration sensor. | +| Pan-sensor - sensor | once(type:SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the linear acceleration sensor. | +| Pan-sensor - sensor | once(type:SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback:AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the uncalibrated acceleration sensor.| +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the gravity sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the gyroscope sensor. | +| Pan-sensor - sensor | once(type:SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback:AsyncCallback\, options?: Options): void | Added | Added the API for subscribing to only one data change of the uncalibrated gyroscope sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the significant motion sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the pedometer detection sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the pedometer sensor. | +| Pan-sensor - sensor | once(type:SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback:AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the ambient temperature sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the magnetic field sensor. | +| Pan-sensor - sensor | once(type:SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback:AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the uncalibrated magnetic field sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the proximity sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the humidity sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the barometer sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the Hall effect sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the ambient light sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the orientation sensor. | +| Pan-sensor - sensor | once(type:SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback:AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the rotation vector sensor. | +| Pan-sensor - sensor | once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: AsyncCallback\): void | Added | Added the API for subscribing to only one data change of the wear detection sensor. | +| Pan-sensor - sensor | off(type: SensorType, callback?: AsyncCallback\): void | Added | Added the API for unsubscribing from sensor data changes. | +| Pan-sensor - sensor | getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback\): void
getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise\ | Added | Added the APIs for obtaining the geomagnetic field of a geographic location. | +| Pan-sensor - vibrator| vibrate(duration: number): Promise\
vibrate(duration: number, callback?: AsyncCallback\): void | Added | Added the APIs for triggering vibration with a specific duration. | +| Pan-sensor - vibrator| vibrate(effectId: EffectId): Promise\
vibrate(effectId: EffectId, callback?: AsyncCallback\): void | Added | Added the APIs for triggering vibration with a specific effect. | +| Pan-sensor - vibrator| stop(stopMode: VibratorStopMode): Promise\
stop(stopMode: VibratorStopMode, callback?: AsyncCallback\): void | Added | Added the APIs for stopping vibration. |