From 94bbb3419b3e32fbbf8fc2079cf9355472d63b67 Mon Sep 17 00:00:00 2001 From: zengyawen Date: Wed, 30 Mar 2022 20:15:16 +0800 Subject: [PATCH] update docs Signed-off-by: zengyawen --- .../reference/apis/Readme-EN.md | 331 ++++--- .../reference/apis/js-apis-media.md | 2 +- en/website.md | 725 ++++++++++++++- .../application-dev-website.md | 381 +++++--- .../reference/apis/Readme-CN.md | 7 +- zh-cn/application-dev/website.md | 358 +++++--- .../v3.1-Release/changelog-v3.1-release.md | 303 ++++++- .../v3.1-Release/js-apidiff-ability.md | 175 +++- .../v3.1-Release/js-apidiff-accessibility.md | 57 +- .../v3.1-Release/js-apidiff-account.md | 118 ++- .../api-change/v3.1-Release/js-apidiff-ace.md | 59 +- .../v3.1-Release/js-apidiff-battery.md | 26 +- .../v3.1-Release/js-apidiff-bundle.md | 70 +- .../v3.1-Release/js-apidiff-communicate.md | 469 +++++++++- .../js-apidiff-complier-and-runtime.md | 385 +++++++- .../api-change/v3.1-Release/js-apidiff-dfx.md | 88 +- .../js-apidiff-distributed-data.md | 117 ++- .../js-apidiff-event-and-notification.md | 43 +- .../js-apidiff-file-management.md | 64 +- .../v3.1-Release/js-apidiff-geolocation.md | 121 ++- .../v3.1-Release/js-apidiff-global.md | 113 ++- .../v3.1-Release/js-apidiff-graphic.md | 833 +++++++++++++++++- .../v3.1-Release/js-apidiff-misc.md | 224 ++++- .../js-apidiff-multi-modal-input.md | 24 +- .../v3.1-Release/js-apidiff-multimedia.md | 429 ++++++++- .../v3.1-Release/js-apidiff-network.md | 192 +++- .../js-apidiff-resource-scheduler.md | 97 +- .../v3.1-Release/js-apidiff-security.md | 253 +++++- .../v3.1-Release/js-apidiff-sensor.md | 118 ++- .../v3.1-Release/js-apidiff-settings.md | 94 +- .../v3.1-Release/js-apidiff-soft-bus.md | 49 +- .../v3.1-Release/js-apidiff-telephony.md | 236 ++++- .../v3.1-Release/js-apidiff-unitest.md | 49 ++ .../api-change/v3.1-Release/js-apidiff-usb.md | 79 +- .../js-apidiff-user-authentication.md | 71 +- .../v3.1-Release/js-apidiff-window.md | 103 ++- .../native-apidiff-v3.1-release.md | 214 ++++- 37 files changed, 6385 insertions(+), 692 deletions(-) create mode 100644 zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md diff --git a/en/application-dev/reference/apis/Readme-EN.md b/en/application-dev/reference/apis/Readme-EN.md index b42e72ef4b..e0ec415b84 100644 --- a/en/application-dev/reference/apis/Readme-EN.md +++ b/en/application-dev/reference/apis/Readme-EN.md @@ -1,124 +1,229 @@ # APIs - Ability Framework - - [FeatureAbility Module](js-apis-featureAbility.md) - - [ParticleAbility Module](js-apis-particleAbility.md) - - [DataAbilityHelper Module](js-apis-dataAbilityHelper.md) - - [DataUriUtils Module](js-apis-DataUriUtils.md) - - [Bundle Module](js-apis-Bundle.md) - - [Context Module](js-apis-Context.md) -- Event Notification - - [CommonEvent Module](js-apis-commonEvent.md) - - [Notification Module](js-apis-notification.md) - - [Reminder Agent](js-apis-reminderAgent.md) -- Resource Management - - [Resource Manager](js-apis-resource-manager.md) - - [Internationalization \(intl\) ](js-apis-intl.md) - - [Internationalization \(i18n\) ](js-apis-i18n.md) + + - [@ohos.ability.dataUriUtils](js-apis-DataUriUtils.md) + - [@ohos.ability.errorCode ](js-apis-ability-errorcode.md) + - [@ohos.ability.wantConstant](js-apis-ability-wantConstant.md) + - [@ohos.application.Ability](js-apis-application-ability.md) + - [@ohos.application.AbilityConstant](js-apis-application-abilityConstant.md) + - [@ohos.application.abilityDelegatorRegistry](js-apis-abilityDelegatorRegistry.md) + - [@ohos.application.AbilityStage ](js-apis-application-abilitystage.md) + - [@ohos.application.appManager](js-apis-appmanager.md) + - [@ohos.application.Configuration](js-apis-configuration.md) + - [@ohos.application.ConfigurationConstant](js-apis-configurationconstant.md) + - [@ohos.application.DataShareExtensionAbility](js-apis-application-DataShareExtensionAbility.md) + - [@ohos.ability.featureAbility](js-apis-featureAbility.md) + - [@ohos.application.formBindingData](js-apis-formbindingdata.md) + - [@ohos.application.FormExtension](js-apis-formextension.md) + - [@ohos.application.formError](js-apis-formerror.md) + - [@ohos.application.formHost](js-apis-formhost.md) + - [@ohos.application.formInfo](js-apis-formInfo.md) + - [@ohos.application.missionManager](js-apis-missionManager.md) + - [@ohos.application.formProvider](js-apis-formprovider.md) + - [@ohos.ability.particleAbility](js-apis-particleAbility.md) + - [@ohos.application.ServiceExtensionAbility](js-apis-service-extension-ability.md) + - [@ohos.application.StartOptions](js-apis-application-StartOptions.md) + - [@ohos.application.StaticSubscriberExtensionAbility](js-apis-application-staticSubscriberExtensionAbility.md) + - [@ohos.application.uriPermissionManager](js-apis-uripermissionmanager.md) + - [@ohos.application.Want](js-apis-application-Want.md) + - [@ohos.wantAgent](js-apis-wantAgent.md) + - ability/[dataAbilityHelper](js-apis-dataAbilityHelper.md) + - app/[context](js-apis-Context.md) + - application/[AbilityContext](js-apis-ability-context.md) + - application/[abilityDelegator](js-apis-application-abilityDelegator.md) + - application/[abilityDelegatorArgs](js-apis-application-abilityDelegatorArgs.md) + - application/[abilityMonitor](js-apis-application-abilityMonitor.md) + - application/[AbilityRunningInfo](js-apis-abilityrunninginfo.md) + - application/[AbilityStageContext](js-apis-abilitystagecontext.md) + - application/[Context](js-apis-application-context.md) + - application/[ExtensionContext](js-apis-extension-context.md) + - application/[ExtensionRunningInfo](js-apis-extensionrunninginfo.md) + - application/[FormExtensionContext](js-apis-formextensioncontext.md) + - application/[MissionSnapshot](js-apis-application-MissionSnapshot.md) + - application/[PermissionRequestResult](js-apis-permissionrequestresult.md) + - application/[ProcessRunningInfo](js-apis-processrunninginfo.md) + - application/[ServiceExtensionContext](js-apis-service-extension-context.md) + - application/[shellCmdResult](js-apis-application-shellCmdResult.md) + +- Common Event and Notification + + - [@ohos.commonEvent](js-apis-commonEvent.md) + - [@ohos.events.emitter](js-apis-emitter.md) + - [@ohos.notification](js-apis-notification.md) + - [@ohos.reminderAgent](js-apis-reminderAgent.md) + - application/[EventHub](js-apis-eventhub.md) + +- Bundle Management + + - [@ohos.bundle](js-apis-Bundle.md) + - [@ohos.bundleState ](js-apis-deviceUsageStatistics.md) + - [@ohos.zlib](js-apis-zlib.md) + +- UI Page + + - [@ohos.animator](js-apis-animator.md) + +- Graphics + + - [@ohos.display ](js-apis-display.md) + - [@ohos.screenshot](js-apis-screenshot.md) + - [@ohos.window](js-apis-window.md) + - [webgl](js-apis-webgl.md) + - [webgl2](js-apis-webgl2.md) + - Media - - [Audio Management](js-apis-audio.md) - - [Media](js-apis-media.md) - - [Image Processing](js-apis-image.md) - - [Camera](js-apis-camera.md) + + - [@ohos.multimedia.audio](js-apis-audio.md) + - [@ohos.multimedia.camera](js-apis-camera.md) + - [@ohos.multimedia.image](js-apis-image.md) + - [@ohos.multimedia.media](js-apis-media.md) + - [@ohos.multimedia.medialibrary](js-apis-medialibrary.md) + +- Resource Management + - [@ohos.i18n](js-apis-i18n.md) + - [@ohos.intl](js-apis-intl.md) + - [@ohos.resourceManager](js-apis-resource-manager.md) + +- Resource Scheduling + + - [@ohos.backgroundTaskManager](js-apis-backgroundTaskManager.md) + - [@ohos.workScheduler ](js-apis-workScheduler.md) + - [@ohos.WorkSchedulerExtensionAbility](js-apis-WorkSchedulerExtensionAbility.md) + +- Custom Management + + - [@ohos.configPolicy](js-apis-config-policy.md) + - [@ohos.enterpriseDeviceManager](js-apis-enterprise-device-manager.md) + - Security - - [User Authentication](js-apis-useriam-userauth.md) - - [Access Control](js-apis-abilityAccessCtrl.md) + + - [@ohos.abilityAccessCtrl](js-apis-abilityAccessCtrl.md) + - [@ohos.security.huks ](js-apis-huks.md) + - [@ohos.userIAM.userAuth ](js-apis-useriam-userauth.md) + - Data Management - - [Lightweight Storage9+](js-apis-data-preferences.md) - - [Lightweight Storage](js-apis-data-storage.md) - - [Distributed Data Management](js-apis-distributed-data.md) - - [Relational Database](js-apis-data-rdb.md) - - [Result Set](js-apis-data-resultset.md) - - [DataAbilityPredicates](js-apis-data-ability.md) - - [Settings](js-apis-settings.md) + + - [@ohos.data.dataAbility ](js-apis-data-ability.md) + - [@ohos.data.distributedData](js-apis-distributed-data.md) + - [@ohos.data.distributedDataObject](js-apis-data-distributedobject.md) + - [@ohos.data.preferences](js-apis-data-preferences.md) + - [@ohos.data.rdb](js-apis-data-rdb.md) + - [@ohos.settings](js-apis-settings.md) + - data/rdb/[resultSet](js-apis-data-resultset.md) + - File Management - - [File Management](js-apis-fileio.md) - - [Statfs](js-apis-statfs.md) - - [Environment](js-apis-environment.md) - - [Public File Access and Management](js-apis-filemanager.md) - - [App Storage Statistics](js-apis-storage-statistics.md) - - [Volume Management](js-apis-volumemanager.md) -- Account Management - - [OS Account Management](js-apis-osAccount.md) - - [Distributed Account Management](js-apis-distributed-account.md) - - [App Account Management](js-apis-appAccount.md) -- Telephony Service - - [Call](js-apis-call.md) - - [SMS](js-apis-sms.md) - - [SIM Management](js-apis-sim.md) - - [Radio](js-apis-radio.md) - - [Observer](js-apis-observer.md) - - [Cellular Data](js-apis-telephony-data.md) + + - [@ohos.environment](js-apis-environment.md) + - [@ohos.fileio](js-apis-fileio.md) + - [@ohos.fileManager](js-apis-filemanager.md) + - [@ohos.statfs](js-apis-statfs.md) + - [@ohos.storageStatistics](js-apis-storage-statistics.md) + - [@ohos.volumeManager](js-apis-volumemanager.md) + +- Telephony Service + + - [@ohos.contact](js-apis-contact.md) + - [@ohos.telephony.call](js-apis-call.md) + - [@ohos.telephony.observer](js-apis-observer.md) + - [@ohos.telephony.radio](js-apis-radio.md) + - [@ohos.telephony.sim](js-apis-sim.md) + - [@ohos.telephony.sms](js-apis-sms.md) + - [@ohos.telephony.data](js-apis-telephony-data.md) + - Network Management - - [Network Connection Management](js-apis-net-connection.md) - - [Socket Connection](js-apis-socket.md) - - [WebSocket Connection](js-apis-webSocket.md) - - [Data Request](js-apis-http.md) -- Network and Connectivity - - [WLAN](js-apis-wifi.md) - - [Bluetooth](js-apis-bluetooth.md) - - [RPC](js-apis-rpc.md) - - [Upload and Download](js-apis-request.md) -- Device Management - - [Sensor](js-apis-sensor.md) - - [Vibrator](js-apis-vibrator.md) - - [Brightness](js-apis-brightness.md) - - [Battery Info](js-apis-battery-info.md) - - [Power Management](js-apis-power.md) - - [Thermal Management](js-apis-thermal.md) - - [Running Lock](js-apis-runninglock.md) - - [Device Info](js-apis-device-info.md) - - [systemParameter](js-apis-system-parameter.md) - - [Device Management](js-apis-device-manager.md) - - [Window](js-apis-window.md) - - [Display](js-apis-display.md) - - [Update](js-apis-update.md) - - [USB](js-apis-usb.md) - - [Location](js-apis-geolocation.md) + - [@ohos.net.connection](js-apis-net-connection.md) + - [@ohos.net.http](js-apis-http.md) + - [@ohos.request](js-apis-request.md) + - [@ohos.net.socket](js-apis-socket.md) + - [@ohos.net.webSocket](js-apis-webSocket.md) + +- Connectivity + + - [@ohos.bluetooth](js-apis-bluetooth.md) + - [@ohos.rpc](js-apis-rpc.md) + - [@ohos.wifi](js-apis-wifi.md) + - [@ohos.wifiext](js-apis-wifiext.md) + - Basic Features - - [Application Context](js-apis-basic-features-app-context.md) - - [Console Logs](js-apis-basic-features-logs.md) - - [Page Routing](js-apis-basic-features-routes.md) - - [Timer](js-apis-basic-features-timer.md) - - [Screen Lock Management](js-apis-screen-lock.md) - - [Setting the System Time](js-apis-system-time.md) - - [Wallpaper](js-apis-wallpaper.md) - - [Pasteboard](js-apis-pasteboard.md) - - [Animation](js-apis-basic-features-animator.md) - - [WebGL](js-apis-webgl.md) - - [WebGL2](js-apis-webgl2.md) - - [Screenshot](js-apis-screenshot.md) - - [Accessibility](js-apis-accessibility.md) -- DFX - - [HiAppEvent](js-apis-hiappevent.md) - - [Performance Tracing](js-apis-hitracemeter.md) - - [Fault Logger](js-apis-faultLogger.md) - - [Distributed Call Chain Tracing](js-apis-hitracechain.md) - - [HiLog](js-apis-hilog.md) - - [HiChecker](js-apis-hichecker.md) - - [HiDebug](js-apis-hidebug.md) + + - [@ohos.accessibility](js-apis-accessibility.md) + - [@ohos.faultLogger](js-apis-faultLogger.md) + - [@ohos.hiAppEvent](js-apis-hiappevent.md) + - [@ohos.hichecker](js-apis-hichecker.md) + - [@ohos.hidebug](js-apis-hidebug.md) + - [@ohos.hilog](js-apis-hilog.md) + - [@ohos.hiTraceChain](js-apis-hitracechain.md) + - [@ohos.hiTraceMeter](js-apis-hitracemeter.md) + - [@ohos.inputMethod](js-apis-inputmethod.md) + - [@ohos.inputMethodEngine](js-apis-inputmethodengine.md) + - [@ohos.pasteboard](js-apis-pasteboard.md) + - [@ohos.screenLock](js-apis-screen-lock.md) + - [@ohos.systemTime](js-apis-system-time.md) + - [@ohos.wallpaper](js-apis-wallpaper.md) + - [Timer](js-apis-timer.md) + +- Device Management + + - [@ohos.batteryInfo ](js-apis-battery-info.md) + - [@ohos.brightness](js-apis-brightness.md) + - [@ohos.deviceInfo](js-apis-device-info.md) + - [@ohos.distributedHardware.deviceManager](js-apis-device-manager.md) + - [@ohos.geolocation](js-apis-geolocation.md) + - [@ohos.multimodalInput.inputConsumer](js-apis-inputconsumer.md) + - [@ohos.multimodalInput.inputDevice](js-apis-inputdevice.md) + - [@ohos.multimodalInput.inputEventClient](js-apis-inputeventclient.md) + - [@ohos.multimodalInput.inputMonitor](js-apis-inputmonitor.md) + - [@ohos.power](js-apis-power.md) + - [@ohos.runningLock](js-apis-runninglock.md) + - [@ohos.sensor](js-apis-sensor.md) + - [@ohos.systemParameter](js-apis-system-parameter.md) + - [@ohos.thermal](js-apis-thermal.md) + - [@ohos.update](js-apis-update.md) + - [@ohos.usb](js-apis-usb.md) + - [@ohos.vibrator](js-apis-vibrator.md) + +- Account Management + + - [@ohos.account.appAccount](js-apis-appAccount.md) + - [@ohos.account.distributedAccount](js-apis-distributed-account.md) + - [@ohos.account.osAccount](js-apis-osAccount.md) + - Language Base Class Library - - [Obtaining Process Information](js-apis-process.md) - - [URL String Parsing](js-apis-url.md) - - [URI String Parsing](js-apis-uri.md) - - [Util](js-apis-util.md) - - [XML Parsing and Generation](js-apis-xml.md) - - [XML-to-JavaScript Conversion](js-apis-convertxml.md) - - [Worker Startup](js-apis-worker.md) - - [Linear Container ArrayList](js-apis-arraylist.md) - - [Linear Container Deque](js-apis-deque.md) - - [Linear Container List](js-apis-list.md) - - [Linear Container LinkedList](js-apis-linkedlist.md) - - [Linear Container Queue](js-apis-queue.md) - - [Linear Container Stack](js-apis-stack.md) - - [Linear Container Vector](js-apis-vector.md) - - [Nonlinear Container HashSet](js-apis-hashset.md) - - [Nonlinear Container HashMap](js-apis-hashmap.md) - - [Nonlinear Container PlainArray](js-apis-plainarray.md) - - [Nonlinear Container TreeMap](js-apis-treemap.md) - - [Nonlinear Container TreeSet](js-apis-treeset.md) - - [Nonlinear Container LightWeightMap](js-apis-lightweightmap.md) - - [Nonlinear Container LightWeightSet](js-apis-lightweightset.md) -- Custom Management - - [Configuration Policy](js-apis-config-policy.md) + - [@ohos.convertxml](js-apis-convertxml.md) + - [@ohos.process](js-apis-process.md) + - [@ohos.uri](js-apis-uri.md) + - [@ohos.url](js-apis-url.md) + - [@ohos.util](js-apis-util.md) + - [@ohos.util.ArrayList](js-apis-arraylist.md) + - [@ohos.util.Deque](js-apis-deque.md) + - [@ohos.util.HashMap](js-apis-hashmap.md) + - [@ohos.util.HashSet](js-apis-hashset.md) + - [@ohos.util.LightWeightMap](js-apis-lightweightmap.md) + - [@ohos.util.LightWeightSet](js-apis-lightweightset.md) + - [@ohos.util.LinkedList](js-apis-linkedlist.md) + - [@ohos.util.List](js-apis-list.md) + - [@ohos.util.PlainArray](js-apis-plainarray.md) + - [@ohos.util.Queue](js-apis-queue.md) + - [@ohos.util.Stack](js-apis-stack.md) + - [@ohos.util.TreeMap](js-apis-treemap.md) + - [@ohos.util.TreeSet](js-apis-treeset.md) + - [@ohos.util.Vector](js-apis-vector.md) + - [@ohos.worker](js-apis-worker.md) + - [@ohos.xml](js-apis-xml.md) + +- Test + - [@ohos.application.testRunner](js-apis-testRunner.md) + - [@ohos.uitest](js-apis-uitest.md) + +- APIs No Longer Maintained + + - [@ohos.bytrace](js-apis-bytrace.md) + - [@ohos.data.storage](js-apis-data-storage.md) + - [@system.app](js-apis-system-app.md) + - [@system.mediaquery](js-apis-system-mediaquery.md) + - [@system.router](js-apis-system-router.md) + - [@system.sensor](js-apis-system-sensor.md) + - [@system.vibrator](js-apis-system-vibrate.md) + - [console](js-apis-logs.md) \ No newline at end of file diff --git a/en/application-dev/reference/apis/js-apis-media.md b/en/application-dev/reference/apis/js-apis-media.md index 1ae5995b37..44a421a501 100644 --- a/en/application-dev/reference/apis/js-apis-media.md +++ b/en/application-dev/reference/apis/js-apis-media.md @@ -2455,7 +2455,7 @@ Describes the video recording parameters. | profile | [VideoRecorderProfile](#videorecorderprofile9) | Yes | Video recording profile. | | rotation | number | No | Rotation angle of the recorded video. | | location | [Location](#location) | No | Geographical location of the recorded video. | -| url | string | Yes | Video output URL. Supported: fd://xx (fd number)
![](figures/zh-cn_image_url.png)
The file must be created by the caller and granted with proper permissions.| +| url | string | Yes | Video output URL. Supported: fd://xx (fd number)
![](figures/en-us_image_url.png)
The file must be created by the caller and granted with proper permissions. | ## AudioSourceType9+ diff --git a/en/website.md b/en/website.md index ae9d754ed8..db7d83641d 100644 --- a/en/website.md +++ b/en/website.md @@ -1,31 +1,696 @@ -# Learn About OpenHarmony +- [Application Development Overview](application-dev-guide.md) +- Quick Start + - [Directory Structure](quick-start/package-structure.md) + - [Resource File Categories](quick-start/basic-resource-file-categories.md) +- Development + - [Ability Development](ability/Readme-EN.md) + - [Ability Framework Overview](ability/ability-brief.md) + - FA Model + - [FA Model Overview](ability/fa-brief.md) + - [Page Ability Development](ability/fa-pageability.md) + - [Service Ability Development](ability/fa-serviceability.md) + - [Data Ability Development](ability/fa-dataability.md) + - [FA Widget Development](ability/fa-formability.md) -- [OpenHarmony Project](OpenHarmony-Overview.md) -- [Glossary](device-dev/glossary/glossary.md) -- OpenHarmony Release Notes - - OpenHarmony 3.x Releases - - [OpenHarmony v3.1 Beta (2021-12-31)](release-notes/OpenHarmony-v3.1-beta.md) - - [OpenHarmony v3.0.1 LTS (2022-01-12)](release-notes/OpenHarmony-v3.0.1-LTS.md) - - [OpenHarmony v3.0 LTS (2021-09-30)](release-notes/OpenHarmony-v3.0-LTS.md) - - - OpenHarmony 2.x Releases - - [OpenHarmony v2.2 beta2 (2021-08-04)](release-notes/OpenHarmony-v2.2-beta2.md) - - [OpenHarmony 2.0 Canary (2021-06-01)](release-notes/OpenHarmony-2-0-Canary.md) - - - OpenHarmony 1.x Releases - - [OpenHarmony v1.1.4 LTS (2022-02-11)](release-notes/OpenHarmony-v1-1-4-LTS.md) - - [OpenHarmony v1.1.3 LTS (2021-09-30)](release-notes/OpenHarmony-v1-1-3-LTS.md) - - [OpenHarmony v1.1.2 LTS (2021-08-04)](release-notes/OpenHarmony-v1.1.2-LTS.md) - - [OpenHarmony 1.1.1 LTS (2021-06-22)](release-notes/OpenHarmony-1-1-1-LTS.md) - - [OpenHarmony 1.1.0 LTS (2021-04-01)](release-notes/OpenHarmony-1-1-0-LTS.md) - - [OpenHarmony 1.0 (2020-09-10)](release-notes/OpenHarmony-1-0.md) -- Contribution - - [Contribution](contribute/contribution.md) - - [Code of Conduct](contribute/code-of-conduct.md) - - [Code Contribution](contribute/code-contribution.md) - - [Contribution Process](contribute/contribution-process.md) - - [Auto-Test](readme/test_subsystem.md) - - [Documentation Contribution](contribute/documentation-contribution.md) - - [Writing Instructions](contribute/writing-instructions.md) - - [Communication in Community](contribute/communication-in-community.md) - - [FAQs](contribute/FAQ.md) \ No newline at end of file + - Other + - [Ability Assistant Usage](ability/ability-assistant-guidelines.md) + - [UI](ui/Readme-EN.md) + - [ArkUI Overview](arkui-overview.md) + - JavaScript-based Web-Like Development Paradigm + - [Overview](ui/ui-js-overview.md) + - Framework + - [File Organization](ui/js-framework-file.md) + - ["js" Tag](ui/js-framework-js-tag.md) + - [app.js](ui/js-framework-js-file.md) + - Syntax + - [HML](ui/js-framework-syntax-hml.md) + - [CSS](ui/js-framework-syntax-css.md) + - [JavaScript](ui/js-framework-syntax-js.md) + - [Lifecycle](ui/js-framework-lifecycle.md) + - [Resource Limitations and Access](ui/js-framework-resource-restriction.md) + - [Multi-Language Capability](ui/js-framework-multiple-languages.md) + - Building the UI + - [Component Overview](ui/ui-js-building-ui-component.md) + - Building the Layout + - [Layout Description](ui/ui-js-building-ui-layout-intro.md) + - [Adding Title and Paragraph Text](ui/ui-js-building-ui-layout-text.md) + - [Adding an Image](ui/ui-js-building-ui-layout-image.md) + - [Adding a Comment](ui/ui-js-building-ui-layout-comment.md) + - [Adding a Container](ui/ui-js-building-ui-layout-external-container.md) + - [Adding Interactions](ui/ui-js-building-ui-interactions.md) + - [Developing Animations](ui/ui-js-building-ui-animation.md) + - [Defining Events](ui/ui-js-building-ui-event.md) + - [Defining Page Routes](ui/ui-js-building-ui-routes.md) + - Common Component Development Guidelines + - Container Components + - [List](ui/ui-js-components-list.md) + - [Dialog](ui/ui-js-components-dialog.md) + - [Form](ui/ui-js-components-form.md) + - [Stepper](ui/ui-js-components-stepper.md) + - [Tabs](ui/ui-js-component-tabs.md) + - Basic Components + - [Text](ui/ui-js-components-text.md) + - [Input](ui/ui-js-components-input.md) + - [Button](ui/ui-js-components-button.md) + - [Picker](ui/ui-js-components-picker.md) + - [Image](ui/ui-js-components-images.md) + - Animation Development Guidelines + - CSS Animation + - [Defining Attribute Style Animations](ui/ui-js-animate-attribute-style.md) + - [Defining Animations with the transform Attribute](ui/ui-js-animate-transform.md) + - [Defining Animations with the background-position Attribute](ui/ui-js-animate-background-position-style.md) + - [Defining Animations for SVG Components](ui/ui-js-animate-svg.md) + - JS Animation + - [Component Animation](ui/ui-js-animate-component.md) + - Interpolator Animation + - [Animation Effect](ui/ui-js-animate-dynamic-effects.md) + - [Animation Frame](ui/ui-js-animate-frame.md) + - [Custom Components](ui/ui-js-custom-components.md) + - TypeScript-based Declarative Development Paradigm + - [Overview](ui/ui-ts-overview.md) + - Framework Overview + - File Organization + - [Directory Structure](ui/ts-framework-directory.md) + - [Rules for Accessing Application Code Files](ui/ts-framework-file-access-rules.md) + - ["js" Tag](ui/ts-framework-js-tag.md) + - Resource Access + - [Accessing Application Resources](ui/ts-application-resource-access.md) + - [Accessing System Resources](ui/ts-system-resource-access.md) + - [Media Resource Types](ui/ts-media-resource-type.md) + - [Pixel Units](ui/ts-pixel-units.md) + - [Types](ui/ts-types.md) + - Declarative Syntax + - [Overview](ui/ts-syntax-intro.md) + - General UI Description Specifications + - [Basic Concepts](ui/ts-general-ui-concepts.md) + - Declarative UI Description Specifications + - [Parameterless Configuration](ui/ts-parameterless-configuration.md) + - [Configuration with Mandatory Parameters](ui/ts-configuration-with-mandatory-parameters.md) + - [Attribution Configuration](ui/ts-attribution-configuration.md) + - [Event Configuration](ui/ts-event-configuration.md) + - [Child Component Configuration](ui/ts-child-component-configuration.md) + - Componentization + - [@Component](ui/ts-component-based-component.md) + - [@Entry](ui/ts-component-based-entry.md) + - [@Preview](ui/ts-component-based-preview.md) + - [@Builder](ui/ts-component-based-builder.md) + - [@Extend](ui/ts-component-based-extend.md) + - [@CustomDialog](ui/ts-component-based-customdialog.md) + - About UI State Management + - [Basic Concepts](ui/ts-ui-state-mgmt-concepts.md) + - Managing Component States + - [@State](ui/ts-component-states-state.md) + - [@Prop](ui/ts-component-states-prop.md) + - [@Link](ui/ts-component-states-link.md) + - Managing Application States + - [AppStorage](ui/ts-application-states-appstorage.md) + - [PersistentStorage](ui/ts-application-states-apis-persistentstorage.md) + - [Environment](ui/ts-application-states-apis-environment.md) + - Managing Other States + - [@observed and @objectLink](ui/ts-other-states-observed-objectlink.md) + - [@Consume and @Provide](ui/ts-other-states-consume-provide.md) + - [@Watch](ui/ts-other-states-watch.md) + - About Rendering Control Syntax + - [if/else](ui/ts-rending-control-syntax-if-else.md) + - [ForEach](ui/ts-rending-control-syntax-foreach.md) + - [LazyForEach](ui/ts-rending-control-syntax-lazyforeach.md) + - About @Component + - [build Function](ui/ts-function-build.md) + - [Custom Component Initialization](ui/ts-custom-component-initialization.md) + - [Custom Component Lifecycle Callbacks](ui/ts-custom-component-lifecycle-callbacks.md) + - [Example: Component Creation and Re-Initialization](ui/ts-component-creation-re-initialization.md) + - [Syntactic Sugar](ui/ts-syntactic-sugar.md) + - Experiencing the Declarative UI + - [Creating a Declarative UI Project](ui/ui-ts-creating-project.md) + - [Getting to Know Components](ui/ui-ts-components.md) + - [Creating a Simple Page](ui/ui-ts-creating-simple-page.md) + - Defining Page Layout and Connection + - [Building a Food Data Model](ui/ui-ts-building-data-model.md) + - [Building a Food Category List Layout](ui/ui-ts-building-category-list-layout.md) + - [Building a Food Category Grid Layout](ui/ui-ts-building-category-grid-layout.md) + - [Implementing Page Redirection and Data Transmission](ui/ui-ts-page-redirection-data-transmission.md) + - Basic Functions + - Window Manager + - Window + - [Window Overview](windowmanager/window-overview.md) + - [Window Development](windowmanager/window-guidelines.md) + - Display + - [Display Overview](windowmanager/display-overview.md) + - [Display Development](windowmanager/display-guidelines.md) + - Screenshot + - [Screenshot Overview](windowmanager/screenshot-overview.md) + - [Screenshot Development](windowmanager/screenshot-guidelines.md) + - WebGL + - [WebGL Overview](webgl/webgl-overview.md) + - [WebGL Development](webgl/webgl-guidelines.md) + - Media + - Audio + - [Audio Overview](media/audio-overview.md) + - [Audio Playback Development](media/audio-playback.md) + - [Audio Playback Development Using AudioRenderer](media/audio-renderer.md) + - [Audio Recording Development](media/audio-recorder.md) + - [Audio Recorder Development Using AudioCapturer](media/audio-capturer) + - Video + - [Video Playback Development](media/video-playback.md) + - [Video Recording Development](media/video-recorder.md) + - Image + - [Image Development](media/image.md) + - Security + - User Authentication + - [User Authentication Overview](security/userauth-overview.md) + - [User Authentication Development](security/userauth-guidelines.md) + - hapsigner + - [hapsigner Guide](security/hapsigntool-guidelines.md) + - Connectivity + - IPC & RPC + - [IPC & RPC Overview](connectivity/ipc-rpc-overview.md) + - [IPC & RPC Development Guidelines](connectivity/ipc-rpc-development-guideline.md) + - [Subscribing to State Changes of a Remote Object](connectivity/subscribe-remote-state.md) + - Data Management + - Distributed Data Service + - [Distributed Data Service Overview](database/database-mdds-overview.md) + - [Distributed Data Service Development](database/database-mdds-guidelines.md) + - Relational Database Overview + - [RDB Overview](database/database-relational-overview.md) + - [RDB Development](database/database-relational-guidelines.md) + - Lightweight Data Store + - [Lightweight Data Store Overview](database/database-preference-overview.md) + - [Lightweight Data Store Development](database/database-preference-guidelines.md) + - Agent-Powered Scheduled Reminders + - [Overview](background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md) + - [Development Guidelines](background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md) + - Background Task Management + - [Background Task Management Overview](background-task-management/background-task-overview.md) + - [Background Task Management Development](background-task-management/background-task-dev-guide.md) + - Device + - USB Service + - [USB Service Overview](device/usb-overview.md) + - [USB Service Development](device/usb-guidelines.md) + - Location + - [Location Overview](device/device-location-overview.md) + - [Obtaining Device Location Information](device/device-location-info.md) + - [Geocoding and Reverse Geocoding Capabilities](device/device-location-geocoding.md) + - Sensor + - [Sensor Overview](device/sensor-overview.md) + - [Sensor Development](device/sensor-guidelines.md) + - Sensor + - [Sensor Overview](device/sensor-overview.md) + - [Sensor Development](device/sensor-guidelines.md) + - Vibrator + - [vibrator-Overview.md](device/vibrator-overview.md) + - [Vibrator Development](device/vibrator-guidelines.md) + - Device Usage Statistics + - [Device Usage Statistics Overview](device-usage-statistics/device-usage-statistics-overview.md) + - [Device Usage Statistics Development](device-usage-statistics/device-usage-statistics-dev-guide.md) + - DFX + - Application Event Logging + - [Overview of Application Event Logging](dfx/hiappevent-overview.md) + - [Development Guidelines on Application Event Logging](dfx/hiappevent-guidelines.md) + - Performance Tracing + - [Overview of Performance Tracing](dfx/hitracemeter-overview.md) + - [Development of Performance Tracing](dfx/hitracemeter-guidelines.md) + - Distributed Call Chain Tracing + - [Overview of Distributed Call Chain Tracing](dfx/hitracechain-overview.md) + - [Development of Distributed Call Chain Tracing](dfx/hitracechain-guidelines.md) +- Tools + - [DevEco Studio (OpenHarmony) User Guide](quick-start/deveco-studio-user-guide-for-openharmony.md) +- Hands-On Tutorials + - [Samples](https://gitee.com/openharmony/app_samples/blob/master/README.md) +- API References + - Compent Reference (JavaScript-based Web-like Development Paradigm) + - Components + - Common + - [Universal Attributes](reference/arkui-js/js-components-common-attributes.md) + - [Universal Styles](reference/arkui-js/js-components-common-styles.md) + - [Universal Events](reference/arkui-js/js-components-common-events.md) + - [Universal Methods](reference/arkui-js/js-components-common-methods.md) + - [Animation Styles](reference/arkui-js/js-components-common-animation.md) + - [Gradient Styles](reference/arkui-js/js-components-common-gradient.md) + - [Transition Styles](reference/arkui-js/js-components-common-transition.md) + - [Custom Font Styles](reference/arkui-js/js-components-common-customizing-font.md) + - [Atomic Layout](reference/arkui-js/js-components-common-atomic-layout.md) + - Container Components + - [badge](reference/arkui-js/js-components-container-badge.md) + - [dialog](reference/arkui-js/js-components-container-dialog.md) + - [div](reference/arkui-js/js-components-container-div.md) + - [form](reference/arkui-js/js-components-container-form.md) + - [list](reference/arkui-js/js-components-container-list.md) + - [list-item](reference/arkui-js/js-components-container-list-item.md) + - [list-item-group](reference/arkui-js/js-components-container-list-item-group.md) + - [panel](reference/arkui-js/js-components-container-panel.md) + - [popup](reference/arkui-js/js-components-container-popup.md) + - [refresh](reference/arkui-js/js-components-container-refresh.md) + - [stack](reference/arkui-js/js-components-container-stack.md) + - [stepper](reference/arkui-js/js-components-container-stepper.md) + - [stepper-item](reference/arkui-js/js-components-container-stepper-item.md) + - [swiper](reference/arkui-js/js-components-container-swiper.md) + - [tabs](reference/arkui-js/js-components-container-tabs.md) + - [tab-bar](reference/arkui-js/js-components-container-tab-bar.md) + - [tab-content](reference/arkui-js/js-components-container-tab-content.md) + - Basic Components + - [button](reference/arkui-js/js-components-basic-button.md) + - [chart](reference/arkui-js/js-components-basic-chart.md) + - [divider](reference/arkui-js/js-components-basic-divider.md) + - [image](reference/arkui-js/js-components-basic-image.md) + - [image-animator](reference/arkui-js/js-components-basic-image-animator.md) + - [input](reference/arkui-js/js-components-basic-input.md) + - [label](reference/arkui-js/js-components-basic-label.md) + - [marquee](reference/arkui-js/js-components-basic-marquee.md) + - [menu](reference/arkui-js/js-components-basic-menu.md) + - [option](reference/arkui-js/js-components-basic-option.md) + - [picker](reference/arkui-js/js-components-basic-picker.md) + - [picker-view](reference/arkui-js/js-components-basic-picker-view.md) + - [piece](reference/arkui-js/js-components-basic-piece.md) + - [progress](reference/arkui-js/js-components-basic-progress.md) + - [qrcode](reference/arkui-js/js-components-basic-qrcode.md) + - [rating](reference/arkui-js/js-components-basic-rating.md) + - [richtext](reference/arkui-js/js-components-basic-richtext.md) + - [search](reference/arkui-js/js-components-basic-search.md) + - [select](reference/arkui-js/js-components-basic-select.md) + - [slider](reference/arkui-js/js-components-basic-slider.md) + - [span](reference/arkui-js/js-components-basic-span.md) + - [switch](reference/arkui-js/js-components-basic-switch.md) + - [text](reference/arkui-js/js-components-basic-text.md) + - [textarea](reference/arkui-js/js-components-basic-textarea.md) + - [toolbar](reference/arkui-js/js-components-basic-toolbar.md) + - [toolbar-item](reference/arkui-js/js-components-basic-toolbar-item.md) + - [toggle](reference/arkui-js/js-components-basic-toggle.md) + - [web](reference/arkui-js/js-components-basic-web.md) + - Media Components + - [video](reference/arkui-js/js-components-media-video.md) + - Canvas Components + - [canvas](reference/arkui-js/js-components-canvas-canvas.md) + - [CanvasRenderingContext2D](reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md) + - [Image](reference/arkui-js/js-components-canvas-image.md) + - [CanvasGradient](reference/arkui-js/js-components-canvas-canvasgradient.md) + - [ImageData](reference/arkui-js/js-components-canvas-imagedata.md) + - [Path2D](reference/arkui-js/js-components-canvas-path2d.md) + - [ImageBitmap](reference/arkui-js/js-components-canvas-imagebitmap.md) + - [OffscreenCanvas](reference/arkui-js/js-components-canvas-offscreencanvas.md) + - [OffscreenCanvasRenderingContext2D](reference/arkui-js/js-offscreencanvasrenderingcontext2d.md) + - Grid + - [Basic Concepts](reference/arkui-js/js-components-grid-basic-concepts.md) + - [grid-container](reference/arkui-js/js-components-grid-container.md) + - [grid-row](reference/arkui-js/js-components-grid-row.md) + - [grid-col](reference/arkui-js/js-components-grid-col.md) + - SVG Components + - [Universal Attributes](reference/arkui-js/js-components-svg-common-attributes.md) + - [svg](reference/arkui-js/js-components-svg.md) + - [rect](reference/arkui-js/js-components-svg-rect.md) + - [circle](reference/arkui-js/js-components-svg-circle.md) + - [ellipse](reference/arkui-js/js-components-svg-ellipse.md) + - [path](reference/arkui-js/js-components-svg-path.md) + - [line](reference/arkui-js/js-components-svg-line.md) + - [polyline](reference/arkui-js/js-components-svg-polyline.md) + - [polygon](reference/arkui-js/js-components-svg-polygon.md) + - [text](reference/arkui-js/js-components-svg-text.md) + - [tspan](reference/arkui-js/js-components-svg-tspan.md) + - [textPath](reference/arkui-js/js-components-svg-textpath.md) + - [animate](reference/arkui-js/js-components-svg-animate.md) + - [animateMotion](reference/arkui-js/js-components-svg-animatemotion.md) + - [animateTransform](reference/arkui-js/js-components-svg-animatetransform.md) + - Custom Components + - [Basic Usage](reference/arkui-js/js-components-custom-basic-usage.md) + - [Custom Events](reference/arkui-js/js-components-custom-events.md) + - [props](reference/arkui-js/js-components-custom-props.md) + - [Event Parameter](reference/arkui-js/js-components-custom-event-parameter.md) + - [slot](reference/arkui-js/js-components-custom-slot.md) + - [Lifecycle Definition](reference/arkui-js/js-components-custom-lifecycle.md) + - [Type Attributes](reference/arkui-js/js-appendix-types.md) + - Compent Reference (TypeScript-based Declarative Development Paradigm) + - Components + - Universal Components + - Universal Events + - [Click Event](reference/arkui-ts/ts-universal-events-click.md) + - [Touch](reference/arkui-ts/ts-universal-events-touch.md) + - [Show/Hide Event](reference/arkui-ts/ts-universal-events-show-hide.md) + - [Drag/Drop Event](reference/arkui-ts/ts-universal-events-drag-drop.md) + - [Key Event](reference/arkui-ts/ts-universal-events-key.md) + - [Focus Event](reference/arkui-ts/ts-universal-focus-event.md) + - [Mouse Event](reference/arkui-ts/ts-universal-mouse-key.md) + - [Component Area Change Event](reference/arkui-ts/ts-universal-component-area-change-event.md) + - Universal Attributes + - [Size](reference/arkui-ts/ts-universal-attributes-size.md) + - [Location](reference/arkui-ts/ts-universal-attributes-location.md) + - [Layout Constraints](reference/arkui-ts/ts-universal-attributes-layout-constraints.md) + - [Flex Layout](reference/arkui-ts/ts-universal-attributes-flex-layout.md) + - [Border Configuration](reference/arkui-ts/ts-universal-attributes-border.md) + - [Background](reference/arkui-ts/ts-universal-attributes-background.md) + - [Opacity](reference/arkui-ts/ts-universal-attributes-opacity.md) + - [Visibility](reference/arkui-ts/ts-universal-attributes-visibility.md) + - [Enable/Disable](reference/arkui-ts/ts-universal-attributes-enable.md) + - [Overlay](reference/arkui-ts/ts-universal-attributes-overlay.md) + - [Z-order Control](reference/arkui-ts/ts-universal-attributes-z-order.md) + - [Transformation](reference/arkui-ts/ts-universal-attributes-transformation.md) + - [Image Effect Configuration](reference/arkui-ts/ts-universal-attributes-image-effect.md) + - [Shape Clipping](reference/arkui-ts/ts-universal-attributes-sharp-clipping.md) + - [Text Style](reference/arkui-ts/ts-universal-attributes-text-style.md) + - [Grid](reference/arkui-ts/ts-universal-attributes-grid.md) + - [Gradient Color](reference/arkui-ts/ts-universal-attributes-gradient-color.md) + - [Popup Control](reference/arkui-ts/ts-universal-attributes-popup.md) + - [Menu Control](reference/arkui-ts/ts-universal-attributes-menu.md) + - [Click Control](reference/arkui-ts/ts-universal-attributes-click.md) + - [Focus Control](reference/arkui-ts/ts-universal-attributes-focus.md) + - [Hover Effect](reference/arkui-ts/ts-universal-attributes-hover-effect.md) + - [Component ID](reference/arkui-ts/ts-universal-attributes-component-id.md) + - [Touch Target](reference/arkui-ts/ts-universal-attributes-touch-target.md) + - [Polymorphic Style](reference/arkui-ts/ts-universal-attributes-polymorphic-style.md) + - Gesture Processing + - [Gesture Binding Methods](reference/arkui-ts/ts-gesture-settings.md) + - Basic Gestures + - [TapGesture](reference/arkui-ts/ts-basic-gestures-tapgesture.md) + - [LongPressGesture](reference/arkui-ts/ts-basic-gestures-longpressgesture.md) + - [PanGesture](reference/arkui-ts/ts-basic-gestures-pangesture.md) + - [PinchGesture](reference/arkui-ts/ts-basic-gestures-pinchgesture.md) + - [RotationGesture](reference/arkui-ts/ts-basic-gestures-rotationgesture.md) + - [SwipeGesture](reference/arkui-ts/ts-basic-gestures-swipegesture.md) + - [Combined Gestures](reference/arkui-ts/ts-combined-gestures.md) + - Basic Components + - [Blank](reference/arkui-ts/ts-basic-components-blank.md) + - [Button](reference/arkui-ts/ts-basic-components-button.md) + - [Checkbox](reference/arkui-ts/ts-basic-components-checkbox.md) + - [CheckboxGroup](reference/arkui-ts/ts-basic-components-checkboxgroup.md) + - [DataPanel](reference/arkui-ts/ts-basic-components-datapanel.md) + - [DatePicker](reference/arkui-ts/ts-basic-components-datepicker.md) + - [Divider](reference/arkui-ts/ts-basic-components-divider.md) + - [Gauge](reference/arkui-ts/ts-basic-components-gauge.md) + - [Image](reference/arkui-ts/ts-basic-components-image.md) + - [ImageAnimator](reference/arkui-ts/ts-basic-components-imageanimator.md) + - [LoadingProgress](reference/arkui-ts/ts-basic-components-loadingprogress.md) + - [Marquee](reference/arkui-ts/ts-basic-components-marquee.md) + - [Navigation](reference/arkui-ts/ts-basic-components-navigation.md) + - [PatternLock](reference/arkui-ts/ts-basic-components-patternlock.md) + - [PluginComponent](reference/arkui-ts/ts-basic-components-plugincomponent.md) + - [Progress](reference/arkui-ts/ts-basic-components-progress.md) + - [QRCode](reference/arkui-ts/ts-basic-components-qrcode.md) + - [Radio](reference/arkui-ts/ts-basic-components-radio.md) + - [Rating](reference/arkui-ts/ts-basic-components-rating.md) + - [RichText](reference/arkui-ts/ts-basic-components-richtext.md) + - [ScrollBar](reference/arkui-ts/ts-basic-components-scrollbar.md) + - [Search](reference/arkui-ts/ts-basic-components-search.md) + - [Select](reference/arkui-ts/ts-basic-components-select.md) + - [Slider](reference/arkui-ts/ts-basic-components-slider.md) + - [Span](reference/arkui-ts/ts-basic-components-span.md) + - [Stepper](reference/arkui-ts/ts-basic-components-stepper.md) + - [StepperItem](reference/arkui-ts/ts-basic-components-stepperitem.md) + - [Text](reference/arkui-ts/ts-basic-components-text.md) + - [TextArea](reference/arkui-ts/ts-basic-components-textarea.md) + - [TextClock](reference/arkui-ts/ts-basic-components-textclock.md) + - [TextInput](reference/arkui-ts/ts-basic-components-textinput.md) + - [TextPicker](reference/arkui-ts/ts-basic-components-textpicker.md) + - [TextTimer](reference/arkui-ts/ts-basic-components-texttimer.md) + - [TimePicker](reference/arkui-ts/ts-basic-components-timepicker.md) + - [Toggle](reference/arkui-ts/ts-basic-components-toggle.md) + - [Web](reference/arkui-ts/ts-basic-components-web.md) + - [Xcomponent](reference/arkui-ts/ts-basic-components-xcomponent.md) + - Container Components + - [AlphabetIndexer](reference/arkui-ts/ts-container-alphabet-indexer.md) + - [Badge](reference/arkui-ts/ts-container-badge.md) + - [Column](reference/arkui-ts/ts-container-column.md) + - [ColumnSplit](reference/arkui-ts/ts-container-columnsplit.md) + - [Counter](reference/arkui-ts/ts-container-counter.md) + - [Flex](reference/arkui-ts/ts-container-flex.md) + - [GridContainer](reference/arkui-ts/ts-container-gridcontainer.md) + - [Grid](reference/arkui-ts/ts-container-grid.md) + - [GridItem](reference/arkui-ts/ts-container-griditem.md) + - [List](reference/arkui-ts/ts-container-list.md) + - [ListItem](reference/arkui-ts/ts-container-listitem.md) + - [Navigator](reference/arkui-ts/ts-container-navigator.md) + - [Panel](reference/arkui-ts/ts-container-panel.md) + - [Refresh](reference/arkui-ts/ts-container-refresh.md) + - [Row](reference/arkui-ts/ts-container-row.md) + - [RowSplit](reference/arkui-ts/ts-container-rowsplit.md) + - [Scroll](reference/arkui-ts/ts-container-scroll.md) + - [SideBarContainer](reference/arkui-ts/ts-container-sidebarcontainer.md) + - [Stack](reference/arkui-ts/ts-container-stack.md) + - [Swiper](reference/arkui-ts/ts-container-swiper.md) + - [Tabs](reference/arkui-ts/ts-container-tabs.md) + - [TabContent](reference/arkui-ts/ts-container-tabcontent.md) + - Media Components + - [Video](reference/arkui-ts/ts-media-components-video.md) + - Drawing Components + - [Circle](reference/arkui-ts/ts-drawing-components-circle.md) + - [Ellipse](reference/arkui-ts/ts-drawing-components-ellipse.md) + - [Line](reference/arkui-ts/ts-drawing-components-line.md) + - [Polyline](reference/arkui-ts/ts-drawing-components-polyline.md) + - [Polygon](reference/arkui-ts/ts-drawing-components-polygon.md) + - [Path](reference/arkui-ts/ts-drawing-components-path.md) + - [Rect](reference/arkui-ts/ts-drawing-components-rect.md) + - [Shape](reference/arkui-ts/ts-drawing-components-shape.md) + - Canvas Components + - [Canvas](reference/arkui-ts/ts-components-canvas-canvas.md) + - [CanvasRenderingContext2D](reference/arkui-ts/ts-canvasrenderingcontext2d.md) + - [OffscreenCanvasRenderingConxt2D](reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md) + - [Lottie](reference/arkui-ts/ts-components-canvas-lottie.md) + - [Path2D](reference/arkui-ts/ts-components-canvas-path2d.md) + - [CanvasGradient](reference/arkui-ts/ts-components-canvas-canvasgradient.md) + - [ImageBitmap](reference/arkui-ts/ts-components-canvas-imagebitmap.md) + - [ImageData](reference/arkui-ts/ts-components-canvas-imagedata.md) + - Animation + - [Attribute Animation](reference/arkui-ts/ts-animatorproperty.md) + - [Explicit Animation](reference/arkui-ts/ts-explicit-animation.md) + - Transition Animation + - [Page Transition](reference/arkui-ts/ts-page-transition-animation.md) + - [Component Transition](reference/arkui-ts/ts-transition-animation-component.md) + - [Transition of Shared Elements](reference/arkui-ts/ts-transition-animation-shared-elements.md) + - [Motion Path Animation](reference/arkui-ts/ts-motion-path-animation.md) + - [Matrix Transformation](reference/arkui-ts/ts-matrix-transformation.md) + - [Interpolation Calculation](reference/arkui-ts/ts-interpolation-calculation.md) + - Global UI Methods + - Dialog Box + - [Alert Dialog Box](reference/arkui-ts/ts-methods-alert-dialog-box.md) + - [Action Sheet](reference/arkui-ts/ts-methods-action-sheet.md) + - [Custom Dialog Box](reference/arkui-ts/ts-methods-custom-dialog-box.md) + - [Date Picker Dialog Box](reference/arkui-ts/ts-methods-datepicker-dialog.md) + - [Text Picker Dialog Box](reference/arkui-ts/ts-methods-textpicker-dialog.md) + - [Menu](reference/arkui-ts/ts-methods-menu.md) + - [Built-in Enums](reference/arkui-ts/ts-appendix-enums.md) + - APIs + - Ability Framework + + - [@ohos.ability.dataUriUtils](reference/apis/js-apis-DataUriUtils.md) + - [@ohos.ability.errorCode ](reference/apis/js-apis-ability-errorcode.md) + - [@ohos.ability.wantConstant](reference/apis/js-apis-ability-wantConstant.md) + - [@ohos.application.Ability](reference/apis/js-apis-application-ability.md) + - [@ohos.application.AbilityConstant](reference/apis/js-apis-application-abilityConstant.md) + - [@ohos.application.abilityDelegatorRegistry](reference/apis/js-apis-abilityDelegatorRegistry.md) + - [@ohos.application.AbilityStage ](reference/apis/js-apis-application-abilitystage.md) + - [@ohos.application.appManager](reference/apis/js-apis-appmanager.md) + - [@ohos.application.Configuration](reference/apis/js-apis-configuration.md) + - [@ohos.application.ConfigurationConstant](reference/apis/js-apis-configurationconstant.md) + - [@ohos.application.DataShareExtensionAbility](reference/apis/js-apis-application-DataShareExtensionAbility.md) + - [@ohos.ability.featureAbility](reference/apis/js-apis-featureAbility.md) + - [@ohos.application.formBindingData](reference/apis/js-apis-formbindingdata.md) + - [@ohos.application.FormExtension](reference/apis/js-apis-formextension.md) + - [@ohos.application.formError](reference/apis/js-apis-formerror.md) + - [@ohos.application.formHost](reference/apis/js-apis-formhost.md) + - [@ohos.application.formInfo](reference/apis/js-apis-formInfo.md) + - [@ohos.application.missionManager](reference/apis/js-apis-missionManager.md) + - [@ohos.application.formProvider](reference/apis/js-apis-formprovider.md) + - [@ohos.ability.particleAbility](reference/apis/js-apis-particleAbility.md) + - [@ohos.application.ServiceExtensionAbility](reference/apis/js-apis-service-extension-ability.md) + - [@ohos.application.StartOptions](reference/apis/js-apis-application-StartOptions.md) + - [@ohos.application.StaticSubscriberExtensionAbility](reference/apis/js-apis-application-staticSubscriberExtensionAbility.md) + - [@ohos.application.uriPermissionManager](reference/apis/js-apis-uripermissionmanager.md) + - [@ohos.application.Want](reference/apis/js-apis-application-Want.md) + - [@ohos.wantAgent](reference/apis/js-apis-wantAgent.md) + - ability/[dataAbilityHelper](reference/apis/js-apis-dataAbilityHelper.md) + - app/[context](reference/apis/js-apis-Context.md) + - application/[AbilityContext](reference/apis/js-apis-ability-context.md) + - application/[abilityDelegator](reference/apis/js-apis-application-abilityDelegator.md) + - application/[abilityDelegatorArgs](reference/apis/js-apis-application-abilityDelegatorArgs.md) + - application/[abilityMonitor](reference/apis/js-apis-application-abilityMonitor.md) + - application/[AbilityRunningInfo](reference/apis/js-apis-abilityrunninginfo.md) + - application/[AbilityStageContext](reference/apis/js-apis-abilitystagecontext.md) + - application/[Context](reference/apis/js-apis-application-context.md) + - application/[ExtensionContext](reference/apis/js-apis-extension-context.md) + - application/[ExtensionRunningInfo](reference/apis/js-apis-extensionrunninginfo.md) + - application/[FormExtensionContext](reference/apis/js-apis-formextensioncontext.md) + - application/[MissionSnapshot](reference/apis/js-apis-application-MissionSnapshot.md) + - application/[PermissionRequestResult](reference/apis/js-apis-permissionrequestresult.md) + - application/[ProcessRunningInfo](reference/apis/js-apis-processrunninginfo.md) + - application/[ServiceExtensionContext](reference/apis/js-apis-service-extension-context.md) + - application/[shellCmdResult](reference/apis/js-apis-application-shellCmdResult.md) + + - Common Event and Notification + + - [@ohos.commonEvent](reference/apis/js-apis-commonEvent.md) + - [@ohos.events.emitter](reference/apis/js-apis-emitter.md) + - [@ohos.notification](reference/apis/js-apis-notification.md) + - [@ohos.reminderAgent](reference/apis/js-apis-reminderAgent.md) + - application/[EventHub](reference/apis/js-apis-eventhub.md) + + - Bundle Management + + - [@ohos.bundle](reference/apis/js-apis-Bundle.md) + - [@ohos.bundleState ](reference/apis/js-apis-deviceUsageStatistics.md) + - [@ohos.zlib](reference/apis/js-apis-zlib.md) + + - UI Page + + - [@ohos.animator](reference/apis/js-apis-animator.md) + + - Graphics + + - [@ohos.display ](reference/apis/js-apis-display.md) + - [@ohos.screenshot](reference/apis/js-apis-screenshot.md) + - [@ohos.window](reference/apis/js-apis-window.md) + - [webgl](reference/apis/js-apis-webgl.md) + - [webgl2](reference/apis/js-apis-webgl2.md) + + - Media + + - [@ohos.multimedia.audio](reference/apis/js-apis-audio.md) + - [@ohos.multimedia.camera](reference/apis/js-apis-camera.md) + - [@ohos.multimedia.image](reference/apis/js-apis-image.md) + - [@ohos.multimedia.media](reference/apis/js-apis-media.md) + - [@ohos.multimedia.medialibrary](reference/apis/js-apis-medialibrary.md) + + - Resource Management + - [@ohos.i18n](reference/apis/js-apis-i18n.md) + - [@ohos.intl](reference/apis/js-apis-intl.md) + - [@ohos.resourceManager](reference/apis/js-apis-resource-manager.md) + + - Resource Scheduling + + - [@ohos.backgroundTaskManager](reference/apis/js-apis-backgroundTaskManager.md) + - [@ohos.workScheduler ](reference/apis/js-apis-workScheduler.md) + - [@ohos.WorkSchedulerExtensionAbility](reference/apis/js-apis-WorkSchedulerExtensionAbility.md) + + - Custom Management + + - [@ohos.configPolicy](reference/apis/js-apis-config-policy.md) + - [@ohos.enterpriseDeviceManager](reference/apis/js-apis-enterprise-device-manager.md) + + - Security + + - [@ohos.abilityAccessCtrl](reference/apis/js-apis-abilityAccessCtrl.md) + - [@ohos.security.huks ](reference/apis/js-apis-huks.md) + - [@ohos.userIAM.userAuth ](reference/apis/js-apis-useriam-userauth.md) + + - Data Management + + - [@ohos.data.dataAbility ](reference/apis/js-apis-data-ability.md) + - [@ohos.data.distributedData](reference/apis/js-apis-distributed-data.md) + - [@ohos.data.distributedDataObject](reference/apis/js-apis-data-distributedobject.md) + - [@ohos.data.preferences](reference/apis/js-apis-data-preferences.md) + - [@ohos.data.rdb](reference/apis/js-apis-data-rdb.md) + - [@ohos.settings](reference/apis/js-apis-settings.md) + - data/rdb/[resultSet](reference/apis/js-apis-data-resultset.md) + + - File Management + + - [@ohos.environment](reference/apis/js-apis-environment.md) + - [@ohos.fileio](reference/apis/js-apis-fileio.md) + - [@ohos.fileManager](reference/apis/js-apis-filemanager.md) + - [@ohos.statfs](reference/apis/js-apis-statfs.md) + - [@ohos.storageStatistics](reference/apis/js-apis-storage-statistics.md) + - [@ohos.volumeManager](reference/apis/js-apis-volumemanager.md) + + - Telephony Service + + - [@ohos.contact](reference/apis/js-apis-contact.md) + - [@ohos.telephony.call](reference/apis/js-apis-call.md) + - [@ohos.telephony.observer](reference/apis/js-apis-observer.md) + - [@ohos.telephony.radio](reference/apis/js-apis-radio.md) + - [@ohos.telephony.sim](reference/apis/js-apis-sim.md) + - [@ohos.telephony.sms](reference/apis/js-apis-sms.md) + - [@ohos.telephony.data](reference/apis/js-apis-telephony-data.md) + + - Network Management + - [@ohos.net.connection](reference/apis/js-apis-net-connection.md) + - [@ohos.net.http](reference/apis/js-apis-http.md) + - [@ohos.request](reference/apis/js-apis-request.md) + - [@ohos.net.socket](reference/apis/js-apis-socket.md) + - [@ohos.net.webSocket](reference/apis/js-apis-webSocket.md) + + - Connectivity + + - [@ohos.bluetooth](reference/apis/js-apis-bluetooth.md) + - [@ohos.rpc](reference/apis/js-apis-rpc.md) + - [@ohos.wifi](reference/apis/js-apis-wifi.md) + - [@ohos.wifiext](reference/apis/js-apis-wifiext.md) + + - Basic Features + + - [@ohos.accessibility](reference/apis/js-apis-accessibility.md) + - [@ohos.faultLogger](reference/apis/js-apis-faultLogger.md) + - [@ohos.hiAppEvent](reference/apis/js-apis-hiappevent.md) + - [@ohos.hichecker](reference/apis/js-apis-hichecker.md) + - [@ohos.hidebug](reference/apis/js-apis-hidebug.md) + - [@ohos.hilog](reference/apis/js-apis-hilog.md) + - [@ohos.hiTraceChain](reference/apis/js-apis-hitracechain.md) + - [@ohos.hiTraceMeter](reference/apis/js-apis-hitracemeter.md) + - [@ohos.inputMethod](reference/apis/js-apis-inputmethod.md) + - [@ohos.inputMethodEngine](reference/apis/js-apis-inputmethodengine.md) + - [@ohos.pasteboard](reference/apis/js-apis-pasteboard.md) + - [@ohos.screenLock](reference/apis/js-apis-screen-lock.md) + - [@ohos.systemTime](reference/apis/js-apis-system-time.md) + - [@ohos.wallpaper](reference/apis/js-apis-wallpaper.md) + - [Timer](reference/apis/js-apis-timer.md) + + - Device Management + + - [@ohos.batteryInfo ](reference/apis/js-apis-battery-info.md) + - [@ohos.brightness](reference/apis/js-apis-brightness.md) + - [@ohos.deviceInfo](reference/apis/js-apis-device-info.md) + - [@ohos.distributedHardware.deviceManager](reference/apis/js-apis-device-manager.md) + - [@ohos.geolocation](reference/apis/js-apis-geolocation.md) + - [@ohos.multimodalInput.inputConsumer](reference/apis/js-apis-inputconsumer.md) + - [@ohos.multimodalInput.inputDevice](reference/apis/js-apis-inputdevice.md) + - [@ohos.multimodalInput.inputEventClient](reference/apis/js-apis-inputeventclient.md) + - [@ohos.multimodalInput.inputMonitor](reference/apis/js-apis-inputmonitor.md) + - [@ohos.power](reference/apis/js-apis-power.md) + - [@ohos.runningLock](reference/apis/js-apis-runninglock.md) + - [@ohos.sensor](reference/apis/js-apis-sensor.md) + - [@ohos.systemParameter](reference/apis/js-apis-system-parameter.md) + - [@ohos.thermal](reference/apis/js-apis-thermal.md) + - [@ohos.update](reference/apis/js-apis-update.md) + - [@ohos.usb](reference/apis/js-apis-usb.md) + - [@ohos.vibrator](reference/apis/js-apis-vibrator.md) + + - Account Management + + - [@ohos.account.appAccount](reference/apis/js-apis-appAccount.md) + - [@ohos.account.distributedAccount](reference/apis/js-apis-distributed-account.md) + - [@ohos.account.osAccount](reference/apis/js-apis-osAccount.md) + + - Language Base Class Library + + - [@ohos.convertxml](reference/apis/js-apis-convertxml.md) + - [@ohos.process](reference/apis/js-apis-process.md) + - [@ohos.uri](reference/apis/js-apis-uri.md) + - [@ohos.url](reference/apis/js-apis-url.md) + - [@ohos.util](reference/apis/js-apis-util.md) + - [@ohos.util.ArrayList](reference/apis/js-apis-arraylist.md) + - [@ohos.util.Deque](reference/apis/js-apis-deque.md) + - [@ohos.util.HashMap](reference/apis/js-apis-hashmap.md) + - [@ohos.util.HashSet](reference/apis/js-apis-hashset.md) + - [@ohos.util.LightWeightMap](reference/apis/js-apis-lightweightmap.md) + - [@ohos.util.LightWeightSet](reference/apis/js-apis-lightweightset.md) + - [@ohos.util.LinkedList](reference/apis/js-apis-linkedlist.md) + - [@ohos.util.List](reference/apis/js-apis-list.md) + - [@ohos.util.PlainArray](reference/apis/js-apis-plainarray.md) + - [@ohos.util.Queue](reference/apis/js-apis-queue.md) + - [@ohos.util.Stack](reference/apis/js-apis-stack.md) + - [@ohos.util.TreeMap](reference/apis/js-apis-treemap.md) + - [@ohos.util.TreeSet](reference/apis/js-apis-treeset.md) + - [@ohos.util.Vector](reference/apis/js-apis-vector.md) + - [@ohos.worker](reference/apis/js-apis-worker.md) + - [@ohos.xml](reference/apis/js-apis-xml.md) + + - Test + - [@ohos.application.testRunner](reference/apis/js-apis-testRunner.md) + - [@ohos.uitest](reference/apis/js-apis-uitest.md) + + - APIs No Longer Maintained + + - [@ohos.bytrace](reference/apis/js-apis-bytrace.md) + - [@ohos.data.storage](reference/apis/js-apis-data-storage.md) + - [@system.app](reference/apis/js-apis-system-app.md) + - [@system.bluetooth](reference/apis/js-apis-system-bluetooth.md) + - [@system.mediaquery](reference/apis/js-apis-system-mediaquery.md) + - [@system.router](reference/apis/js-apis-system-router.md) + - [@system.sensor](reference/apis/js-apis-system-sensor.md) + - [@system.vibrator](reference/apis/js-apis-system-vibrate.md) + - [console](reference/apis/js-apis-logs.md) \ No newline at end of file diff --git a/zh-cn/application-dev/application-dev-website.md b/zh-cn/application-dev/application-dev-website.md index cc12d8f7f4..a4505230e3 100644 --- a/zh-cn/application-dev/application-dev-website.md +++ b/zh-cn/application-dev/application-dev-website.md @@ -1,3 +1,4 @@ +# OpenHarmony应用开发文档 - [应用开发导读](application-dev-guide.md) - 快速开始 @@ -10,8 +11,9 @@ - 开发基础知识 - [应用开发包结构说明](quick-start/package-structure.md) - [资源文件的分类](quick-start/basic-resource-file-categories.md) + - [SysCap说明](quick-start/syscap.md) - 开发 - - [Ability开发](ability/Readme-CN.md) + - Ability开发 - [Ability框架概述](ability/ability-brief.md) - FA模型 - [FA模型综述](ability/fa-brief.md) @@ -28,7 +30,7 @@ - 其他 - [WantAgent使用指导](ability/wantagent.md) - [Ability助手使用指导](ability/ability-assistant-guidelines.md) - - [UI开发](ui/Readme-CN.md) + - UI开发 - [方舟开发框架(ArkUI)概述](ui/arkui-overview.md) - 基于JS扩展的类Web开发范式 - [概述](ui/ui-js-overview.md) @@ -80,6 +82,7 @@ - [Qrcode开发指导](ui/ui-js-components-qrcode.md) - [Search开发指导](ui/ui-js-components-search.md) - Canvas开发指导 + - [Canvas对象](ui/ui-js-components-canvas.md) - [CanvasRenderingContext2D对象](ui/ui-js-components-canvasrenderingcontext2d.md) - [Path2D对象](ui/ui-js-components-path2d.md) - [OffscreenCanvas对象](ui/ui-js-components-offscreencanvas.md) @@ -109,6 +112,8 @@ - [应用代码文件访问规则](ui/ts-framework-file-access-rules.md) - [js标签配置](ui/ts-framework-js-tag.md) - 资源访问 + - [访问应用资源](ui/ts-application-resource-access.md) + - [访问系统资源](ui/ts-system-resource-access.md) - [媒体资源类型说明](ui/ts-media-resource-type.md) - [像素单位](ui/ts-pixel-units.md) - [类型定义](ui/ts-types.md) @@ -154,6 +159,13 @@ - [自定义组件生命周期回调函数](ui/ts-custom-component-lifecycle-callbacks.md) - [组件创建和重新初始化示例](ui/ts-component-creation-re-initialization.md) - [语法糖](ui/ts-syntactic-sugar.md) + - 常见组件开发指导 + - [Button开发指导](ui/ui-ts-basic-components-button.md) + - [Web开发指导](ui/ui-ts-components-web.md) + - 常见布局开发指导 + - [弹性布局](ui/ui-ts-layout-flex.md) + - [栅格布局](ui/ui-ts-layout-grid-container.md) + - [媒体查询](ui/ui-ts-layout-mediaquery.md) - 体验声明式UI - [创建声明式UI工程](ui/ui-ts-creating-project.md) - [初识Component](ui/ui-ts-components.md) @@ -238,7 +250,7 @@ - [传感器开发概述](device/sensor-overview.md) - [传感器开发指导](device/sensor-guidelines.md) - 振动 - - [振动开发概述](device/vibrator-guidelines.md) + - [振动开发概述](device/vibrator-overview.md) - [振动开发指导](device/vibrator-guidelines.md) - 设备使用信息统计 - [设备使用信息统计概述](device-usage-statistics/device-usage-statistics-overview.md) @@ -426,7 +438,7 @@ - [Marquee](reference/arkui-ts/ts-basic-components-marquee.md) - [Navigation](reference/arkui-ts/ts-basic-components-navigation.md) - [PatternLock](reference/arkui-ts/ts-basic-components-patternlock.md) - - [PluginComponent](reference/arkui-ts/ts-basic-components-pluginComponent.md) + - [PluginComponent](reference/arkui-ts/ts-basic-components-plugincomponent.md) - [Progress](reference/arkui-ts/ts-basic-components-progress.md) - [QRCode](reference/arkui-ts/ts-basic-components-qrcode.md) - [Radio](reference/arkui-ts/ts-basic-components-radio.md) @@ -438,9 +450,10 @@ - [Slider](reference/arkui-ts/ts-basic-components-slider.md) - [Span](reference/arkui-ts/ts-basic-components-span.md) - [Stepper](reference/arkui-ts/ts-basic-components-stepper.md) - - [StepperItem](reference/arkui-ts/ts-basic-components-stepperitem.md) + - [StepperItem](reference/arkui-ts/ts-basic-components-stepperitem.md) - [Text](reference/arkui-ts/ts-basic-components-text.md) - [TextArea](reference/arkui-ts/ts-basic-components-textarea.md) + - [TextClock](reference/arkui-ts/ts-basic-components-textclock.md) - [TextInput](reference/arkui-ts/ts-basic-components-textinput.md) - [TextPicker](reference/arkui-ts/ts-basic-components-textpicker.md) - [TextTimer](reference/arkui-ts/ts-basic-components-texttimer.md) @@ -460,14 +473,12 @@ - [GridItem](reference/arkui-ts/ts-container-griditem.md) - [List](reference/arkui-ts/ts-container-list.md) - [ListItem](reference/arkui-ts/ts-container-listitem.md) - - [Navigator](reference/arkui-ts/ts-container-navigator.md) - + - [Navigator](reference/arkui-ts/ts-container-navigator.md) - [Panel](reference/arkui-ts/ts-container-panel.md) - [Refresh](reference/arkui-ts/ts-container-refresh.md) - [Row](reference/arkui-ts/ts-container-row.md) - [RowSplit](reference/arkui-ts/ts-container-rowsplit.md) - - [Scroll](reference/arkui-ts/ts-container-scroll.md) - + - [Scroll](reference/arkui-ts/ts-container-scroll.md) - [SideBarContainer](reference/arkui-ts/ts-container-sidebarcontainer.md) - [Stack](reference/arkui-ts/ts-container-stack.md) - [Swiper](reference/arkui-ts/ts-container-swiper.md) @@ -514,128 +525,248 @@ - [文档中涉及到的内置枚举值](reference/arkui-ts/ts-appendix-enums.md) - 接口参考 - Ability框架 - - [FeatureAbility模块](reference/apis/js-apis-featureAbility.md) - - [ParticleAbility模块](reference/apis/js-apis-particleAbility.md) - - [DataAbilityHelper模块](reference/apis/js-apis-dataAbilityHelper.md) - - [DataUriUtils模块](reference/apis/js-apis-DataUriUtils.md) - - [Bundle模块](reference/apis/js-apis-Bundle.md) - - [Context模块](reference/apis/js-apis-Context.md) - - 事件与通知 - - [CommonEvent模块](reference/apis/js-apis-commonEvent.md) - - [Notification模块](reference/apis/js-apis-notification.md) - - [后台代理提醒](reference/apis/js-apis-reminderAgent.md) - - 资源管理 - - [资源管理](reference/apis/js-apis-resource-manager.md) - - [国际化-Intl](reference/apis/js-apis-intl.md) - - [国际化-I18n](reference/apis/js-apis-i18n.md) + + - [@ohos.ability.dataUriUtils (DataUriUtils模块)](reference/apis/js-apis-DataUriUtils.md) + - [@ohos.ability.errorCode (ErrorCode)](reference/apis/js-apis-ability-errorCode.md) + - [@ohos.ability.wantConstant (wantConstant)](reference/apis/js-apis-ability-wantConstant.md) + - [@ohos.application.Ability (Ability)](reference/apis/js-apis-application-ability.md) + - [@ohos.application.AbilityConstant (AbilityConstant)](reference/apis/js-apis-application-abilityConstant.md) + - [@ohos.application.abilityDelegatorRegistry (AbilityDelegatorRegistry)](reference/apis/js-apis-abilityDelegatorRegistry.md) + - [@ohos.application.AbilityStage (AbilityStage)](reference/apis/js-apis-application-abilitystage.md) + - [@ohos.application.appManager (appManager)](reference/apis/js-apis-appmanager.md) + - [@ohos.application.Configuration (Configuration)](reference/apis/js-apis-configuration.md) + - [@ohos.application.ConfigurationConstant (ConfigurationConstant)](reference/apis/js-apis-configurationconstant.md) + - [@ohos.application.DataShareExtensionAbility (DataShareExtensionAbility)](reference/apis/js-apis-application-DataShareExtensionAbility.md) + - [@ohos.ability.featureAbility (FeatureAbility模块)](reference/apis/js-apis-featureAbility.md) + - [@ohos.application.formBindingData (卡片数据绑定类)](reference/apis/js-apis-formbindingdata.md) + - [@ohos.application.FormExtension (FormExtension)](reference/apis/js-apis-formextension.md) + - [@ohos.application.formError (FormError)](reference/apis/js-apis-formerror.md) + - [@ohos.application.formHost (FormHost)](reference/apis/js-apis-formhost.md) + - [@ohos.application.formInfo (FormInfo)](reference/apis/js-apis-formInfo.md) + - [@ohos.application.missionManager (missionManager)](reference/apis/js-apis-missionManager.md) + - [@ohos.application.formProvider (FormProvider)](reference/apis/js-apis-formprovider.md) + - [@ohos.ability.particleAbility (particleAbility模块)](reference/apis/js-apis-particleAbility.md) + - [@ohos.application.ServiceExtensionAbility (ServiceExtensionAbility)](reference/apis/js-apis-service-extension-ability.md) + - [@ohos.application.StartOptions (StartOptions)](reference/apis/js-apis-application-StartOptions.md) + - [@ohos.application.StaticSubscriberExtensionAbility (StaticSubscriberExtensionAbility)](reference/apis/js-apis-application-staticSubscriberExtensionAbility.md) + - [@ohos.application.uriPermissionManager (uriPermissionManager)](reference/apis/js-apis-uripermissionmanager.md) + - [@ohos.application.Want (Want)](reference/apis/js-apis-application-Want.md) + - [@ohos.wantAgent (WantAgent模块)](reference/apis/js-apis-wantAgent.md) + - ability/[dataAbilityHelper (DataAbilityHelper模块)](reference/apis/js-apis-dataAbilityHelper.md) + - app/[context (Context模块)](reference/apis/js-apis-Context.md) + - application/[AbilityContext (AbilityContext)](reference/apis/js-apis-ability-context.md) + - application/[abilityDelegator (AbilityDelegator)](reference/apis/js-apis-application-abilityDelegator.md) + - application/[abilityDelegatorArgs (AbilityDelegatorArgs)](reference/apis/js-apis-application-abilityDelegatorArgs.md) + - application/[abilityMonitor (AbilityMonitor)](reference/apis/js-apis-application-abilityMonitor.md) + - application/[AbilityRunningInfo (AbilityRunningInfo)](reference/apis/js-apis-abilityrunninginfo.md) + - application/[AbilityStageContext (AbilityStageContext)](reference/apis/js-apis-abilitystagecontext.md) + - application/[Context (Context)](reference/apis/js-apis-application-context.md) + - application/[ExtensionContext (ExtensionContext)](reference/apis/js-apis-extension-context.md) + - application/[ExtensionRunningInfo (ExtensionRunningInfo)](reference/apis/js-apis-extensionrunninginfo.md) + - application/[FormExtensionContext (FormExtensionContext)](reference/apis/js-apis-formextensioncontext.md) + - application/[MissionSnapshot (MissionSnapshot)](reference/apis/js-apis-application-MissionSnapshot.md) + - application/[PermissionRequestResult (PermissionRequestResult)](reference/apis/js-apis-permissionrequestresult.md) + - application/[ProcessRunningInfo (ProcessRunningInfo)](reference/apis/js-apis-processrunninginfo.md) + - application/[ServiceExtensionContext (ServiceExtensionContext)](reference/apis/js-apis-service-extension-context.md) + - application/[shellCmdResult (ShellCmdResult)](reference/apis/js-apis-application-shellCmdResult.md) + + - 公共事件与通知 + + - [@ohos.commonEvent (公共事件模块)](reference/apis/js-apis-commonEvent.md) + - [@ohos.events.emitter (Emitter)](reference/apis/js-apis-emitter.md) + - [@ohos.notification (Notification模块)](reference/apis/js-apis-notification.md) + - [@ohos.reminderAgent (后台代理提醒)](reference/apis/js-apis-reminderAgent.md) + - application/[EventHub (EventHub)](reference/apis/js-apis-eventhub.md) + + - 应用程序包管理 + + - [@ohos.bundle (Bundle模块)](reference/apis/js-apis-Bundle.md) + - [@ohos.bundleState (设备使用信息统计)](reference/apis/js-apis-deviceUsageStatistics.md) + - [@ohos.zlib (Zip模块)](reference/apis/js-apis-zlib.md) + + - UI界面 + + - [@ohos.animator (动画)](reference/apis/js-apis-animator.md) + - [@ohos.mediaquery (媒体查询)](reference/apis/js-apis-mediaquery.md) + - [@ohos.prompt (弹窗)](reference/apis/js-apis-prompt.md) + - [@ohos.router (页面路由)](reference/apis/js-apis-router.md) + + - 图形图像 + + - [@ohos.display (屏幕属性)](reference/apis/js-apis-display.md) + - [@ohos.screenshot (屏幕截图)](reference/apis/js-apis-screenshot.md) + - [@ohos.window (窗口)](reference/apis/js-apis-window.md) + - [webgl (WebGL)](reference/apis/js-apis-webgl.md) + - [webgl2 (WebGL2)](reference/apis/js-apis-webgl2.md) + - 媒体 - - [音频管理](reference/apis/js-apis-audio.md) - - [媒体服务](reference/apis/js-apis-media.md) - - [图片处理](reference/apis/js-apis-image.md) - - [相机管理](reference/apis/js-apis-camera.md) + + - [@ohos.multimedia.audio (音频管理)](reference/apis/js-apis-audio.md) + - [@ohos.multimedia.camera (相机管理)](reference/apis/js-apis-camera.md) + - [@ohos.multimedia.image (图片处理)](reference/apis/js-apis-image.md) + - [@ohos.multimedia.media (媒体服务)](reference/apis/js-apis-media.md) + - [@ohos.multimedia.medialibrary (媒体库管理)](reference/apis/js-apis-medialibrary.md) + + - 资源管理 + - [@ohos.i18n (国际化-I18n)](reference/apis/js-apis-i18n.md) + - [@ohos.intl (国际化-Intl)](reference/apis/js-apis-intl.md) + - [@ohos.resourceManager (资源管理)](reference/apis/js-apis-resource-manager.md) + + - 资源调度 + + - [@ohos.backgroundTaskManager (后台任务管理)](reference/apis/js-apis-backgroundTaskManager.md) + - [@ohos.workScheduler (延迟任务调度)](reference/apis/js-apis-workScheduler.md) + - [@ohos.WorkSchedulerExtensionAbility (延迟任务调度回调)](reference/apis/js-apis-WorkSchedulerExtensionAbility.md) + + - 定制管理 + + - [@ohos.configPolicy (配置策略)](reference/apis/js-apis-config-policy.md) + - [@ohos.enterpriseDeviceManager (企业设备管理)](reference/apis/js-apis-enterprise-device-manager.md) + - 安全 - - [用户认证](reference/apis/js-apis-useriam-userauth.md) - - [访问控制](reference/apis/js-apis-abilityAccessCtrl.md) - - [通用密钥库系统](reference/apis/js-apis-huks.md) + + - [@ohos.abilityAccessCtrl (访问控制管理)](reference/apis/js-apis-abilityAccessCtrl.md) + - [@ohos.security.huks (通用密钥库系统)](reference/apis/js-apis-huks.md) + - [@ohos.userIAM.userAuth (用户认证)](reference/apis/js-apis-useriam-userauth.md) + - [@system.cipher (加密算法)](reference/apis/js-apis-system-cipher.md) + - 数据管理 - - [轻量级存储](reference/apis/js-apis-data-preferences.md) - - [分布式数据管理](reference/apis/js-apis-distributed-data.md) - - [关系型数据库](reference/apis/js-apis-data-rdb.md) - - [结果集](reference/apis/js-apis-data-resultset.md) - - [DataAbility 谓词](reference/apis/js-apis-data-ability.md) - - [设置数据项名称](reference/apis/js-apis-settings.md) + + - [@ohos.data.dataAbility (DataAbility谓词)](reference/apis/js-apis-data-ability.md) + - [@ohos.data.distributedData (分布式数据管理)](reference/apis/js-apis-distributed-data.md) + - [@ohos.data.distributedDataObject (分布式数据对象)](reference/apis/js-apis-data-distributedobject.md) + - [@ohos.data.preferences (轻量级存储)](reference/apis/js-apis-data-preferences.md) + - [@ohos.data.rdb (关系型数据库)](reference/apis/js-apis-data-rdb.md) + - [@ohos.settings (设置数据项名称)](reference/apis/js-apis-settings.md) + - data/rdb/[resultSet (结果集)](reference/apis/js-apis-data-resultset.md) + - 文件管理 - - [文件管理](reference/apis/js-apis-fileio.md) - - [Statfs](reference/apis/js-apis-statfs.md) - - [目录环境](reference/apis/js-apis-environment.md) - - [公共文件访问与管理](reference/apis/js-apis-filemanager.md) - - [应用空间统计](reference/apis/js-apis-storage-statistics.md) - - [卷管理](reference/apis/js-apis-volumemanager.md) - - 账号管理 - - [系统帐号管理](reference/apis/js-apis-osAccount.md) - - [分布式帐号管理](reference/apis/js-apis-distributed-account.md) - - [应用帐号管理](reference/apis/js-apis-appAccount.md) + + - [@ohos.environment (目录环境能力)](reference/apis/js-apis-environment.md) + - [@ohos.fileio (文件管理)](reference/apis/js-apis-fileio.md) + - [@ohos.fileManager (公共文件访问与管理)](reference/apis/js-apis-filemanager.md) + - [@ohos.statfs (statfs)](reference/apis/js-apis-statfs.md) + - [@ohos.storageStatistics (应用空间统计)](reference/apis/js-apis-storage-statistics.md) + - [@ohos.volumeManager (卷管理)](reference/apis/js-apis-volumemanager.md) + - 电话服务 - - [拨打电话](reference/apis/js-apis-call.md) - - [短信服务](reference/apis/js-apis-sms.md) - - [SIM卡管理](reference/apis/js-apis-sim.md) - - [网络搜索](reference/apis/js-apis-radio.md) - - [observer](reference/apis/js-apis-observer.md) - - [蜂窝数据](reference/apis/js-apis-telephony-data.md) + + - [@ohos.contact (联系人)](reference/apis/js-apis-contact.md) + - [@ohos.telephony.call (拨打电话)](reference/apis/js-apis-call.md) + - [@ohos.telephony.observer (observer)](reference/apis/js-apis-observer.md) + - [@ohos.telephony.radio (网络搜索)](reference/apis/js-apis-radio.md) + - [@ohos.telephony.sim (SIM卡管理)](reference/apis/js-apis-sim.md) + - [@ohos.telephony.sms (短信服务)](reference/apis/js-apis-sms.md) + - [@ohos.telephony.data (蜂窝数据)](reference/apis/js-apis-telephony-data.md) + - 网络管理 - - [网络连接管理](reference/apis/js-apis-net-connection.md) - - [Socket连接](reference/apis/js-apis-socket.md) - - [WebSocket连接](reference/apis/js-apis-webSocket.md) - - [数据请求](reference/apis/js-apis-http.md) + - [@ohos.net.connection (网络连接管理)](reference/apis/js-apis-net-connection.md) + - [@ohos.net.http (数据请求)](reference/apis/js-apis-http.md) + - [@ohos.request (上传下载)](reference/apis/js-apis-request.md) + - [@ohos.net.socket (Socket连接)](reference/apis/js-apis-socket.md) + - [@ohos.net.webSocket (WebSocket连接)](reference/apis/js-apis-webSocket.md) + - 通信与连接 - - [WLAN](reference/apis/js-apis-wifi.md) - - [Bluetooth](reference/apis/js-apis-bluetooth.md) - - [RPC通信](reference/apis/js-apis-rpc.md) + + - [@ohos.bluetooth (蓝牙)](reference/apis/js-apis-bluetooth.md) + - [@ohos.connectedTag (有源标签)](reference/apis/js-apis-connectedTag.md) + - [@ohos.rpc (RPC通信)](reference/apis/js-apis-rpc.md) + - [@ohos.wifi (WLAN)](reference/apis/js-apis-wifi.md) + - [@ohos.wifiext (WLAN)](reference/apis/js-apis-wifiext.md) + + - 系统基础能力 + + - [@ohos.accessibility (辅助功能)](reference/apis/js-apis-accessibility.md) + - [@ohos.faultLogger (故障日志获取)](reference/apis/js-apis-faultLogger.md) + - [@ohos.hiAppEvent (应用打点)](reference/apis/js-apis-hiappevent.md) + - [@ohos.hichecker (检测模式)](reference/apis/js-apis-hichecker.md) + - [@ohos.hidebug (Debug调试)](reference/apis/js-apis-hidebug.md) + - [@ohos.hilog (日志打印)](reference/apis/js-apis-hilog.md) + - [@ohos.hiTraceChain (分布式跟踪)](reference/apis/js-apis-hitracechain.md) + - [@ohos.hiTraceMeter (性能打点)](reference/apis/js-apis-hitracemeter.md) + - [@ohos.inputMethod (输入法框架)](reference/apis/js-apis-inputmethod.md) + - [@ohos.inputMethodEngine (输入法服务)](reference/apis/js-apis-inputmethodengine.md) + - [@ohos.pasteboard (剪贴板)](reference/apis/js-apis-pasteboard.md) + - [@ohos.screenLock (锁屏管理)](reference/apis/js-apis-screen-lock.md) + - [@ohos.systemTime (设置系统时间)](reference/apis/js-apis-system-time.md) + - [@ohos.wallpaper (壁纸)](reference/apis/js-apis-wallpaper.md) + - [Timer (定时器)](reference/apis/js-apis-timer.md) + - 设备管理 - - [传感器](reference/apis/js-apis-sensor.md) - - [振动](reference/apis/js-apis-vibrator.md) - - [屏幕亮度](reference/apis/js-apis-brightness.md) - - [电量信息](reference/apis/js-apis-battery-info.md) - - [系统电源管理](reference/apis/js-apis-power.md) - - [热管理](reference/apis/js-apis-thermal.md) - - [Runninglock锁](reference/apis/js-apis-runninglock.md) - - [设备信息](reference/apis/js-apis-device-info.md) - - [系统属性](reference/apis/js-apis-system-parameter.md) - - [设备管理](reference/apis/js-apis-device-manager.md) - - [窗口](reference/apis/js-apis-window.md) - - [显示设备属性](reference/apis/js-apis-display.md) - - [升级](reference/apis/js-apis-update.md) - - [USB管理](reference/apis/js-apis-usb.md) - - [位置服务](reference/apis/js-apis-geolocation.md) - - [输入设备](reference/apis/js-apis-inputdevice.md) - - [组合按键](reference/apis/js-apis-inputconsumer.md) - - [输入监听](reference/apis/js-apis-inputmonitor.md) - - [事件注入](reference/apis/js-apis-inputeventclient.md) - - 基本功能 - - [应用上下文](reference/apis/js-apis-system-app.md) - - [日志打印](reference/apis/js-apis-logs.md) - - [页面路由](reference/apis/js-apis-system-router.md) - - [弹窗](reference/apis/js-apis-system-prompt.md) - - [应用配置](reference/apis/js-apis-system-configuration.md) - - [定时器](reference/apis/js-apis-timer.md) - - [设置系统时间](reference/apis/js-apis-system-time.md) - - [动画](reference/apis/js-apis-animator.md) - - [WebGL](reference/apis/js-apis-webgl.md) - - [WebGL2](reference/apis/js-apis-webgl2.md) - - [屏幕截图](reference/apis/js-apis-screenshot.md) - - [输入法框架](reference/apis/js-apis-inputmethod.md) - - [输入法服务](reference/apis/js-apis-inputmethodengine.md) - - [辅助功能](reference/apis/js-apis-accessibility.md) - - DFX - - [应用打点](reference/apis/js-apis-hiappevent.md) - - [性能打点](reference/apis/js-apis-hitracemeter.md) - - [故障日志获取](reference/apis/js-apis-faultLogger.md) - - [分布式跟踪](reference/apis/js-apis-hitracechain.md) - - [日志打印](reference/apis/js-apis-hilog.md) - - [检测模式](reference/apis/js-apis-hichecker.md) - - [Debug调试](reference/apis/js-apis-hidebug.md) + + - [@ohos.batteryInfo (电量信息)](reference/apis/js-apis-battery-info.md) + - [@ohos.brightness (屏幕亮度)](reference/apis/js-apis-brightness.md) + - [@ohos.deviceInfo (设备信息)](reference/apis/js-apis-device-info.md) + - [@ohos.distributedHardware.deviceManager (设备管理)](reference/apis/js-apis-device-manager.md) + - [@ohos.geolocation (位置服务)](reference/apis/js-apis-geolocation.md) + - [@ohos.multimodalInput.inputConsumer (组合按键)](reference/apis/js-apis-inputconsumer.md) + - [@ohos.multimodalInput.inputDevice (输入设备)](reference/apis/js-apis-inputdevice.md) + - [@ohos.multimodalInput.inputEventClient (注入按键)](reference/apis/js-apis-inputeventclient.md) + - [@ohos.multimodalInput.inputMonitor (输入监听)](reference/apis/js-apis-inputmonitor.md) + - [@ohos.power (系统电源管理)](reference/apis/js-apis-power.md) + - [@ohos.runningLock (Runninglock锁)](reference/apis/js-apis-runninglock.md) + - [@ohos.sensor (传感器)](reference/apis/js-apis-sensor.md) + - [@ohos.systemParameter (系统属性)](reference/apis/js-apis-system-parameter.md) + - [@ohos.thermal (热管理)](reference/apis/js-apis-thermal.md) + - [@ohos.update (升级)](reference/apis/js-apis-update.md) + - [@ohos.usb (USB管理)](reference/apis/js-apis-usb.md) + - [@ohos.vibrator (振动)](reference/apis/js-apis-vibrator.md) + + - 帐号管理 + + - [@ohos.account.appAccount (应用帐号管理)](reference/apis/js-apis-appAccount.md) + - [@ohos.account.distributedAccount (分布式帐号管理)](reference/apis/js-apis-distributed-account.md) + - [@ohos.account.osAccount (系统帐号管理)](reference/apis/js-apis-osAccount.md) + - 语言基础类库 - - [获取进程相关的信息](reference/apis/js-apis-process.md) - - [URL字符串解析](reference/apis/js-apis-url.md) - - [URI字符串解析](reference/apis/js-apis-uri.md) - - [util工具函数](reference/apis/js-apis-util.md) - - [xml解析与生成](reference/apis/js-apis-xml.md) - - [xml转换JavaScript](reference/apis/js-apis-convertxml.md) - - [启动一个worker](reference/apis/js-apis-worker.md) - - [线性容器ArrayList](reference/apis/js-apis-arraylist.md) - - [线性容器Deque](reference/apis/js-apis-deque.md) - - [线性容器List](reference/apis/js-apis-list.md) - - [线性容器LinkedList](reference/apis/js-apis-linkedlist.md) - - [线性容器Queue](reference/apis/js-apis-queue.md) - - [线性容器Stack](reference/apis/js-apis-stack.md) - - [线性容器Vector](reference/apis/js-apis-vector.md) - - [非线性容器HashSet](reference/apis/js-apis-hashset.md) - - [非线性容器HashMap](reference/apis/js-apis-hashmap.md) - - [非线性容器PlainArray](reference/apis/js-apis-plainarray.md) - - [非线性容器TreeMap](reference/apis/js-apis-treemap.md) - - [非线性容器TreeSet](reference/apis/js-apis-treeset.md) - - [非线性容器LightWeightMap](reference/apis/js-apis-lightweightmap.md) - - [非线性容器LightWeightSet](reference/apis/js-apis-lightweightset.md) - - 定制管理 - - [配置策略](reference/apis/js-apis-config-policy.md) - - [企业设备管理](reference/apis/js-apis-enterprise-device-manager.md) \ No newline at end of file + + - [@ohos.convertxml (xml转换JavaScript)](reference/apis/js-apis-convertxml.md) + - [@ohos.process (获取进程相关的信息)](reference/apis/js-apis-process.md) + - [@ohos.uri (URI字符串解析)](reference/apis/js-apis-uri.md) + - [@ohos.url (URL字符串解析)](reference/apis/js-apis-url.md) + - [@ohos.util (util工具函数)](reference/apis/js-apis-util.md) + - [@ohos.util.ArrayList (线性容器ArrayList)](reference/apis/js-apis-arraylist.md) + - [@ohos.util.Deque (线性容器Deque)](reference/apis/js-apis-deque.md) + - [@ohos.util.HashMap (非线性容器HashMap)](reference/apis/js-apis-hashmap.md) + - [@ohos.util.HashSet (非线性容器HashSet)](reference/apis/js-apis-hashset.md) + - [@ohos.util.LightWeightMap (非线性容器LightWeightMap)](reference/apis/js-apis-lightweightmap.md) + - [@ohos.util.LightWeightSet (非线性容器LightWeightSet)](reference/apis/js-apis-lightweightset.md) + - [@ohos.util.LinkedList (线性容器LinkedList)](reference/apis/js-apis-linkedlist.md) + - [@ohos.util.List (线性容器List)](reference/apis/js-apis-list.md) + - [@ohos.util.PlainArray (非线性容器PlainArray)](reference/apis/js-apis-plainarray.md) + - [@ohos.util.Queue (线性容器Queue)](reference/apis/js-apis-queue.md) + - [@ohos.util.Stack (线性容器Stack)](reference/apis/js-apis-stack.md) + - [@ohos.util.TreeMap (非线性容器TreeMap)](reference/apis/js-apis-treemap.md) + - [@ohos.util.TreeSet (非线性容器TreeSet)](reference/apis/js-apis-treeset.md) + - [@ohos.util.Vector (线性容器Vector)](reference/apis/js-apis-vector.md) + - [@ohos.worker (启动一个Worker)](reference/apis/js-apis-worker.md) + - [@ohos.xml (xml解析与生成)](reference/apis/js-apis-xml.md) + + - 测试 + - [@ohos.application.testRunner (TestRunner)](reference/apis/js-apis-testRunner.md) + - [@ohos.uitest (UiTest)](reference/apis/js-apis-uitest.md) + + - 已停止维护的接口 + + - [@ohos.bytrace (性能打点)](reference/apis/js-apis-bytrace.md) + - [@ohos.data.storage (轻量级存储)](reference/apis/js-apis-data-storage.md) + - [@system.app (应用上下文)](reference/apis/js-apis-system-app.md) + - [@system.battery (电量信息)](reference/apis/js-apis-system-battery.md) + - [@system.bluetooth (蓝牙)](reference/apis/js-apis-system-bluetooth.md) + - [@system.brightness (屏幕亮度)](reference/apis/js-apis-system-brightness.md) + - [@system.configuration (应用配置)](reference/apis/js-apis-system-configuration.md) + - [@system.device (设备信息)](reference/apis/js-apis-system-deviceinfo.md) + - [@system.fetch (数据请求)](reference/apis/js-apis-system-fetch.md) + - [@system.file (文件存储)](reference/apis/js-apis-system-file.md) + - [@system.geolocation (地理位置)](reference/apis/js-apis-system-location.md) + - [@system.mediaquery (媒体查询)](reference/apis/js-apis-system-mediaquery.md) + - [@system.network (网络状态)](reference/apis/js-apis-system-network.md) + - [@system.notification (通知消息)](reference/apis/js-apis-system-notification.md) + - [@system.package (应用管理)](reference/apis/js-apis-system-package.md) + - [@system.prompt (弹窗)](reference/apis/js-apis-system-prompt.md) + - [@system.request (上传下载)](reference/apis/js-apis-system-request.md) + - [@system.router (页面路由)](reference/apis/js-apis-system-router.md) + - [@system.sensor (传感器)](reference/apis/js-apis-system-sensor.md) + - [@system.storage (数据存储)](reference/apis/js-apis-system-storage.md) + - [@system.vibrator (振动)](reference/apis/js-apis-system-vibrate.md) + - [console (日志打印)](reference/apis/js-apis-logs.md) \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/Readme-CN.md b/zh-cn/application-dev/reference/apis/Readme-CN.md index 2f4560f5d6..752a0dc609 100644 --- a/zh-cn/application-dev/reference/apis/Readme-CN.md +++ b/zh-cn/application-dev/reference/apis/Readme-CN.md @@ -3,7 +3,7 @@ - Ability框架 - [@ohos.ability.dataUriUtils (DataUriUtils模块)](js-apis-DataUriUtils.md) - - [@ohos.ability.errorCode (ErrorCode)](js-apis-ability-errorcode.md) + - [@ohos.ability.errorCode (ErrorCode)](js-apis-ability-errorCode.md) - [@ohos.ability.wantConstant (wantConstant)](js-apis-ability-wantConstant.md) - [@ohos.application.Ability (Ability)](js-apis-application-ability.md) - [@ohos.application.AbilityConstant (AbilityConstant)](js-apis-application-abilityConstant.md) @@ -92,7 +92,7 @@ - [@ohos.backgroundTaskManager (后台任务管理)](js-apis-backgroundTaskManager.md) - [@ohos.workScheduler (延迟任务调度)](js-apis-workScheduler.md) - - [@ohos.WorkSchedulerExtensionAbility (延迟任务调度回调)](js-apis-workScheduler.md) + - [@ohos.WorkSchedulerExtensionAbility (延迟任务调度回调)](js-apis-WorkSchedulerExtensionAbility.md) - 定制管理 @@ -245,5 +245,4 @@ - [@system.sensor (传感器)](js-apis-system-sensor.md) - [@system.storage (数据存储)](js-apis-system-storage.md) - [@system.vibrator (振动)](js-apis-system-vibrate.md) - - [console (日志打印)](js-apis-logs.md) - + - [console (日志打印)](js-apis-logs.md) \ No newline at end of file diff --git a/zh-cn/application-dev/website.md b/zh-cn/application-dev/website.md index d2273e36d5..a4505230e3 100644 --- a/zh-cn/application-dev/website.md +++ b/zh-cn/application-dev/website.md @@ -1,6 +1,5 @@ # OpenHarmony应用开发文档 - [应用开发导读](application-dev-guide.md) - - 快速开始 - 快速入门 @@ -12,7 +11,7 @@ - 开发基础知识 - [应用开发包结构说明](quick-start/package-structure.md) - [资源文件的分类](quick-start/basic-resource-file-categories.md) - + - [SysCap说明](quick-start/syscap.md) - 开发 - Ability开发 - [Ability框架概述](ability/ability-brief.md) @@ -270,14 +269,11 @@ - [国际化开发概述](internationalization/international-overview.md) - [Intl开发指导](internationalization/intl-guidelines.md) - [I18n开发指导](internationalization/i18n-guidelines.md) - - 工具 - [DevEco Studio(OpenHarmony)使用指南](quick-start/deveco-studio-user-guide-for-openharmony.md) - - 示例教程 - [示例代码](https://gitee.com/openharmony/app_samples/blob/master/README_zh.md) - [Codelabs](https://gitee.com/openharmony/codelabs/blob/master/README.md) - - API参考 - 组件参考(基于JS扩展的类Web开发范式) - 组件 @@ -529,128 +525,248 @@ - [文档中涉及到的内置枚举值](reference/arkui-ts/ts-appendix-enums.md) - 接口参考 - Ability框架 - - [FeatureAbility模块](reference/apis/js-apis-featureAbility.md) - - [ParticleAbility模块](reference/apis/js-apis-particleAbility.md) - - [DataAbilityHelper模块](reference/apis/js-apis-dataAbilityHelper.md) - - [DataUriUtils模块](reference/apis/js-apis-DataUriUtils.md) - - [Bundle模块](reference/apis/js-apis-Bundle.md) - - [Context模块](reference/apis/js-apis-Context.md) - - 事件与通知 - - [CommonEvent模块](reference/apis/js-apis-commonEvent.md) - - [Notification模块](reference/apis/js-apis-notification.md) - - [后台代理提醒](reference/apis/js-apis-reminderAgent.md) - - 资源管理 - - [资源管理](reference/apis/js-apis-resource-manager.md) - - [国际化-Intl](reference/apis/js-apis-intl.md) - - [国际化-I18n](reference/apis/js-apis-i18n.md) + + - [@ohos.ability.dataUriUtils (DataUriUtils模块)](reference/apis/js-apis-DataUriUtils.md) + - [@ohos.ability.errorCode (ErrorCode)](reference/apis/js-apis-ability-errorCode.md) + - [@ohos.ability.wantConstant (wantConstant)](reference/apis/js-apis-ability-wantConstant.md) + - [@ohos.application.Ability (Ability)](reference/apis/js-apis-application-ability.md) + - [@ohos.application.AbilityConstant (AbilityConstant)](reference/apis/js-apis-application-abilityConstant.md) + - [@ohos.application.abilityDelegatorRegistry (AbilityDelegatorRegistry)](reference/apis/js-apis-abilityDelegatorRegistry.md) + - [@ohos.application.AbilityStage (AbilityStage)](reference/apis/js-apis-application-abilitystage.md) + - [@ohos.application.appManager (appManager)](reference/apis/js-apis-appmanager.md) + - [@ohos.application.Configuration (Configuration)](reference/apis/js-apis-configuration.md) + - [@ohos.application.ConfigurationConstant (ConfigurationConstant)](reference/apis/js-apis-configurationconstant.md) + - [@ohos.application.DataShareExtensionAbility (DataShareExtensionAbility)](reference/apis/js-apis-application-DataShareExtensionAbility.md) + - [@ohos.ability.featureAbility (FeatureAbility模块)](reference/apis/js-apis-featureAbility.md) + - [@ohos.application.formBindingData (卡片数据绑定类)](reference/apis/js-apis-formbindingdata.md) + - [@ohos.application.FormExtension (FormExtension)](reference/apis/js-apis-formextension.md) + - [@ohos.application.formError (FormError)](reference/apis/js-apis-formerror.md) + - [@ohos.application.formHost (FormHost)](reference/apis/js-apis-formhost.md) + - [@ohos.application.formInfo (FormInfo)](reference/apis/js-apis-formInfo.md) + - [@ohos.application.missionManager (missionManager)](reference/apis/js-apis-missionManager.md) + - [@ohos.application.formProvider (FormProvider)](reference/apis/js-apis-formprovider.md) + - [@ohos.ability.particleAbility (particleAbility模块)](reference/apis/js-apis-particleAbility.md) + - [@ohos.application.ServiceExtensionAbility (ServiceExtensionAbility)](reference/apis/js-apis-service-extension-ability.md) + - [@ohos.application.StartOptions (StartOptions)](reference/apis/js-apis-application-StartOptions.md) + - [@ohos.application.StaticSubscriberExtensionAbility (StaticSubscriberExtensionAbility)](reference/apis/js-apis-application-staticSubscriberExtensionAbility.md) + - [@ohos.application.uriPermissionManager (uriPermissionManager)](reference/apis/js-apis-uripermissionmanager.md) + - [@ohos.application.Want (Want)](reference/apis/js-apis-application-Want.md) + - [@ohos.wantAgent (WantAgent模块)](reference/apis/js-apis-wantAgent.md) + - ability/[dataAbilityHelper (DataAbilityHelper模块)](reference/apis/js-apis-dataAbilityHelper.md) + - app/[context (Context模块)](reference/apis/js-apis-Context.md) + - application/[AbilityContext (AbilityContext)](reference/apis/js-apis-ability-context.md) + - application/[abilityDelegator (AbilityDelegator)](reference/apis/js-apis-application-abilityDelegator.md) + - application/[abilityDelegatorArgs (AbilityDelegatorArgs)](reference/apis/js-apis-application-abilityDelegatorArgs.md) + - application/[abilityMonitor (AbilityMonitor)](reference/apis/js-apis-application-abilityMonitor.md) + - application/[AbilityRunningInfo (AbilityRunningInfo)](reference/apis/js-apis-abilityrunninginfo.md) + - application/[AbilityStageContext (AbilityStageContext)](reference/apis/js-apis-abilitystagecontext.md) + - application/[Context (Context)](reference/apis/js-apis-application-context.md) + - application/[ExtensionContext (ExtensionContext)](reference/apis/js-apis-extension-context.md) + - application/[ExtensionRunningInfo (ExtensionRunningInfo)](reference/apis/js-apis-extensionrunninginfo.md) + - application/[FormExtensionContext (FormExtensionContext)](reference/apis/js-apis-formextensioncontext.md) + - application/[MissionSnapshot (MissionSnapshot)](reference/apis/js-apis-application-MissionSnapshot.md) + - application/[PermissionRequestResult (PermissionRequestResult)](reference/apis/js-apis-permissionrequestresult.md) + - application/[ProcessRunningInfo (ProcessRunningInfo)](reference/apis/js-apis-processrunninginfo.md) + - application/[ServiceExtensionContext (ServiceExtensionContext)](reference/apis/js-apis-service-extension-context.md) + - application/[shellCmdResult (ShellCmdResult)](reference/apis/js-apis-application-shellCmdResult.md) + + - 公共事件与通知 + + - [@ohos.commonEvent (公共事件模块)](reference/apis/js-apis-commonEvent.md) + - [@ohos.events.emitter (Emitter)](reference/apis/js-apis-emitter.md) + - [@ohos.notification (Notification模块)](reference/apis/js-apis-notification.md) + - [@ohos.reminderAgent (后台代理提醒)](reference/apis/js-apis-reminderAgent.md) + - application/[EventHub (EventHub)](reference/apis/js-apis-eventhub.md) + + - 应用程序包管理 + + - [@ohos.bundle (Bundle模块)](reference/apis/js-apis-Bundle.md) + - [@ohos.bundleState (设备使用信息统计)](reference/apis/js-apis-deviceUsageStatistics.md) + - [@ohos.zlib (Zip模块)](reference/apis/js-apis-zlib.md) + + - UI界面 + + - [@ohos.animator (动画)](reference/apis/js-apis-animator.md) + - [@ohos.mediaquery (媒体查询)](reference/apis/js-apis-mediaquery.md) + - [@ohos.prompt (弹窗)](reference/apis/js-apis-prompt.md) + - [@ohos.router (页面路由)](reference/apis/js-apis-router.md) + + - 图形图像 + + - [@ohos.display (屏幕属性)](reference/apis/js-apis-display.md) + - [@ohos.screenshot (屏幕截图)](reference/apis/js-apis-screenshot.md) + - [@ohos.window (窗口)](reference/apis/js-apis-window.md) + - [webgl (WebGL)](reference/apis/js-apis-webgl.md) + - [webgl2 (WebGL2)](reference/apis/js-apis-webgl2.md) + - 媒体 - - [音频管理](reference/apis/js-apis-audio.md) - - [媒体服务](reference/apis/js-apis-media.md) - - [图片处理](reference/apis/js-apis-image.md) - - [相机管理](reference/apis/js-apis-camera.md) + + - [@ohos.multimedia.audio (音频管理)](reference/apis/js-apis-audio.md) + - [@ohos.multimedia.camera (相机管理)](reference/apis/js-apis-camera.md) + - [@ohos.multimedia.image (图片处理)](reference/apis/js-apis-image.md) + - [@ohos.multimedia.media (媒体服务)](reference/apis/js-apis-media.md) + - [@ohos.multimedia.medialibrary (媒体库管理)](reference/apis/js-apis-medialibrary.md) + + - 资源管理 + - [@ohos.i18n (国际化-I18n)](reference/apis/js-apis-i18n.md) + - [@ohos.intl (国际化-Intl)](reference/apis/js-apis-intl.md) + - [@ohos.resourceManager (资源管理)](reference/apis/js-apis-resource-manager.md) + + - 资源调度 + + - [@ohos.backgroundTaskManager (后台任务管理)](reference/apis/js-apis-backgroundTaskManager.md) + - [@ohos.workScheduler (延迟任务调度)](reference/apis/js-apis-workScheduler.md) + - [@ohos.WorkSchedulerExtensionAbility (延迟任务调度回调)](reference/apis/js-apis-WorkSchedulerExtensionAbility.md) + + - 定制管理 + + - [@ohos.configPolicy (配置策略)](reference/apis/js-apis-config-policy.md) + - [@ohos.enterpriseDeviceManager (企业设备管理)](reference/apis/js-apis-enterprise-device-manager.md) + - 安全 - - [用户认证](reference/apis/js-apis-useriam-userauth.md) - - [访问控制](reference/apis/js-apis-abilityAccessCtrl.md) - - [通用密钥库系统](reference/apis/js-apis-huks.md) + + - [@ohos.abilityAccessCtrl (访问控制管理)](reference/apis/js-apis-abilityAccessCtrl.md) + - [@ohos.security.huks (通用密钥库系统)](reference/apis/js-apis-huks.md) + - [@ohos.userIAM.userAuth (用户认证)](reference/apis/js-apis-useriam-userauth.md) + - [@system.cipher (加密算法)](reference/apis/js-apis-system-cipher.md) + - 数据管理 - - [轻量级存储](reference/apis/js-apis-data-preferences.md) - - [分布式数据管理](reference/apis/js-apis-distributed-data.md) - - [关系型数据库](reference/apis/js-apis-data-rdb.md) - - [结果集](reference/apis/js-apis-data-resultset.md) - - [DataAbility 谓词](reference/apis/js-apis-data-ability.md) - - [设置数据项名称](reference/apis/js-apis-settings.md) + + - [@ohos.data.dataAbility (DataAbility谓词)](reference/apis/js-apis-data-ability.md) + - [@ohos.data.distributedData (分布式数据管理)](reference/apis/js-apis-distributed-data.md) + - [@ohos.data.distributedDataObject (分布式数据对象)](reference/apis/js-apis-data-distributedobject.md) + - [@ohos.data.preferences (轻量级存储)](reference/apis/js-apis-data-preferences.md) + - [@ohos.data.rdb (关系型数据库)](reference/apis/js-apis-data-rdb.md) + - [@ohos.settings (设置数据项名称)](reference/apis/js-apis-settings.md) + - data/rdb/[resultSet (结果集)](reference/apis/js-apis-data-resultset.md) + - 文件管理 - - [文件管理](reference/apis/js-apis-fileio.md) - - [Statfs](reference/apis/js-apis-statfs.md) - - [目录环境](reference/apis/js-apis-environment.md) - - [公共文件访问与管理](reference/apis/js-apis-filemanager.md) - - [应用空间统计](reference/apis/js-apis-storage-statistics.md) - - [卷管理](reference/apis/js-apis-volumemanager.md) - - 账号管理 - - [系统帐号管理](reference/apis/js-apis-osAccount.md) - - [分布式帐号管理](reference/apis/js-apis-distributed-account.md) - - [应用帐号管理](reference/apis/js-apis-appAccount.md) + + - [@ohos.environment (目录环境能力)](reference/apis/js-apis-environment.md) + - [@ohos.fileio (文件管理)](reference/apis/js-apis-fileio.md) + - [@ohos.fileManager (公共文件访问与管理)](reference/apis/js-apis-filemanager.md) + - [@ohos.statfs (statfs)](reference/apis/js-apis-statfs.md) + - [@ohos.storageStatistics (应用空间统计)](reference/apis/js-apis-storage-statistics.md) + - [@ohos.volumeManager (卷管理)](reference/apis/js-apis-volumemanager.md) + - 电话服务 - - [拨打电话](reference/apis/js-apis-call.md) - - [短信服务](reference/apis/js-apis-sms.md) - - [SIM卡管理](reference/apis/js-apis-sim.md) - - [网络搜索](reference/apis/js-apis-radio.md) - - [observer](reference/apis/js-apis-observer.md) - - [蜂窝数据](reference/apis/js-apis-telephony-data.md) + + - [@ohos.contact (联系人)](reference/apis/js-apis-contact.md) + - [@ohos.telephony.call (拨打电话)](reference/apis/js-apis-call.md) + - [@ohos.telephony.observer (observer)](reference/apis/js-apis-observer.md) + - [@ohos.telephony.radio (网络搜索)](reference/apis/js-apis-radio.md) + - [@ohos.telephony.sim (SIM卡管理)](reference/apis/js-apis-sim.md) + - [@ohos.telephony.sms (短信服务)](reference/apis/js-apis-sms.md) + - [@ohos.telephony.data (蜂窝数据)](reference/apis/js-apis-telephony-data.md) + - 网络管理 - - [网络连接管理](reference/apis/js-apis-net-connection.md) - - [Socket连接](reference/apis/js-apis-socket.md) - - [WebSocket连接](reference/apis/js-apis-webSocket.md) - - [数据请求](reference/apis/js-apis-http.md) + - [@ohos.net.connection (网络连接管理)](reference/apis/js-apis-net-connection.md) + - [@ohos.net.http (数据请求)](reference/apis/js-apis-http.md) + - [@ohos.request (上传下载)](reference/apis/js-apis-request.md) + - [@ohos.net.socket (Socket连接)](reference/apis/js-apis-socket.md) + - [@ohos.net.webSocket (WebSocket连接)](reference/apis/js-apis-webSocket.md) + - 通信与连接 - - [WLAN](reference/apis/js-apis-wifi.md) - - [Bluetooth](reference/apis/js-apis-bluetooth.md) - - [RPC通信](reference/apis/js-apis-rpc.md) + + - [@ohos.bluetooth (蓝牙)](reference/apis/js-apis-bluetooth.md) + - [@ohos.connectedTag (有源标签)](reference/apis/js-apis-connectedTag.md) + - [@ohos.rpc (RPC通信)](reference/apis/js-apis-rpc.md) + - [@ohos.wifi (WLAN)](reference/apis/js-apis-wifi.md) + - [@ohos.wifiext (WLAN)](reference/apis/js-apis-wifiext.md) + + - 系统基础能力 + + - [@ohos.accessibility (辅助功能)](reference/apis/js-apis-accessibility.md) + - [@ohos.faultLogger (故障日志获取)](reference/apis/js-apis-faultLogger.md) + - [@ohos.hiAppEvent (应用打点)](reference/apis/js-apis-hiappevent.md) + - [@ohos.hichecker (检测模式)](reference/apis/js-apis-hichecker.md) + - [@ohos.hidebug (Debug调试)](reference/apis/js-apis-hidebug.md) + - [@ohos.hilog (日志打印)](reference/apis/js-apis-hilog.md) + - [@ohos.hiTraceChain (分布式跟踪)](reference/apis/js-apis-hitracechain.md) + - [@ohos.hiTraceMeter (性能打点)](reference/apis/js-apis-hitracemeter.md) + - [@ohos.inputMethod (输入法框架)](reference/apis/js-apis-inputmethod.md) + - [@ohos.inputMethodEngine (输入法服务)](reference/apis/js-apis-inputmethodengine.md) + - [@ohos.pasteboard (剪贴板)](reference/apis/js-apis-pasteboard.md) + - [@ohos.screenLock (锁屏管理)](reference/apis/js-apis-screen-lock.md) + - [@ohos.systemTime (设置系统时间)](reference/apis/js-apis-system-time.md) + - [@ohos.wallpaper (壁纸)](reference/apis/js-apis-wallpaper.md) + - [Timer (定时器)](reference/apis/js-apis-timer.md) + - 设备管理 - - [传感器](reference/apis/js-apis-sensor.md) - - [振动](reference/apis/js-apis-vibrator.md) - - [屏幕亮度](reference/apis/js-apis-brightness.md) - - [电量信息](reference/apis/js-apis-battery-info.md) - - [系统电源管理](reference/apis/js-apis-power.md) - - [热管理](reference/apis/js-apis-thermal.md) - - [Runninglock锁](reference/apis/js-apis-runninglock.md) - - [设备信息](reference/apis/js-apis-device-info.md) - - [系统属性](reference/apis/js-apis-system-parameter.md) - - [设备管理](reference/apis/js-apis-device-manager.md) - - [窗口](reference/apis/js-apis-window.md) - - [显示设备属性](reference/apis/js-apis-display.md) - - [升级](reference/apis/js-apis-update.md) - - [USB管理](reference/apis/js-apis-usb.md) - - [位置服务](reference/apis/js-apis-geolocation.md) - - [输入设备](reference/apis/js-apis-inputdevice.md) - - [组合按键](reference/apis/js-apis-inputconsumer.md) - - [输入监听](reference/apis/js-apis-inputmonitor.md) - - [事件注入](reference/apis/js-apis-inputeventclient.md) - - 基本功能 - - [应用上下文](reference/apis/js-apis-system-app.md) - - [日志打印](reference/apis/js-apis-logs.md) - - [页面路由](reference/apis/js-apis-router.md) - - [弹窗](reference/apis/js-apis-prompt.md) - - [应用配置](reference/apis/js-apis-system-configuration.md) - - [定时器](reference/apis/js-apis-timer.md) - - [设置系统时间](reference/apis/js-apis-system-time.md) - - [动画](reference/apis/js-apis-animator.md) - - [WebGL](reference/apis/js-apis-webgl.md) - - [WebGL2](reference/apis/js-apis-webgl2.md) - - [屏幕截图](reference/apis/js-apis-screenshot.md) - - [输入法框架](reference/apis/js-apis-inputmethod.md) - - [输入法服务](reference/apis/js-apis-inputmethodengine.md) - - [辅助功能](reference/apis/js-apis-accessibility.md) - - DFX - - [应用打点](reference/apis/js-apis-hiappevent.md) - - [性能打点](reference/apis/js-apis-hitracemeter.md) - - [故障日志获取](reference/apis/js-apis-faultLogger.md) - - [分布式跟踪](reference/apis/js-apis-hitracechain.md) - - [日志打印](reference/apis/js-apis-hilog.md) - - [检测模式](reference/apis/js-apis-hichecker.md) - - [Debug调试](reference/apis/js-apis-hidebug.md) + + - [@ohos.batteryInfo (电量信息)](reference/apis/js-apis-battery-info.md) + - [@ohos.brightness (屏幕亮度)](reference/apis/js-apis-brightness.md) + - [@ohos.deviceInfo (设备信息)](reference/apis/js-apis-device-info.md) + - [@ohos.distributedHardware.deviceManager (设备管理)](reference/apis/js-apis-device-manager.md) + - [@ohos.geolocation (位置服务)](reference/apis/js-apis-geolocation.md) + - [@ohos.multimodalInput.inputConsumer (组合按键)](reference/apis/js-apis-inputconsumer.md) + - [@ohos.multimodalInput.inputDevice (输入设备)](reference/apis/js-apis-inputdevice.md) + - [@ohos.multimodalInput.inputEventClient (注入按键)](reference/apis/js-apis-inputeventclient.md) + - [@ohos.multimodalInput.inputMonitor (输入监听)](reference/apis/js-apis-inputmonitor.md) + - [@ohos.power (系统电源管理)](reference/apis/js-apis-power.md) + - [@ohos.runningLock (Runninglock锁)](reference/apis/js-apis-runninglock.md) + - [@ohos.sensor (传感器)](reference/apis/js-apis-sensor.md) + - [@ohos.systemParameter (系统属性)](reference/apis/js-apis-system-parameter.md) + - [@ohos.thermal (热管理)](reference/apis/js-apis-thermal.md) + - [@ohos.update (升级)](reference/apis/js-apis-update.md) + - [@ohos.usb (USB管理)](reference/apis/js-apis-usb.md) + - [@ohos.vibrator (振动)](reference/apis/js-apis-vibrator.md) + + - 帐号管理 + + - [@ohos.account.appAccount (应用帐号管理)](reference/apis/js-apis-appAccount.md) + - [@ohos.account.distributedAccount (分布式帐号管理)](reference/apis/js-apis-distributed-account.md) + - [@ohos.account.osAccount (系统帐号管理)](reference/apis/js-apis-osAccount.md) + - 语言基础类库 - - [获取进程相关的信息](reference/apis/js-apis-process.md) - - [URL字符串解析](reference/apis/js-apis-url.md) - - [URI字符串解析](reference/apis/js-apis-uri.md) - - [util工具函数](reference/apis/js-apis-util.md) - - [xml解析与生成](reference/apis/js-apis-xml.md) - - [xml转换JavaScript](reference/apis/js-apis-convertxml.md) - - [启动一个worker](reference/apis/js-apis-worker.md) - - [线性容器ArrayList](reference/apis/js-apis-arraylist.md) - - [线性容器Deque](reference/apis/js-apis-deque.md) - - [线性容器List](reference/apis/js-apis-list.md) - - [线性容器LinkedList](reference/apis/js-apis-linkedlist.md) - - [线性容器Queue](reference/apis/js-apis-queue.md) - - [线性容器Stack](reference/apis/js-apis-stack.md) - - [线性容器Vector](reference/apis/js-apis-vector.md) - - [非线性容器HashSet](reference/apis/js-apis-hashset.md) - - [非线性容器HashMap](reference/apis/js-apis-hashmap.md) - - [非线性容器PlainArray](reference/apis/js-apis-plainarray.md) - - [非线性容器TreeMap](reference/apis/js-apis-treemap.md) - - [非线性容器TreeSet](reference/apis/js-apis-treeset.md) - - [非线性容器LightWeightMap](reference/apis/js-apis-lightweightmap.md) - - [非线性容器LightWeightSet](reference/apis/js-apis-lightweightset.md) - - 定制管理 - - [配置策略](reference/apis/js-apis-config-policy.md) - - [企业设备管理](reference/apis/js-apis-enterprise-device-manager.md) \ No newline at end of file + + - [@ohos.convertxml (xml转换JavaScript)](reference/apis/js-apis-convertxml.md) + - [@ohos.process (获取进程相关的信息)](reference/apis/js-apis-process.md) + - [@ohos.uri (URI字符串解析)](reference/apis/js-apis-uri.md) + - [@ohos.url (URL字符串解析)](reference/apis/js-apis-url.md) + - [@ohos.util (util工具函数)](reference/apis/js-apis-util.md) + - [@ohos.util.ArrayList (线性容器ArrayList)](reference/apis/js-apis-arraylist.md) + - [@ohos.util.Deque (线性容器Deque)](reference/apis/js-apis-deque.md) + - [@ohos.util.HashMap (非线性容器HashMap)](reference/apis/js-apis-hashmap.md) + - [@ohos.util.HashSet (非线性容器HashSet)](reference/apis/js-apis-hashset.md) + - [@ohos.util.LightWeightMap (非线性容器LightWeightMap)](reference/apis/js-apis-lightweightmap.md) + - [@ohos.util.LightWeightSet (非线性容器LightWeightSet)](reference/apis/js-apis-lightweightset.md) + - [@ohos.util.LinkedList (线性容器LinkedList)](reference/apis/js-apis-linkedlist.md) + - [@ohos.util.List (线性容器List)](reference/apis/js-apis-list.md) + - [@ohos.util.PlainArray (非线性容器PlainArray)](reference/apis/js-apis-plainarray.md) + - [@ohos.util.Queue (线性容器Queue)](reference/apis/js-apis-queue.md) + - [@ohos.util.Stack (线性容器Stack)](reference/apis/js-apis-stack.md) + - [@ohos.util.TreeMap (非线性容器TreeMap)](reference/apis/js-apis-treemap.md) + - [@ohos.util.TreeSet (非线性容器TreeSet)](reference/apis/js-apis-treeset.md) + - [@ohos.util.Vector (线性容器Vector)](reference/apis/js-apis-vector.md) + - [@ohos.worker (启动一个Worker)](reference/apis/js-apis-worker.md) + - [@ohos.xml (xml解析与生成)](reference/apis/js-apis-xml.md) + + - 测试 + - [@ohos.application.testRunner (TestRunner)](reference/apis/js-apis-testRunner.md) + - [@ohos.uitest (UiTest)](reference/apis/js-apis-uitest.md) + + - 已停止维护的接口 + + - [@ohos.bytrace (性能打点)](reference/apis/js-apis-bytrace.md) + - [@ohos.data.storage (轻量级存储)](reference/apis/js-apis-data-storage.md) + - [@system.app (应用上下文)](reference/apis/js-apis-system-app.md) + - [@system.battery (电量信息)](reference/apis/js-apis-system-battery.md) + - [@system.bluetooth (蓝牙)](reference/apis/js-apis-system-bluetooth.md) + - [@system.brightness (屏幕亮度)](reference/apis/js-apis-system-brightness.md) + - [@system.configuration (应用配置)](reference/apis/js-apis-system-configuration.md) + - [@system.device (设备信息)](reference/apis/js-apis-system-deviceinfo.md) + - [@system.fetch (数据请求)](reference/apis/js-apis-system-fetch.md) + - [@system.file (文件存储)](reference/apis/js-apis-system-file.md) + - [@system.geolocation (地理位置)](reference/apis/js-apis-system-location.md) + - [@system.mediaquery (媒体查询)](reference/apis/js-apis-system-mediaquery.md) + - [@system.network (网络状态)](reference/apis/js-apis-system-network.md) + - [@system.notification (通知消息)](reference/apis/js-apis-system-notification.md) + - [@system.package (应用管理)](reference/apis/js-apis-system-package.md) + - [@system.prompt (弹窗)](reference/apis/js-apis-system-prompt.md) + - [@system.request (上传下载)](reference/apis/js-apis-system-request.md) + - [@system.router (页面路由)](reference/apis/js-apis-system-router.md) + - [@system.sensor (传感器)](reference/apis/js-apis-system-sensor.md) + - [@system.storage (数据存储)](reference/apis/js-apis-system-storage.md) + - [@system.vibrator (振动)](reference/apis/js-apis-system-vibrate.md) + - [console (日志打印)](reference/apis/js-apis-logs.md) \ No newline at end of file diff --git a/zh-cn/release-notes/api-change/v3.1-Release/changelog-v3.1-release.md b/zh-cn/release-notes/api-change/v3.1-Release/changelog-v3.1-release.md index 570a1c598c..2b896dc81c 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/changelog-v3.1-release.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/changelog-v3.1-release.md @@ -1,16 +1,303 @@ # ChangeLog **关键的接口/组件变更** -## XXX子系统 -### cl.rpc.1 sendRequest返回值类型变更 +## 包管理子系统 + +### 结构体BundleInfo + +#### 变更前: + +BundleInfo结构体中包含了abilityInfo和hapModuleInfo这两个属性。 + +#### 变更后 + +BundleInfo结构体中将abilityInfo和hapModuleInfo这两个属性修改为abilityInfos和hapModuleInfos。 + +#### 变更影响 + +无 + +#### 关键的接口/组件变更 + +无 + +#### 适配指导 + +如果代码中有使用到上述已删除的属性,需要适配新的结构体。 + +### 结构体AbilityInfo + +#### 变更前: + +AbilityInfo结构体中包含了formEntity、minFormHeight、defaultFormHeight、minFormWidth、defaultFormWidth和customizeData属性。 + +#### 变更后 + +AbilityInfo结构体中删除了formEntity、minFormHeight、defaultFormHeight、minFormWidth、defaultFormWidth和customizeData属性,其中customizeData修改为metaData。 + +#### 变更影响 + +无 + +#### 关键的接口/组件变更 + +无 + +#### 适配指导 + +如果代码中有使用到上述已删除的属性,需要适配新的结构体。 + +### 结构体ApplicationInfo + +#### 变更前: + +ApplicationInfo结构体中包含了customizeData这个属性。 + +#### 变更后 + +AbilityInfo结构体中删除了customizeData,修改为metaData。 + +#### 变更影响 + +无 + +#### 关键的接口/组件变更 + +无 + +#### 适配指导 + +如果代码中有使用到上述已删除的属性,需要适配新的结构体。 + +### 接口getAllShortcutInfo + +#### 变更前: + +该接口查询快捷信息。 + +#### 变更后 + +该接口已废弃,改为系统API,不支持三方应用。 + +#### 变更影响 + +使用该接口的代码需要删除。 + +#### 关键的接口/组件变更 + +无 + +#### 适配指导 + +无 + +### 接口checkPermission + +#### 变更前: + +该接口查询权限的授权状态。 + +#### 变更后 + +该接口已废弃,包管理子系统不提供该接口。 + +#### 变更影响 + +使用该接口的代码需要删除。 + +#### 关键的接口/组件变更 + +无 + +#### 适配指导 + +调用Context提供的权限查询接口。 + +```C++ +import featureAbility from '@ohos.ability.featureAbility' +import bundle from '@ohos.bundle' +var context = featureAbility.getContext(); +bundle.getBundleInfo('com.context.test', 1, (datainfo) =>{ + context.verifyPermission("com.example.permission", datainfo.uid); +}); +``` + + + +## 软总线子系统 + +### 结构体MessageOption + +#### 变更前: + +MessageOption结构体中`TF_WAIT_TIME == 4`。 + +#### 变更后 + +MessageOption结构体中`TF_WAIT_TIME == 8`。 + +#### 变更影响 + +RPC 同步调用默认等待时间从4秒变为8秒。 + +#### 关键的接口/组件变更 + +无 + +#### 适配指导 + +涉及RPC通信的代码,可以根据业务情况设置等待时间: `setWaitTime(waitTime: number): void`。 + + + +### 接口queryLocalInterface + +#### 变更前: + +接口返回值为`IRemoteBroker`。 + +#### 变更后 + +接口返回值为`IRemoteObject`。 #### 变更影响 -…… + +使用该接口的代码,接口返回值类型为`IRemoteObject`。 #### 关键的接口/组件变更 -**模块** -**接口** -**变更后接口** -…… + +无 #### 适配指导 -…… + +``` +import FA from "@ohos.ability.featureAbility"; +let proxy; +let connect = { + onConnect: function(elementName, remoteProxy) { + console.log("RpcClient: js onConnect called."); + proxy = remoteProxy; + }, + onDisconnect: function (elementName) { + console.log("RpcClient: onDisconnect"); + }, + onFailed: function() { + console.log("RpcClient: onFailed"); + } +}; +let want = { + "bundleName":"com.ohos.server", + "abilityName":"com.ohos.server.MainAbility", +}; +FA.connectAbility(want, connect); +let broker = proxy.queryLocalInterface("testObject"); +console.log("RpcClient: queryLocalInterface is " + broker); +``` + + + +### 接口readCharArray + +#### 变更前: + +`readCharArray(dataIn: boolean[]) : void`: 入参类型为bool数组。 + +`readCharArray(): boolean[]`: 返回值为bool数组。 + +#### 变更后 + +`readCharArray(dataIn: boolean[]) : void`: 入参类型为number数组。 + +`readCharArray(): boolean[]`: 返回值为number数组。 + +#### 变更影响 + +使用该接口的代码入参、返回值类型从`boolean[]`转为`number[]`。 + +#### 关键的接口/组件变更 + +无 + +#### 适配指导 + +``` +let data = rpc.MessageParcel.create(); +let result = data.writeCharArray(['a', 'b', 'c']); +console.log("RpcClient: writeCharArray is " + result); +let array = new Array(3); +data.readCharArray(array); +``` + +``` +let data = rpc.MessageParcel.create(); +let result = data.writeCharArray(['a', 'b', 'c']); +console.log("RpcClient: writeCharArray is " + result); +let array = data.readCharArray(); +console.log("RpcClient: readCharArray is " + array); +``` + + + +### 接口sendRequest + +#### 变更前: + +该接口返回值为`boolean`。 + +#### 变更后 + +该接口返回值为`Promise`。 + +#### 变更影响 + +使用该接口的代码返回值类型为期约`Promise`。 + +#### 关键的接口/组件变更 + +无 + +#### 适配指导 + +``` +import FA from "@ohos.ability.featureAbility"; +let proxy; +let connect = { + onConnect: function(elementName, remoteProxy) { + console.log("RpcClient: js onConnect called."); + proxy = remoteProxy; + }, + onDisconnect: function(elementName) { + console.log("RpcClient: onDisconnect"); + }, + onFailed: function() { + console.log("RpcClient: onFailed"); + } +}; +let want = { + "bundleName": "com.ohos.server", + "abilityName": "com.ohos.server.MainAbility", +}; +FA.connectAbility(want, connect); +let option = new rpc.MessageOption(); +let data = rpc.MessageParcel.create(); +let reply = rpc.MessageParcel.create(); +data.writeInt(1); +data.writeString("hello"); +proxy.sendRequest(1, data, reply, option) + .then(function(result) { + if (result.errCode === 0) { + console.log("sendRequest got result"); + result.reply.readException(); + let msg = result.reply.readString(); + console.log("RPCTest: reply msg: " + msg); + } else { + console.log("RPCTest: sendRequest failed, errCode: " + result.errCode); + } + }).catch(function(e) { + console.log("RPCTest: sendRequest got exception: " + e.message); + }).finally (() => { + console.log("RPCTest: sendRequest ends, reclaim parcel"); + data.reclaim(); + reply.reclaim(); + }); +``` + diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability.md index dce4c7f9e0..099ecf9f3b 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ability.md @@ -1,14 +1,169 @@ -# xxx子系统JS API变更 +# 元能力子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,元能力子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| featureability | FeatureAbility | static getDeviceList(flag: number): Promise; | 新增 | +| customizeData | CustomizeData | extra: string; | 新增 | +| applicationInfo | ApplicationInfo | readonly entityType: string; | 新增 | +| applicationInfo | ApplicationInfo | readonly uid: number; | 新增 | +| applicationInfo | ApplicationInfo | readonly accessTokenId: number; | 新增 | +| applicationInfo | ApplicationInfo | readonly removable: boolean; | 新增 | +| applicationInfo | ApplicationInfo | readonly metaData: Map>; | 新增 | +| applicationInfo | ApplicationInfo | readonly codePath: string; | 新增 | +| applicationInfo | ApplicationInfo | readonly moduleInfos: Array; | 新增 | +| shellCmdResult | ShellCmdResult | exitCode: number; | 新增 | +| shellCmdResult | ShellCmdResult | stdResult: String; | 新增 | +| ProcessRunningInfo | ProcessRunningInfo | bundleNames: Array; | 新增 | +| ProcessRunningInfo | ProcessRunningInfo | processName: string; | 新增 | +| ProcessRunningInfo | ProcessRunningInfo | uid: number; | 新增 | +| ProcessRunningInfo | ProcessRunningInfo | pid: number; | 新增 | +| BaseContext | BaseContext | stageMode: boolean; | 新增 | +| abilityDelegatorArgs | AbilityDelegatorArgs | testRunnerClassName: string; | 新增 | +| abilityDelegatorArgs | AbilityDelegatorArgs | testCaseNames: string; | 新增 | +| abilityDelegatorArgs | AbilityDelegatorArgs | parameters: {[key: string]: string}; | 新增 | +| abilityDelegatorArgs | AbilityDelegatorArgs | bundleName: string; | 新增 | +| abilityDelegator | AbilityDelegator | executeShellCommand(cmd: string, callback: AsyncCallback): void;
executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback): void;
executeShellCommand(cmd: string, timeoutSecs?: number): Promise; | 新增 | +| abilityDelegator | AbilityDelegator | print(msg: string, callback: AsyncCallback): void;
print(msg: string): Promise; | 新增 | +| context | Context | printDrawnCompleted(callback: AsyncCallback): void;
printDrawnCompleted(): Promise; | 新增 | +| context | Context | isUpdatingConfigurations(callback: AsyncCallback): void;
isUpdatingConfigurations(): Promise; | 新增 | +| context | Context | getAbilityInfo(callback: AsyncCallback): void
getAbilityInfo(): Promise; | 新增 | +| context | Context | getApplicationContext(): Context; | 新增 | +| context | Context | getAppVersionInfo(callback: AsyncCallback): void
getAppVersionInfo(): Promise; | 新增 | +| context | Context | getHapModuleInfo(callback: AsyncCallback): void
getHapModuleInfo(): Promise; | 新增 | +| context | Context | getAppType(callback: AsyncCallback): void
getAppType(): Promise; | 新增 | +| context | Context | getOrCreateDistributedDir(): Promise;
getOrCreateDistributedDir(callback: AsyncCallback): void; | 新增 | +| context | Context | getCacheDir(callback: AsyncCallback): void;
getCacheDir(): Promise; | 新增 | +| context | Context | getFilesDir(callback: AsyncCallback): void;
getFilesDir(): Promise; | 新增 | +| context | Context | setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback): void
setWakeUpScreen(wakeUp: boolean): Promise; | 新增 | +| context | Context | setShowOnLockScreen(show: boolean, callback: AsyncCallback): void
setShowOnLockScreen(show: boolean): Promise; | 新增 | +| context | Context | setDisplayOrientation(orientation: DisplayOrientation, callback: AsyncCallback): void
setDisplayOrientation(orientation: DisplayOrientation): Promise; | 新增 | +| context | Context | getDisplayOrientation(callback: AsyncCallback): void
getDisplayOrientation(): Promise; | 新增 | +| appVersionInfo | AppVersionInfo | readonly versionName: string; | 新增 | +| appVersionInfo | AppVersionInfo | readonly versionCode: number; | 新增 | +| appVersionInfo | AppVersionInfo | readonly appName: string; | 新增 | +| dataAbilityHelper | PacMap | [key: string]: number \| string \| boolean \| Array \| null; | 新增 | +| dataAbilityHelper | DataAbilityHelper | executeBatch(uri: string, operations: Array, callback: AsyncCallback>): void;
executeBatch(uri: string, operations: Array): Promise>; | 新增 | +| dataAbilityHelper | DataAbilityHelper | call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback): void;
call(uri: string, method: string, arg: string, extras: PacMap): Promise; | 新增 | +| ohos.application.Want | Want | entities?: Array; | 新增 | +| ohos.application.Want | Want | parameters?: {[key: string]: any}; | 新增 | +| ohos.application.Want | Want | action?: string; | 新增 | +| ohos.application.Want | Want | flags?: number; | 新增 | +| ohos.application.Want | Want | type?: string; | 新增 | +| ohos.application.Want | Want | uri?: string; | 新增 | +| ohos.application.Want | Want | abilityName?: string; | 新增 | +| ohos.application.Want | Want | bundleName?: string; | 新增 | +| ohos.application.Want | Want | deviceId?: string; | 新增 | +| ohos.application.testRunner | TestRunner | onRun(): void; | 新增 | +| ohos.application.testRunner | TestRunner | onPrepare(): void; | 新增 | +| ohos.application.formProvider | formProvider | function updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback): void;
function updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise; | 新增 | +| ohos.application.formProvider | formProvider | function setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback): void;
function setFormNextRefreshTime(formId: string, minute: number): Promise; | 新增 | +| ohos.application.formInfo | FormParam | TEMPORARY_KEY = "ohos.extra.param.key.form_temporary" | 新增 | +| ohos.application.formInfo | FormParam | HEIGHT_KEY = "ohos.extra.param.key.form_height" | 新增 | +| ohos.application.formInfo | FormParam | WIDTH_KEY = "ohos.extra.param.key.form_width" | 新增 | +| ohos.application.formInfo | FormParam | MODULE_NAME_KEY = "ohos.extra.param.key.module_name" | 新增 | +| ohos.application.formInfo | FormParam | NAME_KEY = "ohos.extra.param.key.form_name" | 新增 | +| ohos.application.formInfo | FormParam | DIMENSION_KEY = "ohos.extra.param.key.form_dimension" | 新增 | +| ohos.application.formInfo | FormState | READY = 1 | 新增 | +| ohos.application.formInfo | FormState | DEFAULT = 0 | 新增 | +| ohos.application.formInfo | FormState | UNKNOWN = -1 | 新增 | +| ohos.application.formInfo | FormStateInfo | want: Want; | 新增 | +| ohos.application.formInfo | FormStateInfo | formState: FormState; | 新增 | +| ohos.application.formInfo | ColorMode | MODE_LIGHT = 1 | 新增 | +| ohos.application.formInfo | ColorMode | MODE_DARK = 0 | 新增 | +| ohos.application.formInfo | ColorMode | MODE_AUTO = -1 | 新增 | +| ohos.application.formInfo | FormType | JS = 1 | 新增 | +| ohos.application.formInfo | FormInfo | customizeData: {[key: string]: [value: string]}; | 新增 | +| ohos.application.formInfo | FormInfo | supportDimensions: Array; | 新增 | +| ohos.application.formInfo | FormInfo | defaultDimension: number; | 新增 | +| ohos.application.formInfo | FormInfo | updateDuration: number; | 新增 | +| ohos.application.formInfo | FormInfo | formConfigAbility: string; | 新增 | +| ohos.application.formInfo | FormInfo | scheduledUpdateTime: string; | 新增 | +| ohos.application.formInfo | FormInfo | relatedBundleName: string; | 新增 | +| ohos.application.formInfo | FormInfo | formVisibleNotify: boolean; | 新增 | +| ohos.application.formInfo | FormInfo | updateEnabled: boolean; | 新增 | +| ohos.application.formInfo | FormInfo | isDefault: boolean; | 新增 | +| ohos.application.formInfo | FormInfo | colorMode: ColorMode; | 新增 | +| ohos.application.formInfo | FormInfo | jsComponentName: string; | 新增 | +| ohos.application.formInfo | FormInfo | type: FormType; | 新增 | +| ohos.application.formInfo | FormInfo | description: string; | 新增 | +| ohos.application.formInfo | FormInfo | name: string; | 新增 | +| ohos.application.formInfo | FormInfo | abilityName: string; | 新增 | +| ohos.application.formInfo | FormInfo | moduleName: string; | 新增 | +| ohos.application.formInfo | FormInfo | bundleName: string; | 新增 | +| ohos.application.formError | FormError | ERR_IN_RECOVERY = 36 | 新增 | +| ohos.application.formError | FormError | ERR_FORM_DUPLICATE_ADDED = 31 | 新增 | +| ohos.application.formError | FormError | ERR_SYSTEM_RESPONSES_FAILED = 30 | 新增 | +| ohos.application.formError | FormError | ERR_FORM_FA_NOT_INSTALLED = 20 | 新增 | +| ohos.application.formError | FormError | ERR_FORM_NO_SUCH_DIMENSION = 19 | 新增 | +| ohos.application.formError | FormError | ERR_FORM_NO_SUCH_ABILITY = 18 | 新增 | +| ohos.application.formError | FormError | ERR_FORM_NO_SUCH_MODULE = 17 | 新增 | +| ohos.application.formError | FormError | ERR_MAX_SYSTEM_TEMP_FORMS = 16 | 新增 | +| ohos.application.formError | FormError | ERR_MAX_FORMS_PER_CLIENT = 15 | 新增 | +| ohos.application.formError | FormError | ERR_PROVIDER_DEL_FAIL = 14 | 新增 | +| ohos.application.formError | FormError | ERR_OPERATION_FORM_NOT_SELF = 13 | 新增 | +| ohos.application.formError | FormError | ERR_MAX_INSTANCES_PER_FORM = 12 | 新增 | +| ohos.application.formError | FormError | ERR_MAX_SYSTEM_FORMS = 11 | 新增 | +| ohos.application.formError | FormError | ERR_BIND_PROVIDER_FAILED = 10 | 新增 | +| ohos.application.formError | FormError | ERR_NOT_EXIST_ID = 9 | 新增 | +| ohos.application.formError | FormError | ERR_CFG_NOT_MATCH_ID = 8 | 新增 | +| ohos.application.formError | FormError | ERR_ADD_INVALID_PARAM = 7 | 新增 | +| ohos.application.formError | FormError | ERR_GET_LAYOUT_FAILED = 6 | 新增 | +| ohos.application.formError | FormError | ERR_GET_BUNDLE_FAILED = 5 | 新增 | +| ohos.application.formError | FormError | ERR_GET_INFO_FAILED = 4 | 新增 | +| ohos.application.formError | FormError | ERR_PERMISSION_DENY = 2 | 新增 | +| ohos.application.formError | FormError | ERR_COMMON = 1 | 新增 | +| ohos.application.formBindingData | FormBindingData | data: Object | 新增 | +| ohos.application.formBindingData | formBindingData | function createFormBindingData(obj?: Object \| string): FormBindingData; | 新增 | +| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_LIGHT = 1 | 新增 | +| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_DARK = 0 | 新增 | +| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_NOT_SET = -1 | 新增 | +| ohos.application.Configuration | Configuration | colorMode: ConfigurationConstant.ColorMode; | 新增 | +| ohos.application.Configuration | Configuration | language: string; | 新增 | +| ohos.application.appManager | appManager | function getAppMemorySize(): Promise;
function getAppMemorySize(callback: AsyncCallback): void; | 新增 | +| ohos.application.appManager | appManager | function isRamConstrainedDevice(): Promise;
function isRamConstrainedDevice(callback: AsyncCallback): void; | 新增 | +| ohos.application.appManager | appManager | function getProcessRunningInfos(): Promise>;
function getProcessRunningInfos(callback: AsyncCallback>): void; | 新增 | +| ohos.application.appManager | appManager | function isRunningInStabilityTest(callback: AsyncCallback): void;
function isRunningInStabilityTest(): Promise; | 新增 | +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | DESTROY | 新增 | +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | BACKGROUND | 新增 | +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | FOREGROUND | 新增 | +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | CREATE | 新增 | +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | UNINITIALIZED | 新增 | +| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | function getArguments(): AbilityDelegatorArgs; | 新增 | +| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | function getAbilityDelegator(): AbilityDelegator; | 新增 | +| ohos.abilityAccessCtrl | GrantStatus | PERMISSION_GRANTED = 0 | 新增 | +| ohos.abilityAccessCtrl | GrantStatus | PERMISSION_DENIED = -1 | 新增 | +| ohos.abilityAccessCtrl | AtManager | verifyAccessToken(tokenID: number, permissionName: string): Promise; | 新增 | +| ohos.abilityAccessCtrl | abilityAccessCtrl | function createAtManager(): AtManager; | 新增 | +| ohos.ability.wantConstant | Action | ACTION_APP_ACCOUNT_OAUTH = "ohos.account.appAccount.action.oauth" | 新增 | +| ohos.ability.wantConstant | Action | ACTION_VIDEO_CAPTURE = "ohos.want.action.videoCapture" | 新增 | +| ohos.ability.wantConstant | Action | ACTION_IMAGE_CAPTURE = "ohos.want.action.imageCapture" | 新增 | +| ohos.ability.particleAbility | ErrorCode | INVALID_PARAMETER = -1 | 新增 | +| ohos.ability.particleAbility | particleAbility | function disconnectAbility(connection: number, callback:AsyncCallback): void;
function disconnectAbility(connection: number): Promise; | 新增 | +| ohos.ability.particleAbility | particleAbility | function connectAbility(request: Want, options:ConnectOptions): number; | 新增 | +| ohos.ability.particleAbility | particleAbility | function cancelBackgroundRunning(callback: AsyncCallback): void;
function cancelBackgroundRunning(): Promise; | 新增 | +| ohos.ability.particleAbility | particleAbility | function startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback): void;
function startBackgroundRunning(id: number, request: NotificationRequest): Promise; | 新增 | +| ohos.ability.featureAbility | featureAbility | function getWindow(callback: AsyncCallback): void;
function getWindow(): Promise; | 新增 | +| ohos.ability.errorCode | ErrorCode | NO_ERROR = 0 | 新增 | +| ohos.ability.errorCode | ErrorCode | INVALID_PARAMETER = -1 | 新增 | +| ohos.ability.errorCode | ErrorCode | ABILITY_NOT_FOUND = -2 | 新增 | +| ohos.ability.errorCode | ErrorCode | PERMISSION_DENY = -3 | 新增 | +| lifecycle | LifecycleData | call?(method: string, arg: string, extras: PacMap, callback: AsyncCallback): void; | 新增 | +| lifecycle | LifecycleData | executeBatch?(ops: Array, callback: AsyncCallback>): void; | 新增 | +| lifecycle | LifecycleService | onReconnect?(want: Want): void; | 新增 | +| lifecycle | LifecycleApp | onMemoryLevel?(level: number): void; | 新增 | +| lifecycle | LifecycleApp | onNewWant?(want: Want): void; | 新增 | +| lifecycle | LifecycleApp | onActive?(): void; | 新增 | +| lifecycle | LifecycleApp | onInactive?(): void; | 新增 | +| lifecycle | LifecycleApp | onRestoreAbilityState?(inState: PacMap): void; | 新增 | +| lifecycle | LifecycleApp | onSaveAbilityState?(outState: PacMap): void; | 新增 | +| lifecycle | LifecycleForm | onAcquireFormState?(want: Want): formInfo.FormState; | 新增 | +| lifecycle | LifecycleForm | onDestroy?(formId: string): void; | 新增 | +| lifecycle | LifecycleForm | onEvent?(formId: string, message: string): void; | 新增 | +| lifecycle | LifecycleForm | onVisibilityChange?(newStatus: { [key: string]: number }): void; | 新增 | +| lifecycle | LifecycleForm | onUpdate?(formId: string): void; | 新增 | +| lifecycle | LifecycleForm | onCastToNormal?(formId: string): void; | 新增 | +| lifecycle | LifecycleForm | onCreate?(want: Want): formBindingData.FormBindingData; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md index dce4c7f9e0..c3dbf5c1e5 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md @@ -1,14 +1,51 @@ -# xxx子系统JS API变更 +# 无障碍子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,无障碍子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.accessibility | EventInfo | itemCount?: number; | 新增 | +| ohos.accessibility | EventInfo | endIndex?: number; | 新增 | +| ohos.accessibility | EventInfo | currentIndex?: number; | 新增 | +| ohos.accessibility | EventInfo | beginIndex?: number; | 新增 | +| ohos.accessibility | EventInfo | lastContent?: string; | 新增 | +| ohos.accessibility | EventInfo | contents?: Array; | 新增 | +| ohos.accessibility | EventInfo | textMoveUnit?: TextMoveUnit; | 新增 | +| ohos.accessibility | EventInfo | triggerAction: Action; | 新增 | +| ohos.accessibility | EventInfo | description?: string; | 新增 | +| ohos.accessibility | EventInfo | pageId ?: number; | 新增 | +| ohos.accessibility | EventInfo | componentType?: string; | 新增 | +| ohos.accessibility | EventInfo | bundleName: string; | 新增 | +| ohos.accessibility | EventInfo | windowUpdateType?: WindowUpdateType; | 新增 | +| ohos.accessibility | EventInfo | type: EventType; | 新增 | +| ohos.accessibility | EventInfo | constructor(jsonObject); | 新增 | +| ohos.accessibility | AccessibilityAbilityInfo | readonly eventTypes: Array; | 新增 | +| ohos.accessibility | AccessibilityAbilityInfo | readonly description: string; | 新增 | +| ohos.accessibility | AccessibilityAbilityInfo | readonly capabilities: Array; | 新增 | +| ohos.accessibility | AccessibilityAbilityInfo | readonly abilityTypes: Array; | 新增 | +| ohos.accessibility | AccessibilityAbilityInfo | readonly bundleName: string; | 新增 | +| ohos.accessibility | AccessibilityAbilityInfo | readonly name: string; | 新增 | +| ohos.accessibility | AccessibilityAbilityInfo | readonly id: string; | 新增 | +| ohos.accessibility | CaptionsStyle | windowColor: number \| string; | 新增 | +| ohos.accessibility | CaptionsStyle | backgroundColor: number \| string; | 新增 | +| ohos.accessibility | CaptionsStyle | fontEdgeType: CaptionsFontEdgeType; | 新增 | +| ohos.accessibility | CaptionsStyle | fontColor: number \| string; | 新增 | +| ohos.accessibility | CaptionsStyle | fontScale: number; | 新增 | +| ohos.accessibility | CaptionsStyle | fontFamily: CaptionsFontFamily; | 新增 | +| ohos.accessibility | CaptionsManager | off(type: 'styleChange', callback?: Callback): void; | 新增 | +| ohos.accessibility | CaptionsManager | off(type: 'enableChange', callback?: Callback): void; | 新增 | +| ohos.accessibility | CaptionsManager | on(type: 'styleChange', callback: Callback): void; | 新增 | +| ohos.accessibility | CaptionsManager | on(type: 'enableChange', callback: Callback): void; | 新增 | +| ohos.accessibility | CaptionsManager | style: CaptionsStyle; | 新增 | +| ohos.accessibility | CaptionsManager | enabled: boolean; | 新增 | +| ohos.accessibility | accessibility | function getCaptionsManager(): CaptionsManager; | 新增 | +| ohos.accessibility | accessibility | function off(type: 'touchGuideStateChange', callback?: Callback): void; | 新增 | +| ohos.accessibility | accessibility | function off(type: 'accessibilityStateChange', callback?: Callback): void; | 新增 | +| ohos.accessibility | accessibility | function on(type: 'touchGuideStateChange', callback: Callback): void; | 新增 | +| ohos.accessibility | accessibility | function on(type: 'accessibilityStateChange', callback: Callback): void; | 新增 | +| ohos.accessibility | accessibility | function sendEvent(event: EventInfo, callback: AsyncCallback): void;
function sendEvent(event: EventInfo): Promise; | 新增 | +| ohos.accessibility | accessibility | function getAbilityLists(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback>): void;
function getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise>; | 新增 | +| ohos.accessibility | accessibility | function isOpenTouchGuide(callback: AsyncCallback): void;
function isOpenTouchGuide(): Promise; | 新增 | +| ohos.accessibility | accessibility | function isOpenAccessibility(callback: AsyncCallback): void;
function isOpenAccessibility(): Promise; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-account.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-account.md index dce4c7f9e0..295d765dad 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-account.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-account.md @@ -1,14 +1,112 @@ -# xxx子系统JS API变更 +# 账号子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,账号子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.account.osAccount | OsAccountType | GUEST | 新增 | +| ohos.account.osAccount | OsAccountType | NORMAL | 新增 | +| ohos.account.osAccount | OsAccountType | ADMIN = 0 | 新增 | +| ohos.account.osAccount | DomainAccountInfo | accountName: string; | 新增 | +| ohos.account.osAccount | DomainAccountInfo | domain: string; | 新增 | +| ohos.account.osAccount | OsAccountInfo | domainInfo: DomainAccountInfo; | 新增 | +| ohos.account.osAccount | OsAccountInfo | distributedInfo: distributedAccount.DistributedInfo; | 新增 | +| ohos.account.osAccount | OsAccountInfo | isCreateCompleted: boolean; | 新增 | +| ohos.account.osAccount | OsAccountInfo | isActived: boolean; | 新增 | +| ohos.account.osAccount | OsAccountInfo | serialNumber: number; | 新增 | +| ohos.account.osAccount | OsAccountInfo | lastLoginTime: number; | 新增 | +| ohos.account.osAccount | OsAccountInfo | createTime: number; | 新增 | +| ohos.account.osAccount | OsAccountInfo | photo: string; | 新增 | +| ohos.account.osAccount | OsAccountInfo | isVerified: boolean; | 新增 | +| ohos.account.osAccount | OsAccountInfo | constraints: Array; | 新增 | +| ohos.account.osAccount | OsAccountInfo | type: OsAccountType; | 新增 | +| ohos.account.osAccount | OsAccountInfo | localName: string; | 新增 | +| ohos.account.osAccount | OsAccountInfo | localId: number; | 新增 | +| ohos.account.osAccount | AccountManager | getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback): void;
getSerialNumberByOsAccountLocalId(localId: number): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback): void;
getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | getDistributedVirtualDeviceId(callback: AsyncCallback): void;
getDistributedVirtualDeviceId(): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | getOsAccountTypeFromProcess(callback: AsyncCallback): void;
getOsAccountTypeFromProcess(): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | queryCurrentOsAccount(callback: AsyncCallback): void;
queryCurrentOsAccount(): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | queryActivatedOsAccountIds(callback: AsyncCallback>): void;
queryActivatedOsAccountIds(): Promise>; | 新增 | +| ohos.account.osAccount | AccountManager | getOsAccountAllConstraints(localId: number, callback: AsyncCallback>): void;
getOsAccountAllConstraints(localId: number): Promise>; | 新增 | +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback): void;
getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback): void;
getOsAccountLocalIdFromUid(uid: number): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromProcess(callback: AsyncCallback): void;
getOsAccountLocalIdFromProcess(): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | getCreatedOsAccountsCount(callback: AsyncCallback): void;
getCreatedOsAccountsCount(): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | isOsAccountVerified(callback: AsyncCallback): void;
isOsAccountVerified(localId: number, callback: AsyncCallback): void;
isOsAccountVerified(localId?: number): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | isTestOsAccount(callback: AsyncCallback): void;
isTestOsAccount(): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback): void;
isOsAccountConstraintEnable(localId: number, constraint: string): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | isOsAccountActived(localId: number, callback: AsyncCallback): void;
isOsAccountActived(localId: number): Promise; | 新增 | +| ohos.account.osAccount | AccountManager | isMultiOsAccountEnable(callback: AsyncCallback): void;
isMultiOsAccountEnable(): Promise; | 新增 | +| ohos.account.osAccount | osAccount | function getAccountManager(): AccountManager; | 新增 | +| ohos.account.appAccount | Authenticator | authenticate(name: string, authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 | +| ohos.account.appAccount | Authenticator | addAccountImplicitly(authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 | +| ohos.account.appAccount | AuthenticatorCallback | onRequestRedirected: (request: Want) => void; | 新增 | +| ohos.account.appAccount | AuthenticatorCallback | onResult: (code: number, result: {[key: string]: any}) => void; | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_PERMISSION_DENIED = 10018 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_UNSUPPORT_AUTH_TYPE = 10017 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_UNSUPPORT_ACTION = 10016 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_TOKEN_TOO_MANY = 10015 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_TOKEN_NOT_EXIST = 10014 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_TIMEOUT = 10013 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_SESSION_NOT_EXIST = 10012 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_SERVICE_EXCEPTION = 10011 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_SERVICE_BUSY = 10010 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_LIST_TOO_LARGE = 10009 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_CANCELED = 10008 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_AUTHENTICATOR_NOT_EXIST = 10007 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_NETWORK_EXCEPTION = 10006 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_INVALID_RESPONSE = 10005 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_INVALID_REQUEST = 10004 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_INVALID_PASSWORD = 10003 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_APP_ACCOUNT_SERVICE_EXCEPTION = 10002 | 新增 | +| ohos.account.appAccount | ResultCode | ERROR_ACCOUNT_NOT_EXIST = 10001 | 新增 | +| ohos.account.appAccount | ResultCode | SUCCESS = 0 | 新增 | +| ohos.account.appAccount | Constants | KEY_CALLER_BUNDLE_NAME = "callerBundleName" | 新增 | +| ohos.account.appAccount | Constants | KEY_CALLER_UID = "callerUid" | 新增 | +| ohos.account.appAccount | Constants | KEY_CALLER_PID = "callerPid" | 新增 | +| ohos.account.appAccount | Constants | KEY_SESSION_ID = "sessionId" | 新增 | +| ohos.account.appAccount | Constants | KEY_AUTH_TYPE = "authType" | 新增 | +| ohos.account.appAccount | Constants | KEY_ACTION = "action" | 新增 | +| ohos.account.appAccount | Constants | KEY_TOKEN = "token" | 新增 | +| ohos.account.appAccount | Constants | KEY_OWNER = "owner" | 新增 | +| ohos.account.appAccount | Constants | KEY_NAME = "name" | 新增 | +| ohos.account.appAccount | Constants | ACTION_AUTHENTICATE = "authenticate" | 新增 | +| ohos.account.appAccount | Constants | ACTION_ADD_ACCOUNT_IMPLICITLY = "addAccountImplicitly" | 新增 | +| ohos.account.appAccount | AuthenticatorInfo | labelId: number; | 新增 | +| ohos.account.appAccount | AuthenticatorInfo | iconId: number; | 新增 | +| ohos.account.appAccount | AuthenticatorInfo | owner: string; | 新增 | +| ohos.account.appAccount | OAuthTokenInfo | token: string; | 新增 | +| ohos.account.appAccount | OAuthTokenInfo | authType: string; | 新增 | +| ohos.account.appAccount | AppAccountInfo | name: string; | 新增 | +| ohos.account.appAccount | AppAccountInfo | owner: string; | 新增 | +| ohos.account.appAccount | AppAccountManager | getAuthenticatorInfo(owner: string, callback: AsyncCallback): void;
getAuthenticatorInfo(owner: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | getAuthenticatorCallback(sessionId: string, callback: AsyncCallback): void;
getAuthenticatorCallback(sessionId: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | getOAuthList(name: string, authType: string, callback: AsyncCallback>): void;
getOAuthList(name: string, authType: string): Promise>; | 新增 | +| ohos.account.appAccount | AppAccountManager | getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback>): void;
getAllOAuthTokens(name: string, owner: string): Promise>; | 新增 | +| ohos.account.appAccount | AppAccountManager | checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback): void;
checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise; | 新增 | +| 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; | 新增 | +| 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; | 新增 | +| ohos.account.appAccount | AppAccountManager | setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback): void;
setOAuthToken(name: string, authType: string, token: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback): void;
getOAuthToken(name: string, owner: string, authType: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | authenticate(name: string, owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 | +| ohos.account.appAccount | AppAccountManager | off(type: 'change', callback?: Callback>): void; | 新增 | +| ohos.account.appAccount | AppAccountManager | on(type: 'change', owners: Array, callback: Callback>): void; | 新增 | +| ohos.account.appAccount | AppAccountManager | getAssociatedData(name: string, key: string, callback: AsyncCallback): void;
getAssociatedData(name: string, key: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | getAccountExtraInfo(name: string, callback: AsyncCallback): void;
getAccountExtraInfo(name: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback): void;
getAccountCredential(name: string, credentialType: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | getAllAccounts(owner: string, callback: AsyncCallback>): void;
getAllAccounts(owner: string): Promise>; | 新增 | +| ohos.account.appAccount | AppAccountManager | getAllAccessibleAccounts(callback: AsyncCallback>): void;
getAllAccessibleAccounts(): Promise>; | 新增 | +| ohos.account.appAccount | AppAccountManager | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback): void;
setAssociatedData(name: string, key: string, value: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback): void;
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback): void;
setAccountExtraInfo(name: string, extraInfo: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback): void;
setAccountCredential(name: string, credentialType: string, credential: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | checkAppAccountSyncEnable(name: string, callback: AsyncCallback): void;
checkAppAccountSyncEnable(name: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback): void;
enableAppAccess(name: string, bundleName: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback): void;
disableAppAccess(name: string, bundleName: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | deleteAccount(name: string, callback: AsyncCallback): void;
deleteAccount(name: string): Promise; | 新增 | +| ohos.account.appAccount | AppAccountManager | addAccountImplicitly(owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | 新增 | +| ohos.account.appAccount | AppAccountManager | addAccount(name: string, callback: AsyncCallback): void;
addAccount(name: string, extraInfo: string, callback: AsyncCallback): void;
addAccount(name: string, extraInfo?: string): Promise; | 新增 | +| ohos.account.appAccount | appAccount | function createAppAccountManager(): AppAccountManager; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ace.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ace.md index dce4c7f9e0..c6266dad44 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ace.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-ace.md @@ -1,14 +1,53 @@ -# xxx子系统JS API变更 +# ArkUI子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,ArkUI子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 组件类型 | 组件名称 | 变更类型 | 变更说明 | +| ---------- | ----------------------------- | -------- | ------------------------------------------------------------ | +| 通用事件 | 焦点事件 onFocus/onBlur | 新增 | 新增焦点事件。 | +| 通用事件 | 鼠标事件 onHover/onMouse | 新增 | 新增鼠标事件。 | +| 通用事件 | 组件区域变化事件 onAreaChange | 新增 | 新增组件区域(包括大小和位置)变化事件。 | +| 通用属性 | 设置多态样式 stateStyles | 新增 | 新增组件多态样式设置。 | +| 通用属性 | 触摸热区设置 responseRegion | 新增 | 新增组件触摸热区设置。 | +| 通用属性 | 点击控制 touchable | 新增 | 新增设置组件是否可以被触摸。 | +| 通用属性 | 焦点控制 focusable | 新增 | 新增设置当前组件是否可以获焦。 | +| 通用属性 | Popup控制 bindPopup | 新增 | 新增popup自定义布局能力。 | +| 通用属性 | Menu控制 bindMenu | 新增 | 新增menu自定义布局能力。 | +| 通用属性 | 悬浮态效果 hoverEffect | 新增 | 新增设置当前组件悬停态下的悬浮效果。 | +| 通用手势 | SwipeGesture | 新增 | 新增滑动手势。 | +| 基础组件 | Image | 新增 | 新增syncLoad属性设置是否同步加载。 | +| 基础组件 | Swiper | 新增 | 新增cachedCount属性设置预加载子组件个数。 | +| 基础组件 | Swiper | 新增 | 新增disableSwipe属性禁用组件滑动切换功能。 | +| 基础组件 | Slider | 新增 | 新增垂直方向的滑动条。 | +| 基础组件 | TabContent | 新增 | 新增tabbar属性自定义布局能力。 | +| 基础组件 | Marquee | 新增 | 新增跑马灯组件。 | +| 基础组件 | Gauge | 新增 | 新增数据量规图表组件。 | +| 基础组件 | PluginComponent | 新增 | 新增插件组件。 | +| 基础组件 | TextArea | 新增 | 新增输入区域组件。 | +| 基础组件 | TextInput | 新增 | 新增输入框组件。 | +| 基础组件 | Toggle | 新增 | 新增状态组件。 | +| 容器组件 | List | 新增 | 新增列表项拖拽事件。 | +| 容器组件 | ScrollBar | 新增 | 新增滚动条组件。 | +| 容器组件 | Navigation | 新增 | 新增页面导航组件。 | +| 容器组件 | Stepper | 新增 | 新增步骤导航器组件。 | +| 容器组件 | StepperItem | 新增 | 新增步骤导航器导航项组件。 | +| 画布组件 | Canvas | 新增 | 新增画布组件。 | +| 画布组件 | Lottie | 新增 | 新增Lottie库的支持。 | +| 全局UI方法 | ActionSheet | 新增 | 新增列表选择弹窗。 | +| 基础组件 | Web | 新增 | 新增加载网页组件。 | +| 基础组件 | Checkbox | 新增 | 新增多选框组件,通常用于某选项的打开或关闭。 | +| 基础组件 | CheckboxGroup | 新增 | 新增多选框群组组件,用于控制多选框全选或者不全选状态。 | +| 基础组件 | DatePicker | 新增 | 新增选择日期的滑动选择器组件。 | +| 基础组件 | TextPicker | 新增 | 新增文本类滑动选择器组件。 | +| 基础组件 | PatternLock | 新增 | 新增图案密码锁组件,以宫格图案的方式输入密码,用于密码验证。 | +| 基础组件 | RichText | 新增 | 新增富文本组件,解析并显示HTML格式文本。 | +| 基础组件 | Search | 新增 | 新增搜索框组件,用于提供用户搜索内容的输入区域。 | +| 基础组件 | Select | 新增 | 新增下拉选择菜单组件,可以让用户在多个选项之间选择。 | +| 基础组件 | TextClock | 新增 | 新增文本时钟组件。 | +| 容器组件 | Refresh | 新增 | 新增下拉刷新容器组件。 | +| 容器组件 | SideBarContainer | 新增 | 新增侧边栏容器组件。 | +| 全局UI方法 | TextPickerDialog | 新增 | 新增文本滑动选择器弹窗。 | +| 全局UI方法 | TimePickerDialog | 新增 | 新增时间滑动选择器弹窗。 | +| 全局UI方法 | DatePickerDialog | 新增 | 新增日期滑动选择器弹窗。 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-battery.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-battery.md index dce4c7f9e0..ad0dc24796 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-battery.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-battery.md @@ -1,14 +1,20 @@ -# xxx子系统JS API变更 +# 电源服务子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,电源服务子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.thermal | thermal | function getThermalLevel(): ThermalLevel; | 新增 | +| ohos.thermal | thermal | function unsubscribeThermalLevel(callback?: AsyncCallback): void; | 新增 | +| ohos.thermal | thermal | function subscribeThermalLevel(callback: AsyncCallback): void; | 新增 | +| ohos.thermal | ThermalLevel | EMERGENCY = 6 | 新增 | +| ohos.thermal | ThermalLevel | WARNING = 5 | 新增 | +| ohos.thermal | ThermalLevel | OVERHEATED = 4 | 新增 | +| ohos.thermal | ThermalLevel | HOT = 3 | 新增 | +| ohos.thermal | ThermalLevel | WARM = 2 | 新增 | +| ohos.thermal | ThermalLevel | NORMAL = 1 | 新增 | +| ohos.thermal | ThermalLevel | COOL = 0 | 新增 | +| ohos.runninglock | runningLock | function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback): void;
function createRunningLock(name: string, type: RunningLockType): Promise; | 新增 | +| ohos.runninglock | runningLock | function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback): void;
function isRunningLockTypeSupported(type: RunningLockType): Promise; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md index dce4c7f9e0..6db6e57dad 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md @@ -1,14 +1,64 @@ -# xxx子系统JS API变更 +# 包管理子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,包管理子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| shortcutInfo | ShortcutInfo | readonly labelId: number; | 新增 | +| shortcutInfo | ShortcutInfo | readonly iconId: number; | 新增 | +| launcherAbilityInfo | LauncherAbilityInfo | readonly installTime : number; | 新增 | +| launcherAbilityInfo | LauncherAbilityInfo | readonly userId: number; | 新增 | +| launcherAbilityInfo | LauncherAbilityInfo | readonly iconId: number; | 新增 | +| launcherAbilityInfo | LauncherAbilityInfo | readonly labelId: number; | 新增 | +| launcherAbilityInfo | LauncherAbilityInfo | readonly elementName : ElementName; | 新增 | +| launcherAbilityInfo | LauncherAbilityInfo | readonly applicationInfo: ApplicationInfo; | 新增 | +| bundleInfo | BundleInfo | readonly reqPermissionStates: Array; | 新增 | +| bundleInfo | BundleInfo | readonly hapModuleInfos: Array; | 新增 | +| bundleInfo | BundleInfo | readonly abilityInfos: Array; | 新增 | +| abilityInfo | AbilityInfo | readonly enabled: boolean; | 新增 | +| abilityInfo | AbilityInfo | readonly metaData: Array; | 新增 | +| ohos.zlib | zlib | function unzipFile(inFile:string, outFile:string, options: Options): Promise; | 新增 | +| ohos.zlib | zlib | function zipFile(inFile:string, outFile:string, options: Options): Promise; | 新增 | +| ohos.zlib | Options | strategy?: CompressStrategy; | 新增 | +| ohos.zlib | Options | memLevel?: MemLevel; | 新增 | +| ohos.zlib | Options | level?: CompressLevel; | 新增 | +| ohos.zlib | MemLevel | MEM_LEVEL_DEFAULT = 8 | 新增 | +| ohos.zlib | MemLevel | MEM_LEVEL_MAX = 9 | 新增 | +| ohos.zlib | MemLevel | MEM_LEVEL_MIN = 1 | 新增 | +| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_FIXED = 4 | 新增 | +| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_RLE = 3 | 新增 | +| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_HUFFMAN_ONLY = 2 | 新增 | +| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_FILTERED = 1 | 新增 | +| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_DEFAULT_STRATEGY = 0 | 新增 | +| ohos.zlib | CompressLevel | COMPRESS_LEVEL_DEFAULT_COMPRESSION = -1 | 新增 | +| ohos.zlib | CompressLevel | COMPRESS_LEVEL_BEST_COMPRESSION = 9 | 新增 | +| ohos.zlib | CompressLevel | COMPRESS_LEVEL_BEST_SPEED = 1 | 新增 | +| ohos.zlib | CompressLevel | COMPRESS_LEVEL_NO_COMPRESSION = 0 | 新增 | +| ohos.zlib | ErrorCode | ERROR_CODE_ERRNO = -1 | 新增 | +| ohos.zlib | ErrorCode | ERROR_CODE_OK = 0 | 新增 | +| ohos.bundle | bundle | function isApplicationEnabled(bundleName: string, callback: AsyncCallback): void;
function isApplicationEnabled(bundleName: string): Promise; | 新增 | +| ohos.bundle | bundle | function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback): void;
function isAbilityEnabled(info: AbilityInfo): Promise; | 新增 | +| ohos.bundle | bundle | function getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback): void;
function getAbilityIcon(bundleName: string, abilityName: string): Promise; | 新增 | +| ohos.bundle | bundle | function getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback): void;
function getAbilityLabel(bundleName: string, abilityName: string): Promise; | 新增 | +| ohos.bundle | bundle | function getNameForUid(uid: number, callback: AsyncCallback) : void
function getNameForUid(uid: number) : Promise; | 新增 | +| ohos.bundle | bundle | function getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback): void;
function getAbilityInfo(bundleName: string, abilityName: string): Promise; | 新增 | +| ohos.bundle | InstallErrorCode | STATUS_UNINSTALL_PERMISSION_DENIED = 0x45 | 新增 | +| ohos.bundle | InstallErrorCode | STATUS_INSTALL_PERMISSION_DENIED = 0x44 | 新增 | +| ohos.bundle | InstallErrorCode | STATUS_GRANT_REQUEST_PERMISSIONS_FAILED = 0x43 | 新增 | +| ohos.bundle | InstallErrorCode | STATUS_FAILED_NO_SPACE_LEFT = 0x42 | 新增 | +| ohos.bundle | InstallErrorCode | STATUS_RECOVER_FAILURE_INVALID = 0x0D | 新增 | +| ohos.bundle | BundleOptions | userId?: number; | 新增 | +| ohos.bundle | ColorMode | LIGHT_MODE = 1 | 新增 | +| ohos.bundle | ColorMode | DARK_MODE = 0 | 新增 | +| ohos.bundle | ColorMode | AUTO_MODE = -1 | 新增 | +| ohos.bundle | BundleFlag | GET_APPLICATION_INFO_WITH_DISABLE = 0x00000200 | 新增 | +| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_DISABLE = 0x00000100 | 新增 | +| ohos.bundle | BundleFlag | GET_ABILITY_INFO_SYSTEMAPP_ONLY = 0x00000080 | 新增 | +| ohos.bundle | BundleFlag | GET_APPLICATION_INFO_WITH_METADATA = 0x00000040 | 新增 | +| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_METADATA = 0x00000020 | 新增 | +| ohos.bundle | BundleFlag | GET_ALL_APPLICATION_INFO = 0xFFFF0000 | 新增 | +| ohos.bundle | BundleFlag | GET_BUNDLE_WITH_REQUESTED_PERMISSION = 0x00000010 | 新增 | +| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_APPLICATION = 0x00000004 | 新增 | +| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_PERMISSION = 0x00000002 | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md index dce4c7f9e0..0c595eec7e 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md @@ -1,14 +1,463 @@ -# xxx子系统JS API变更 +# 基础通信子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,基础通信子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| tagSession | TagSession | getMaxSendLength(): number; | 新增 | +| tagSession | TagSession | sendData(data: number[]): Promise;
sendData(data: number[], callback: AsyncCallback): void; | 新增 | +| tagSession | TagSession | getSendDataTimeout(): number; | 新增 | +| tagSession | TagSession | setSendDataTimeout(timeout: number): boolean; | 新增 | +| tagSession | TagSession | isTagConnected(): boolean; | 新增 | +| tagSession | TagSession | reset(): void; | 新增 | +| tagSession | TagSession | connectTag(): boolean; | 新增 | +| tagSession | TagSession | getTagInfo(): tag.TagInfo; | 新增 | +| nfctech | NfcVTag | getDsfId(): number; | 新增 | +| nfctech | NfcVTag | getResponseFlags(): number; | 新增 | +| nfctech | NfcFTag | getPmm(): number[]; | 新增 | +| nfctech | NfcFTag | getSystemCode(): number[]; | 新增 | +| nfctech | NfcBTag | getRespProtocol(): number[]; | 新增 | +| nfctech | NfcBTag | getRespAppData(): number[]; | 新增 | +| nfctech | NfcATag | getAtqa(): number[]; | 新增 | +| nfctech | NfcATag | getSak(): number; | 新增 | +| ohos.wifiext | PowerModel | THROUGH_WALL = 2 | 新增 | +| ohos.wifiext | PowerModel | GENERAL = 1 | 新增 | +| ohos.wifiext | PowerModel | SLEEPING = 0 | 新增 | +| ohos.wifiext | wifiext | function setPowerModel(model: PowerModel) : boolean | 新增 | +| ohos.wifiext | wifiext | function getPowerModel (): Promise;
function getPowerModel (callback: AsyncCallback): void; | 新增 | +| ohos.wifiext | wifiext | function getSupportedPowerModel(): Promise>;
function getSupportedPowerModel(callback: AsyncCallback>): void; | 新增 | +| ohos.wifiext | wifiext | function disableHotspot(): boolean; | 新增 | +| ohos.wifiext | wifiext | function enableHotspot(): boolean; | 新增 | +| ohos.wifi | GroupOwnerBand | GO_BAND_5GHZ = 2 | 新增 | +| ohos.wifi | GroupOwnerBand | GO_BAND_2GHZ = 1 | 新增 | +| ohos.wifi | GroupOwnerBand | GO_BAND_AUTO = 0 | 新增 | +| ohos.wifi | P2pDeviceStatus | UNAVAILABLE = 4 | 新增 | +| ohos.wifi | P2pDeviceStatus | AVAILABLE = 3 | 新增 | +| ohos.wifi | P2pDeviceStatus | FAILED = 2 | 新增 | +| ohos.wifi | P2pDeviceStatus | INVITED = 1 | 新增 | +| ohos.wifi | P2pDeviceStatus | CONNECTED = 0 | 新增 | +| ohos.wifi | WifiP2pLinkedInfo | groupOwnerAddr: string; | 新增 | +| ohos.wifi | WifiP2pLinkedInfo | isGroupOwner: boolean; | 新增 | +| ohos.wifi | WifiP2pLinkedInfo | connectState: P2pConnectState; | 新增 | +| ohos.wifi | P2pConnectState | CONNECTED = 1 | 新增 | +| ohos.wifi | P2pConnectState | DISCONNECTED = 0 | 新增 | +| ohos.wifi | WifiP2pGroupInfo | goIpAddress: string; | 新增 | +| ohos.wifi | WifiP2pGroupInfo | clientDevices: WifiP2pDevice[]; | 新增 | +| ohos.wifi | WifiP2pGroupInfo | frequency: number; | 新增 | +| ohos.wifi | WifiP2pGroupInfo | networkId: number; | 新增 | +| ohos.wifi | WifiP2pGroupInfo | groupName: string; | 新增 | +| ohos.wifi | WifiP2pGroupInfo | interface: string; | 新增 | +| ohos.wifi | WifiP2pGroupInfo | passphrase: string; | 新增 | +| ohos.wifi | WifiP2pGroupInfo | ownerInfo: WifiP2pDevice; | 新增 | +| ohos.wifi | WifiP2pGroupInfo | isP2pGo: boolean; | 新增 | +| ohos.wifi | WifiP2PConfig | goBand: GroupOwnerBand; | 新增 | +| ohos.wifi | WifiP2PConfig | groupName: string; | 新增 | +| ohos.wifi | WifiP2PConfig | passphrase: string; | 新增 | +| ohos.wifi | WifiP2PConfig | netId: number; | 新增 | +| ohos.wifi | WifiP2PConfig | deviceAddress: string; | 新增 | +| ohos.wifi | WifiP2pDevice | groupCapabilitys: number; | 新增 | +| ohos.wifi | WifiP2pDevice | deviceStatus: P2pDeviceStatus; | 新增 | +| ohos.wifi | WifiP2pDevice | primaryDeviceType: string; | 新增 | +| ohos.wifi | WifiP2pDevice | deviceAddress: string; | 新增 | +| ohos.wifi | WifiP2pDevice | deviceName: string; | 新增 | +| ohos.wifi | ConnState | UNKNOWN | 新增 | +| ohos.wifi | ConnState | DISCONNECTED | 新增 | +| ohos.wifi | ConnState | DISCONNECTING | 新增 | +| ohos.wifi | ConnState | CONNECTED | 新增 | +| ohos.wifi | ConnState | OBTAINING_IPADDR | 新增 | +| ohos.wifi | ConnState | AUTHENTICATING | 新增 | +| ohos.wifi | ConnState | CONNECTING | 新增 | +| ohos.wifi | ConnState | SCANNING | 新增 | +| ohos.wifi | IpInfo | leaseDuration: number; | 新增 | +| ohos.wifi | IpInfo | serverIp: number; | 新增 | +| ohos.wifi | IpInfo | secondDns: number; | 新增 | +| ohos.wifi | IpInfo | primaryDns: number; | 新增 | +| ohos.wifi | IpInfo | netmask: number; | 新增 | +| ohos.wifi | IpInfo | gateway: number; | 新增 | +| ohos.wifi | IpInfo | ipAddress: number; | 新增 | +| ohos.wifi | WifiLinkedInfo | connState: ConnState; | 新增 | +| ohos.wifi | WifiLinkedInfo | ipAddress: number; | 新增 | +| ohos.wifi | WifiLinkedInfo | macAddress: string; | 新增 | +| ohos.wifi | WifiLinkedInfo | isRestricted: boolean; | 新增 | +| ohos.wifi | WifiLinkedInfo | isHidden: boolean; | 新增 | +| ohos.wifi | WifiLinkedInfo | frequency: number; | 新增 | +| ohos.wifi | WifiLinkedInfo | linkSpeed: number; | 新增 | +| ohos.wifi | WifiLinkedInfo | band: number; | 新增 | +| ohos.wifi | WifiLinkedInfo | rssi: number; | 新增 | +| ohos.wifi | WifiLinkedInfo | bssid: string; | 新增 | +| ohos.wifi | WifiLinkedInfo | ssid: string; | 新增 | +| ohos.wifi | WifiScanInfo | channelWidth: number; | 新增 | +| ohos.wifi | WifiScanInfo | capabilities: string; | 新增 | +| ohos.wifi | wifi | function off(type: "p2pDiscoveryChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "p2pDiscoveryChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "p2pPersistentGroupChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "p2pPersistentGroupChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "p2pPeerDeviceChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "p2pPeerDeviceChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "p2pDeviceChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "p2pDeviceChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "p2pConnectionChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "p2pConnectionChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "p2pStateChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "p2pStateChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "hotspotStateChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "hotspotStateChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "wifiRssiChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "wifiRssiChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "wifiScanStateChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "wifiScanStateChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "wifiConnectionChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "wifiConnectionChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function off(type: "wifiStateChange", callback?: Callback): void; | 新增 | +| ohos.wifi | wifi | function on(type: "wifiStateChange", callback: Callback): void; | 新增 | +| ohos.wifi | wifi | function stopDiscoverDevices(): boolean; | 新增 | +| ohos.wifi | wifi | function startDiscoverDevices(): boolean; | 新增 | +| ohos.wifi | wifi | function p2pCancelConnect(): boolean; | 新增 | +| ohos.wifi | wifi | function p2pConnect(config: WifiP2PConfig): boolean; | 新增 | +| ohos.wifi | wifi | function removeGroup(): boolean; | 新增 | +| ohos.wifi | wifi | function createGroup(config: WifiP2PConfig): boolean; | 新增 | +| ohos.wifi | wifi | function getP2pPeerDevices(): Promise;
function getP2pPeerDevices(callback: AsyncCallback): void; | 新增 | +| ohos.wifi | wifi | function getCurrentGroup(): Promise;
function getCurrentGroup(callback: AsyncCallback): void; | 新增 | +| ohos.wifi | wifi | function getP2pLinkedInfo(): Promise;
function getP2pLinkedInfo(callback: AsyncCallback): void; | 新增 | +| ohos.wifi | wifi | function getCountryCode(): string; | 新增 | +| ohos.wifi | wifi | function getIpInfo(): IpInfo; | 新增 | +| ohos.wifi | wifi | function isFeatureSupported(featureId: number): boolean; | 新增 | +| ohos.wifi | wifi | function isConnected(): boolean; | 新增 | +| ohos.wifi | wifi | function getLinkedInfo(): Promise;
function getLinkedInfo(callback: AsyncCallback): void; | 新增 | +| ohos.wifi | wifi | function removeUntrustedConfig(config: WifiDeviceConfig): Promise;
function removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback): void; | 新增 | +| ohos.wifi | wifi | function addUntrustedConfig(config: WifiDeviceConfig): Promise;
function addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback): void; | 新增 | +| ohos.nfc.tag | TagInfo | supportedProfiles: number[]; | 新增 | +| ohos.nfc.tag | tag | function getNfcVTag(tagInfo: TagInfo): NfcVTag | 新增 | +| ohos.nfc.tag | tag | function getNfcFTag(tagInfo: TagInfo): NfcFTag | 新增 | +| ohos.nfc.tag | tag | function getNfcBTag(tagInfo: TagInfo): NfcBTag | 新增 | +| ohos.nfc.tag | tag | function getNfcATag(tagInfo: TagInfo): NfcATag | 新增 | +| ohos.nfc.tag | tag | const MIFARE_ULTRALIGHT = 9; | 新增 | +| ohos.nfc.tag | tag | const MIFARE_CLASSIC = 8; | 新增 | +| ohos.nfc.tag | tag | const NDEF = 6; | 新增 | +| ohos.nfc.tag | tag | const NFC_V = 5; | 新增 | +| ohos.nfc.tag | tag | const NFC_F = 4; | 新增 | +| ohos.nfc.tag | tag | const ISO_DEP = 3; | 新增 | +| ohos.nfc.tag | tag | const NFC_B = 2; | 新增 | +| ohos.nfc.tag | tag | const NFC_A = 1; | 新增 | +| ohos.nfc.controller | nfcController | function getNfcState(): NfcState | 新增 | +| ohos.nfc.controller | nfcController | function isNfcOpen(): boolean | 新增 | +| ohos.nfc.controller | nfcController | function closeNfc(): boolean | 新增 | +| ohos.nfc.controller | nfcController | function openNfc(): boolean | 新增 | +| ohos.nfc.controller | nfcController | function off(type: "nfcStateChange", callback?: Callback): void | 新增 | +| ohos.nfc.controller | nfcController | function on(type: "nfcStateChange", callback: Callback): void | 新增 | +| ohos.nfc.controller | nfcController | function isNfcAvailable(): boolean | 新增 | +| ohos.nfc.controller | NfcState | STATE_TURNING_OFF = 4 | 新增 | +| ohos.nfc.controller | NfcState | STATE_ON = 3 | 新增 | +| ohos.nfc.controller | NfcState | STATE_TURNING_ON = 2 | 新增 | +| ohos.nfc.controller | NfcState | STATE_OFF = 1 | 新增 | +| ohos.nfc.cardEmulation | HceService | sendResponse(responseApdu: number[]): void; | 新增 | +| ohos.nfc.cardEmulation | HceService | on(type: "hceCmd", callback: AsyncCallback): void; | 新增 | +| ohos.nfc.cardEmulation | HceService | stopHCE(): boolean; | 新增 | +| ohos.nfc.cardEmulation | HceService | startHCE(aidList: string[]): boolean; | 新增 | +| ohos.nfc.cardEmulation | cardEmulation | function isSupported(feature: number): boolean; | 新增 | +| ohos.nfc.cardEmulation | FeatureType | ESE = 2 | 新增 | +| ohos.nfc.cardEmulation | FeatureType | UICC = 1 | 新增 | +| ohos.nfc.cardEmulation | FeatureType | HCE = 0 | 新增 | +| ohos.connectedTag | NfcRfType | NFC_RF_ENTER = 1 | 新增 | +| ohos.connectedTag | NfcRfType | NFC_RF_LEAVE = 0 | 新增 | +| ohos.connectedTag | connectedTag | function off(type: "notify", callback?:Callback): void; | 新增 | +| ohos.connectedTag | connectedTag | function on(type: "notify", callback: Callback): void; | 新增 | +| ohos.connectedTag | connectedTag | function writeNdefTag(data: string): Promise;
function writeNdefTag(data: string, callback: AsyncCallback): void; | 新增 | +| ohos.connectedTag | connectedTag | function readNdefTag(): Promise;
function readNdefTag(callback: AsyncCallback): void; | 新增 | +| ohos.connectedTag | connectedTag | function uninit(): boolean; | 新增 | +| ohos.connectedTag | connectedTag | function init(): boolean; | 新增 | +| ohos.bluetooth | ProfileId | PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4 | 新增 | +| ohos.bluetooth | ProfileId | PROFILE_A2DP_SOURCE = 1 | 新增 | +| ohos.bluetooth | PlayingState | STATE_PLAYING | 新增 | +| ohos.bluetooth | PlayingState | STATE_NOT_PLAYING | 新增 | +| ohos.bluetooth | StateChangeParam | state: ProfileConnectionState; | 新增 | +| ohos.bluetooth | StateChangeParam | deviceId: string; | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_PERSONAL_MOBILITY_DEVICE = 0x093C | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_GENERIC_HEALTH_MANAGER = 0x0938 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_ANKLE_PROSTHESIS = 0x0934 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_KNEE_PROSTHESIS = 0x0930 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_MEDICATION_MONITOR = 0x092C | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_PEAK_FLOW_MOITOR = 0x0928 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_BODY_COMPOSITION_ANALYZER = 0x0924 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_STEP_COUNTER = 0x0920 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_DATA_DISPLAY = 0x091C | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_PULSE_RATE = 0x0918 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_PULSE_OXIMETER = 0x0914 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_GLUCOSE = 0x0910 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_WEIGHING = 0x090C | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_THERMOMETER = 0x0908 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_BLOOD_PRESSURE = 0x0904 | 新增 | +| ohos.bluetooth | MajorMinorClass | HEALTH_UNCATEGORIZED = 0x0900 | 新增 | +| ohos.bluetooth | MajorMinorClass | TOY_GAME = 0x0814 | 新增 | +| ohos.bluetooth | MajorMinorClass | TOY_CONTROLLER = 0x0810 | 新增 | +| ohos.bluetooth | MajorMinorClass | TOY_DOLL_ACTION_FIGURE = 0x080C | 新增 | +| ohos.bluetooth | MajorMinorClass | TOY_VEHICLE = 0x0808 | 新增 | +| ohos.bluetooth | MajorMinorClass | TOY_ROBOT = 0x0804 | 新增 | +| ohos.bluetooth | MajorMinorClass | TOY_UNCATEGORIZED = 0x0800 | 新增 | +| ohos.bluetooth | MajorMinorClass | WEARABLE_GLASSES = 0x0714 | 新增 | +| ohos.bluetooth | MajorMinorClass | WEARABLE_HELMET = 0x0710 | 新增 | +| ohos.bluetooth | MajorMinorClass | WEARABLE_JACKET = 0x070C | 新增 | +| ohos.bluetooth | MajorMinorClass | WEARABLE_PAGER = 0x0708 | 新增 | +| ohos.bluetooth | MajorMinorClass | WEARABLE_WRIST_WATCH = 0x0704 | 新增 | +| ohos.bluetooth | MajorMinorClass | WEARABLE_UNCATEGORIZED = 0x0700 | 新增 | +| ohos.bluetooth | MajorMinorClass | IMAGING_PRINTER = 0x0680 | 新增 | +| ohos.bluetooth | MajorMinorClass | IMAGING_SCANNER = 0x0640 | 新增 | +| ohos.bluetooth | MajorMinorClass | IMAGING_CAMERA = 0x0620 | 新增 | +| ohos.bluetooth | MajorMinorClass | IMAGING_DISPLAY = 0x0610 | 新增 | +| ohos.bluetooth | MajorMinorClass | IMAGING_UNCATEGORIZED = 0x0600 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_GESTURAL_INPUT = 0x0522 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_SCANNER_RFID = 0x0520 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_DIGITAL_PEN = 0x051C | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_CARD_READER = 0x0518 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_DIGITIZER_TABLET = 0x0514 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_SENSING_DEVICE = 0x0510 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_REMOTE_CONTROL = 0x05C0 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_GAMEPAD = 0x0508 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_JOYSTICK = 0x0504 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_UNCATEGORIZED = 0x0500 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_KEYBOARD_POINTING = 0x05C0 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_POINTING_DEVICE = 0x0580 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_KEYBOARD = 0x0540 | 新增 | +| ohos.bluetooth | MajorMinorClass | PERIPHERAL_NON_KEYBOARD_NON_POINTING = 0x0500 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_GAMING_TOY = 0x0448 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_CONFERENCING = 0x0440 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 0x043C | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_MONITOR = 0x0438 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_CAMCORDER = 0x0434 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_CAMERA = 0x0430 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VCR = 0x042C | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_HIFI_AUDIO = 0x0428 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_SET_TOP_BOX = 0x0424 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_CAR_AUDIO = 0x0420 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_PORTABLE_AUDIO = 0x041C | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_HEADPHONES = 0x0418 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_LOUDSPEAKER = 0x0414 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_MICROPHONE = 0x0410 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_HANDSFREE = 0x0408 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_WEARABLE_HEADSET = 0x0404 | 新增 | +| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_UNCATEGORIZED = 0x0400 | 新增 | +| ohos.bluetooth | MajorMinorClass | NETWORK_NO_SERVICE = 0x03E0 | 新增 | +| ohos.bluetooth | MajorMinorClass | NETWORK_83_TO_99_UTILIZED = 0x03C0 | 新增 | +| ohos.bluetooth | MajorMinorClass | NETWORK_67_TO_83_UTILIZED = 0x03A0 | 新增 | +| ohos.bluetooth | MajorMinorClass | NETWORK_60_TO_67_UTILIZED = 0x0380 | 新增 | +| ohos.bluetooth | MajorMinorClass | NETWORK_33_TO_50_UTILIZED = 0x0360 | 新增 | +| ohos.bluetooth | MajorMinorClass | NETWORK_17_TO_33_UTILIZED = 0x0340 | 新增 | +| ohos.bluetooth | MajorMinorClass | NETWORK_1_TO_17_UTILIZED = 0x0320 | 新增 | +| ohos.bluetooth | MajorMinorClass | NETWORK_FULLY_AVAILABLE = 0x0300 | 新增 | +| ohos.bluetooth | MajorMinorClass | PHONE_ISDN = 0x0214 | 新增 | +| ohos.bluetooth | MajorMinorClass | PHONE_MODEM_OR_GATEWAY = 0x0210 | 新增 | +| ohos.bluetooth | MajorMinorClass | PHONE_SMART = 0x020C | 新增 | +| ohos.bluetooth | MajorMinorClass | PHONE_CORDLESS = 0x0208 | 新增 | +| ohos.bluetooth | MajorMinorClass | PHONE_CELLULAR = 0x0204 | 新增 | +| ohos.bluetooth | MajorMinorClass | PHONE_UNCATEGORIZED = 0x0200 | 新增 | +| ohos.bluetooth | MajorMinorClass | COMPUTER_TABLET = 0x011C | 新增 | +| ohos.bluetooth | MajorMinorClass | COMPUTER_WEARABLE = 0x0118 | 新增 | +| ohos.bluetooth | MajorMinorClass | COMPUTER_PALM_SIZE_PC_PDA = 0x0114 | 新增 | +| ohos.bluetooth | MajorMinorClass | COMPUTER_HANDHELD_PC_PDA = 0x0110 | 新增 | +| ohos.bluetooth | MajorMinorClass | COMPUTER_LAPTOP = 0x010C | 新增 | +| ohos.bluetooth | MajorMinorClass | COMPUTER_SERVER = 0x0108 | 新增 | +| ohos.bluetooth | MajorMinorClass | COMPUTER_DESKTOP = 0x0104 | 新增 | +| ohos.bluetooth | MajorMinorClass | COMPUTER_UNCATEGORIZED = 0x0100 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_UNCATEGORIZED = 0x1F00 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_HEALTH = 0x0900 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_TOY = 0x0800 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_WEARABLE = 0x0700 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_IMAGING = 0x0600 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_PERIPHERAL = 0x0500 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_AUDIO_VIDEO = 0x0400 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_NETWORKING = 0x0300 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_PHONE = 0x0200 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_COMPUTER = 0x0100 | 新增 | +| ohos.bluetooth | MajorClass | MAJOR_MISC = 0x0000 | 新增 | +| ohos.bluetooth | BondState | BOND_STATE_BONDED = 2 | 新增 | +| ohos.bluetooth | BondState | BOND_STATE_BONDING = 1 | 新增 | +| ohos.bluetooth | BondState | BOND_STATE_INVALID = 0 | 新增 | +| ohos.bluetooth | ScanMode | SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE = 5 | 新增 | +| ohos.bluetooth | ScanMode | SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE = 4 | 新增 | +| ohos.bluetooth | ScanMode | SCAN_MODE_LIMITED_DISCOVERABLE = 3 | 新增 | +| ohos.bluetooth | ScanMode | SCAN_MODE_GENERAL_DISCOVERABLE = 2 | 新增 | +| ohos.bluetooth | ScanMode | SCAN_MODE_CONNECTABLE = 1 | 新增 | +| ohos.bluetooth | ScanMode | SCAN_MODE_NONE = 0 | 新增 | +| ohos.bluetooth | SppType | SPP_RFCOMM | 新增 | +| ohos.bluetooth | BluetoothState | STATE_BLE_TURNING_OFF = 6 | 新增 | +| ohos.bluetooth | BluetoothState | STATE_BLE_ON = 5 | 新增 | +| ohos.bluetooth | BluetoothState | STATE_BLE_TURNING_ON = 4 | 新增 | +| ohos.bluetooth | BluetoothState | STATE_TURNING_OFF = 3 | 新增 | +| ohos.bluetooth | BluetoothState | STATE_ON = 2 | 新增 | +| ohos.bluetooth | BluetoothState | STATE_TURNING_ON = 1 | 新增 | +| ohos.bluetooth | BluetoothState | STATE_OFF = 0 | 新增 | +| ohos.bluetooth | ProfileConnectionState | STATE_DISCONNECTING = 3 | 新增 | +| ohos.bluetooth | ProfileConnectionState | STATE_CONNECTED = 2 | 新增 | +| ohos.bluetooth | ProfileConnectionState | STATE_CONNECTING = 1 | 新增 | +| ohos.bluetooth | ProfileConnectionState | STATE_DISCONNECTED = 0 | 新增 | +| ohos.bluetooth | MatchMode | MATCH_MODE_STICKY = 2 | 新增 | +| ohos.bluetooth | MatchMode | MATCH_MODE_AGGRESSIVE = 1 | 新增 | +| ohos.bluetooth | ScanDuty | SCAN_MODE_LOW_LATENCY = 2 | 新增 | +| ohos.bluetooth | ScanDuty | SCAN_MODE_BALANCED = 1 | 新增 | +| ohos.bluetooth | ScanDuty | SCAN_MODE_LOW_POWER = 0 | 新增 | +| ohos.bluetooth | BondStateParam | state: BondState; | 新增 | +| ohos.bluetooth | BondStateParam | deviceId: string; | 新增 | +| ohos.bluetooth | DeviceClass | classOfDevice: number; | 新增 | +| ohos.bluetooth | DeviceClass | majorMinorClass: MajorMinorClass; | 新增 | +| ohos.bluetooth | DeviceClass | majorClass: MajorClass; | 新增 | +| ohos.bluetooth | PinRequiredParam | pinCode: string; | 新增 | +| ohos.bluetooth | PinRequiredParam | deviceId: string; | 新增 | +| ohos.bluetooth | SppOption | type: SppType; | 新增 | +| ohos.bluetooth | SppOption | secure: boolean; | 新增 | +| ohos.bluetooth | SppOption | uuid: string; | 新增 | +| ohos.bluetooth | ScanOptions | matchMode?: MatchMode; | 新增 | +| ohos.bluetooth | ScanOptions | dutyMode?: ScanDuty; | 新增 | +| ohos.bluetooth | ScanOptions | interval?: number; | 新增 | +| ohos.bluetooth | ScanFilter | serviceUuid?: string; | 新增 | +| ohos.bluetooth | ScanFilter | name?: string; | 新增 | +| ohos.bluetooth | ScanFilter | deviceId?: string; | 新增 | +| ohos.bluetooth | ServiceData | serviceValue: ArrayBuffer; | 新增 | +| ohos.bluetooth | ServiceData | serviceUuid: string; | 新增 | +| ohos.bluetooth | ManufactureData | manufactureValue: ArrayBuffer; | 新增 | +| ohos.bluetooth | ManufactureData | manufactureId: number; | 新增 | +| ohos.bluetooth | AdvertiseData | serviceData: Array; | 新增 | +| ohos.bluetooth | AdvertiseData | manufactureData: Array; | 新增 | +| ohos.bluetooth | AdvertiseData | serviceUuids: Array; | 新增 | +| ohos.bluetooth | AdvertiseSetting | connectable?: boolean; | 新增 | +| ohos.bluetooth | AdvertiseSetting | txPower?: number; | 新增 | +| ohos.bluetooth | AdvertiseSetting | interval?: number; | 新增 | +| ohos.bluetooth | ScanResult | data: ArrayBuffer; | 新增 | +| ohos.bluetooth | ScanResult | rssi: number; | 新增 | +| ohos.bluetooth | ScanResult | deviceId: string; | 新增 | +| ohos.bluetooth | BLEConnectChangedState | state: ProfileConnectionState; | 新增 | +| ohos.bluetooth | BLEConnectChangedState | deviceId: string; | 新增 | +| ohos.bluetooth | ServerResponse | value: ArrayBuffer; | 新增 | +| ohos.bluetooth | ServerResponse | offset: number; | 新增 | +| ohos.bluetooth | ServerResponse | status: number; | 新增 | +| ohos.bluetooth | ServerResponse | transId: number; | 新增 | +| ohos.bluetooth | ServerResponse | deviceId: string; | 新增 | +| ohos.bluetooth | DescriptorWriteReq | serviceUuid: string; | 新增 | +| ohos.bluetooth | DescriptorWriteReq | characteristicUuid: string; | 新增 | +| ohos.bluetooth | DescriptorWriteReq | descriptorUuid: string; | 新增 | +| ohos.bluetooth | DescriptorWriteReq | value: ArrayBuffer; | 新增 | +| ohos.bluetooth | DescriptorWriteReq | needRsp: boolean; | 新增 | +| ohos.bluetooth | DescriptorWriteReq | isPrep: boolean; | 新增 | +| ohos.bluetooth | DescriptorWriteReq | offset: number; | 新增 | +| ohos.bluetooth | DescriptorWriteReq | transId: number; | 新增 | +| ohos.bluetooth | DescriptorWriteReq | deviceId: string; | 新增 | +| ohos.bluetooth | DescriptorReadReq | serviceUuid: string; | 新增 | +| ohos.bluetooth | DescriptorReadReq | characteristicUuid: string; | 新增 | +| ohos.bluetooth | DescriptorReadReq | descriptorUuid: string; | 新增 | +| ohos.bluetooth | DescriptorReadReq | offset: number; | 新增 | +| ohos.bluetooth | DescriptorReadReq | transId: number; | 新增 | +| ohos.bluetooth | DescriptorReadReq | deviceId: string; | 新增 | +| ohos.bluetooth | CharacteristicWriteReq | serviceUuid: string; | 新增 | +| ohos.bluetooth | CharacteristicWriteReq | characteristicUuid: string; | 新增 | +| ohos.bluetooth | CharacteristicWriteReq | value: ArrayBuffer; | 新增 | +| ohos.bluetooth | CharacteristicWriteReq | needRsp: boolean; | 新增 | +| ohos.bluetooth | CharacteristicWriteReq | isPrep: boolean; | 新增 | +| ohos.bluetooth | CharacteristicWriteReq | offset: number; | 新增 | +| ohos.bluetooth | CharacteristicWriteReq | transId: number; | 新增 | +| ohos.bluetooth | CharacteristicWriteReq | deviceId: string; | 新增 | +| ohos.bluetooth | CharacteristicReadReq | serviceUuid: string; | 新增 | +| ohos.bluetooth | CharacteristicReadReq | characteristicUuid: string; | 新增 | +| ohos.bluetooth | CharacteristicReadReq | offset: number; | 新增 | +| ohos.bluetooth | CharacteristicReadReq | transId: number; | 新增 | +| ohos.bluetooth | CharacteristicReadReq | deviceId: string; | 新增 | +| ohos.bluetooth | NotifyCharacteristic | confirm: boolean; | 新增 | +| ohos.bluetooth | NotifyCharacteristic | characteristicValue: ArrayBuffer; | 新增 | +| ohos.bluetooth | NotifyCharacteristic | characteristicUuid: string; | 新增 | +| ohos.bluetooth | NotifyCharacteristic | serviceUuid: string; | 新增 | +| ohos.bluetooth | BLEDescriptor | descriptorValue: ArrayBuffer; | 新增 | +| ohos.bluetooth | BLEDescriptor | descriptorUuid: string; | 新增 | +| ohos.bluetooth | BLEDescriptor | characteristicUuid: string; | 新增 | +| ohos.bluetooth | BLEDescriptor | serviceUuid: string; | 新增 | +| ohos.bluetooth | BLECharacteristic | descriptors: Array; | 新增 | +| ohos.bluetooth | BLECharacteristic | characteristicValue: ArrayBuffer; | 新增 | +| ohos.bluetooth | BLECharacteristic | characteristicUuid: string; | 新增 | +| ohos.bluetooth | BLECharacteristic | serviceUuid: string; | 新增 | +| ohos.bluetooth | GattService | includeServices?: Array; | 新增 | +| ohos.bluetooth | GattService | characteristics: Array; | 新增 | +| ohos.bluetooth | GattService | isPrimary: boolean; | 新增 | +| ohos.bluetooth | GattService | serviceUuid: string; | 新增 | +| ohos.bluetooth | GattClientDevice | off(type: "BLEConnectionStateChange", callback?: Callback): void; | 新增 | +| ohos.bluetooth | GattClientDevice | on(type: "BLEConnectionStateChange", callback: Callback): void; | 新增 | +| ohos.bluetooth | GattClientDevice | off(type: "BLECharacteristicChange", callback?: Callback): void; | 新增 | +| ohos.bluetooth | GattClientDevice | on(type: "BLECharacteristicChange", callback: Callback): void; | 新增 | +| ohos.bluetooth | GattClientDevice | setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean; | 新增 | +| ohos.bluetooth | GattClientDevice | setBLEMtuSize(mtu: number): boolean; | 新增 | +| ohos.bluetooth | GattClientDevice | getRssiValue(callback: AsyncCallback): void;
getRssiValue(): Promise; | 新增 | +| ohos.bluetooth | GattClientDevice | writeDescriptorValue(descriptor: BLEDescriptor): boolean; | 新增 | +| ohos.bluetooth | GattClientDevice | writeCharacteristicValue(characteristic: BLECharacteristic): boolean; | 新增 | +| ohos.bluetooth | GattClientDevice | readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback): void;
readDescriptorValue(descriptor: BLEDescriptor): Promise; | 新增 | +| ohos.bluetooth | GattClientDevice | readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback): void;
readCharacteristicValue(characteristic: BLECharacteristic): Promise; | 新增 | +| ohos.bluetooth | GattClientDevice | getServices(callback: AsyncCallback>): void;
getServices(): Promise>; | 新增 | +| ohos.bluetooth | GattClientDevice | getDeviceName(callback: AsyncCallback): void;
getDeviceName(): Promise; | 新增 | +| ohos.bluetooth | GattClientDevice | close(): boolean; | 新增 | +| ohos.bluetooth | GattClientDevice | disconnect(): boolean; | 新增 | +| ohos.bluetooth | GattClientDevice | connect(): boolean; | 新增 | +| ohos.bluetooth | GattServer | off(type: "connectStateChange", callback?: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | on(type: "connectStateChange", callback: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | off(type: "descriptorWrite", callback?: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | on(type: "descriptorWrite", callback: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | off(type: "descriptorRead", callback?: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | on(type: "descriptorRead", callback: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | off(type: "characteristicWrite", callback?: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | on(type: "characteristicWrite", callback: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | off(type: "characteristicRead", callback?: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | on(type: "characteristicRead", callback: Callback): void; | 新增 | +| ohos.bluetooth | GattServer | sendResponse(serverResponse: ServerResponse): boolean; | 新增 | +| ohos.bluetooth | GattServer | notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean; | 新增 | +| ohos.bluetooth | GattServer | close(): void; | 新增 | +| ohos.bluetooth | GattServer | removeService(serviceUuid: string): boolean; | 新增 | +| ohos.bluetooth | GattServer | addService(service: GattService): boolean; | 新增 | +| ohos.bluetooth | GattServer | stopAdvertising(): void; | 新增 | +| ohos.bluetooth | GattServer | startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void; | 新增 | +| ohos.bluetooth | BLE | function off(type: "BLEDeviceFind", callback?: Callback>): void; | 新增 | +| ohos.bluetooth | BLE | function on(type: "BLEDeviceFind", callback: Callback>): void; | 新增 | +| ohos.bluetooth | BLE | function stopBLEScan(): void; | 新增 | +| ohos.bluetooth | BLE | function startBLEScan(filters: Array, options?: ScanOptions): void; | 新增 | +| ohos.bluetooth | BLE | function getConnectedBLEDevices(): Array; | 新增 | +| ohos.bluetooth | BLE | function createGattClientDevice(deviceId: string): GattClientDevice; | 新增 | +| ohos.bluetooth | BLE | function createGattServer(): GattServer; | 新增 | +| ohos.bluetooth | HandsFreeAudioGatewayProfile | off(type: "connectionStateChange", callback?: Callback): void; | 新增 | +| ohos.bluetooth | HandsFreeAudioGatewayProfile | on(type: "connectionStateChange", callback: Callback): void; | 新增 | +| ohos.bluetooth | HandsFreeAudioGatewayProfile | disconnect(device: string): boolean; | 新增 | +| ohos.bluetooth | HandsFreeAudioGatewayProfile | connect(device: string): boolean; | 新增 | +| ohos.bluetooth | A2dpSourceProfile | getPlayingState(device: string): PlayingState; | 新增 | +| ohos.bluetooth | A2dpSourceProfile | off(type: "connectionStateChange", callback?: Callback): void; | 新增 | +| ohos.bluetooth | A2dpSourceProfile | on(type: "connectionStateChange", callback: Callback): void; | 新增 | +| ohos.bluetooth | A2dpSourceProfile | disconnect(device: string): boolean; | 新增 | +| ohos.bluetooth | A2dpSourceProfile | connect(device: string): boolean; | 新增 | +| ohos.bluetooth | BaseProfile | getDeviceState(device: string): ProfileConnectionState; | 新增 | +| ohos.bluetooth | BaseProfile | getConnectionDevices(): Array; | 新增 | +| ohos.bluetooth | bluetooth | function getProfile(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile; | 新增 | +| ohos.bluetooth | bluetooth | function off(type: "sppRead", clientSocket: number, callback?: Callback): void; | 新增 | +| ohos.bluetooth | bluetooth | function on(type: "sppRead", clientSocket: number, callback: Callback): void; | 新增 | +| ohos.bluetooth | bluetooth | function sppWrite(clientSocket: number, data: ArrayBuffer): boolean; | 新增 | +| ohos.bluetooth | bluetooth | function sppCloseClientSocket(socket: number): void; | 新增 | +| ohos.bluetooth | bluetooth | function sppCloseServerSocket(socket: number): void; | 新增 | +| ohos.bluetooth | bluetooth | function sppConnect(device: string, option: SppOption, callback: AsyncCallback): void; | 新增 | +| ohos.bluetooth | bluetooth | function sppAccept(serverSocket: number, callback: AsyncCallback): void; | 新增 | +| ohos.bluetooth | bluetooth | function sppListen(name: string, option: SppOption, callback: AsyncCallback): void; | 新增 | +| ohos.bluetooth | bluetooth | function off(type: "stateChange", callback?: Callback): void; | 新增 | +| ohos.bluetooth | bluetooth | function on(type: "stateChange", callback: Callback): void; | 新增 | +| ohos.bluetooth | bluetooth | function off(type: "pinRequired", callback?: Callback): void; | 新增 | +| ohos.bluetooth | bluetooth | function on(type: "pinRequired", callback: Callback): void; | 新增 | +| ohos.bluetooth | bluetooth | function off(type: "bondStateChange", callback?: Callback): void; | 新增 | +| ohos.bluetooth | bluetooth | function on(type: "bondStateChange", callback: Callback): void; | 新增 | +| ohos.bluetooth | bluetooth | function off(type: "bluetoothDeviceFind", callback?: Callback>): void; | 新增 | +| ohos.bluetooth | bluetooth | function on(type: "bluetoothDeviceFind", callback: Callback>): void; | 新增 | +| ohos.bluetooth | bluetooth | function stopBluetoothDiscovery(): boolean; | 新增 | +| ohos.bluetooth | bluetooth | function startBluetoothDiscovery(): boolean; | 新增 | +| ohos.bluetooth | bluetooth | function getBluetoothScanMode(): ScanMode; | 新增 | +| ohos.bluetooth | bluetooth | function setBluetoothScanMode(mode: ScanMode, duration: number): boolean; | 新增 | +| ohos.bluetooth | bluetooth | function setLocalName(name: string): boolean; | 新增 | +| ohos.bluetooth | bluetooth | function setDevicePairingConfirmation(device: string, accept: boolean): boolean; | 新增 | +| ohos.bluetooth | bluetooth | function getProfileConnState(profileId: ProfileId): ProfileConnectionState; | 新增 | +| ohos.bluetooth | bluetooth | function getPairedDevices(): Array; | 新增 | +| ohos.bluetooth | bluetooth | function getLocalName(): string; | 新增 | +| ohos.bluetooth | bluetooth | function disableBluetooth(): boolean; | 新增 | +| ohos.bluetooth | bluetooth | function enableBluetooth(): boolean; | 新增 | +| ohos.bluetooth | bluetooth | function getRemoteDeviceClass(deviceId: string): DeviceClass; | 新增 | +| ohos.bluetooth | bluetooth | function getRemoteDeviceName(deviceId: string): string; | 新增 | +| ohos.bluetooth | bluetooth | function pairDevice(deviceId: string): boolean; | 新增 | +| ohos.bluetooth | bluetooth | function getBtConnectionState(): ProfileConnectionState; | 新增 | +| ohos.bluetooth | bluetooth | function getState(): BluetoothState; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-complier-and-runtime.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-complier-and-runtime.md index dce4c7f9e0..2e95af448c 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-complier-and-runtime.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-complier-and-runtime.md @@ -1,14 +1,379 @@ -# xxx子系统JS API变更 +# 公共基础库子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,公共基础库子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.xml | XmlPullParser | parse(option: ParseOptions): void; | 新增 | +| ohos.xml | XmlPullParser | constructor(buffer: ArrayBuffer \| DataView, encoding?: string); | 新增 | +| ohos.xml | ParseOptions | tokenValueCallbackFunction?: (eventType: EventType, value: ParseInfo) => boolean; | 新增 | +| ohos.xml | ParseOptions | attributeValueCallbackFunction?: (name: string, value: string) => boolean; | 新增 | +| ohos.xml | ParseOptions | tagValueCallbackFunction?: (name: string, value: string) => boolean; | 新增 | +| ohos.xml | ParseOptions | ignoreNameSpace?: boolean; | 新增 | +| ohos.xml | ParseOptions | supportDoctype?: boolean; | 新增 | +| ohos.xml | ParseInfo | getAttributeCount(): number; | 新增 | +| ohos.xml | ParseInfo | isWhitespace(): boolean; | 新增 | +| ohos.xml | ParseInfo | isEmptyElementTag(): boolean; | 新增 | +| ohos.xml | ParseInfo | getText(): string; | 新增 | +| ohos.xml | ParseInfo | getPrefix(): string; | 新增 | +| ohos.xml | ParseInfo | getNamespace(): string; | 新增 | +| ohos.xml | ParseInfo | getName(): string; | 新增 | +| ohos.xml | ParseInfo | getLineNumber(): number; | 新增 | +| ohos.xml | ParseInfo | getDepth(): number; | 新增 | +| ohos.xml | ParseInfo | getColumnNumber(): number; | 新增 | +| ohos.xml | EventType | WHITESPACE | 新增 | +| ohos.xml | EventType | ENTITY_REFERENCE | 新增 | +| ohos.xml | EventType | INSTRUCTION | 新增 | +| ohos.xml | EventType | DOCDECL | 新增 | +| ohos.xml | EventType | COMMENT | 新增 | +| ohos.xml | EventType | CDSECT | 新增 | +| ohos.xml | EventType | TEXT | 新增 | +| ohos.xml | EventType | END_TAG | 新增 | +| ohos.xml | EventType | START_TAG | 新增 | +| ohos.xml | EventType | END_DOCUMENT | 新增 | +| ohos.xml | EventType | START_DOCUMENT | 新增 | +| ohos.xml | XmlSerializer | setDocType(text: string): void; | 新增 | +| ohos.xml | XmlSerializer | setText(text: string): void; | 新增 | +| ohos.xml | XmlSerializer | setCDATA(text: string): void; | 新增 | +| ohos.xml | XmlSerializer | setComment(text: string): void; | 新增 | +| ohos.xml | XmlSerializer | setNamespace(prefix: string, namespace: string): void; | 新增 | +| ohos.xml | XmlSerializer | endElement(): void; | 新增 | +| ohos.xml | XmlSerializer | startElement(name: string): void; | 新增 | +| ohos.xml | XmlSerializer | setDeclaration(): void; | 新增 | +| ohos.xml | XmlSerializer | addEmptyElement(name: string): void; | 新增 | +| ohos.xml | XmlSerializer | setAttributes(name: string, value: string): void; | 新增 | +| ohos.xml | XmlSerializer | constructor(buffer: ArrayBuffer \| DataView, encoding?: string); | 新增 | +| ohos.util.Vector | Vector | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.Vector | Vector | copyToArray(array: Array): void; | 新增 | +| ohos.util.Vector | Vector | trimToCurrentLength(): void; | 新增 | +| ohos.util.Vector | Vector | toString(): string; | 新增 | +| ohos.util.Vector | Vector | increaseCapacityTo(newCapacity: number): void; | 新增 | +| ohos.util.Vector | Vector | isEmpty(): boolean; | 新增 | +| ohos.util.Vector | Vector | convertToArray(): Array; | 新增 | +| ohos.util.Vector | Vector | getCapacity(): number; | 新增 | +| ohos.util.Vector | Vector | setLength(newSize: number): void; | 新增 | +| ohos.util.Vector | Vector | clone(): Vector; | 新增 | +| ohos.util.Vector | Vector | clear(): void; | 新增 | +| ohos.util.Vector | Vector | subVector(fromIndex: number, toIndex: number): Vector; | 新增 | +| ohos.util.Vector | Vector | sort(comparator?: (firstValue: T, secondValue: T) => number): void; | 新增 | +| ohos.util.Vector | Vector | forEach(callbackfn: (value: T, index?: number, vector?: Vector) => void, thisArg?: Object): void; | 新增 | +| ohos.util.Vector | Vector | replaceAllElements(callbackfn: (value: T, index?: number, vector?: Vector) => T, thisArg?: Object): void; | 新增 | +| ohos.util.Vector | Vector | removeByRange(fromIndex: number, toIndex: number): void; | 新增 | +| ohos.util.Vector | Vector | getIndexFrom(element: T, index: number): number; | 新增 | +| ohos.util.Vector | Vector | getLastIndexFrom(element: T, index: number): number; | 新增 | +| ohos.util.Vector | Vector | getLastIndexOf(element: T): number; | 新增 | +| ohos.util.Vector | Vector | set(index: number, element: T): T; | 新增 | +| ohos.util.Vector | Vector | remove(element: T): boolean; | 新增 | +| ohos.util.Vector | Vector | removeByIndex(index: number): T; | 新增 | +| ohos.util.Vector | Vector | getLastElement(): T; | 新增 | +| ohos.util.Vector | Vector | getFirstElement(): T; | 新增 | +| ohos.util.Vector | Vector | getIndexOf(element: T): number; | 新增 | +| ohos.util.Vector | Vector | get(index: number): T; | 新增 | +| ohos.util.Vector | Vector | has(element: T): boolean; | 新增 | +| ohos.util.Vector | Vector | insert(element: T, index: number): void; | 新增 | +| ohos.util.Vector | Vector | add(element: T): boolean; | 新增 | +| ohos.util.Vector | Vector | length: number; | 新增 | +| ohos.util.Vector | Vector | constructor(); | 新增 | +| ohos.util.TreeSet | TreeSet | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.TreeSet | TreeSet | entries(): IterableIterator<[T, T]>; | 新增 | +| ohos.util.TreeSet | TreeSet | values(): IterableIterator; | 新增 | +| ohos.util.TreeSet | TreeSet | forEach(callbackfn: (value?: T, key?: T, set?: TreeSet) => void, thisArg?: Object): void;| 新增 | +| ohos.util.TreeSet | TreeSet | popLast(): T; | 新增 | +| ohos.util.TreeSet | TreeSet | popFirst(): T; | 新增 | +| ohos.util.TreeSet | TreeSet | getHigherValue(key: T): T; | 新增 | +| ohos.util.TreeSet | TreeSet | getLowerValue(key: T): T; | 新增 | +| ohos.util.TreeSet | TreeSet | getLastValue(): T; | 新增 | +| ohos.util.TreeSet | TreeSet | getFirstValue(): T; | 新增 | +| ohos.util.TreeSet | TreeSet | clear(): void; | 新增 | +| ohos.util.TreeSet | TreeSet | remove(value: T): boolean; | 新增 | +| ohos.util.TreeSet | TreeSet | add(value: T): boolean; | 新增 | +| ohos.util.TreeSet | TreeSet | has(value: T): boolean; | 新增 | +| ohos.util.TreeSet | TreeSet | isEmpty(): boolean; | 新增 | +| ohos.util.TreeSet | TreeSet | length: number; | 新增 | +| ohos.util.TreeSet | TreeSet | constructor(comparator?: (firstValue: T, secondValue: T) => boolean) | 新增 | +| ohos.util.TreeMap | TreeMap | [Symbol.iterator](): IterableIterator<[K, V]>; | 新增 | +| ohos.util.TreeMap | TreeMap | entries(): IterableIterator<[K, V]>; | 新增 | +| ohos.util.TreeMap | TreeMap | forEach(callbackfn: (value?: V, key?: K, map?: TreeMap) => void, thisArg?: Object): void; | 新增 | +| ohos.util.TreeMap | TreeMap | replace(key: K, newValue: V): boolean; | 新增 | +| ohos.util.TreeMap | TreeMap | values(): IterableIterator; | 新增 | +| ohos.util.TreeMap | TreeMap | keys(): IterableIterator; | 新增 | +| ohos.util.TreeMap | TreeMap | getHigherKey(key: K): K; | 新增 | +| ohos.util.TreeMap | TreeMap | getLowerKey(key: K): K; | 新增 | +| ohos.util.TreeMap | TreeMap | clear(): void; | 新增 | +| ohos.util.TreeMap | TreeMap | remove(key: K): V; | 新增 | +| ohos.util.TreeMap | TreeMap | set(key: K, value: V): Object; | 新增 | +| ohos.util.TreeMap | TreeMap | setAll(map: TreeMap): void; | 新增 | +| ohos.util.TreeMap | TreeMap | getLastKey(): K; | 新增 | +| ohos.util.TreeMap | TreeMap | getFirstKey(): K; | 新增 | +| ohos.util.TreeMap | TreeMap | get(key: K): V; | 新增 | +| ohos.util.TreeMap | TreeMap | hasValue(value: V): boolean; | 新增 | +| ohos.util.TreeMap | TreeMap | hasKey(key: K): boolean; | 新增 | +| ohos.util.TreeMap | TreeMap | isEmpty(): boolean; | 新增 | +| ohos.util.TreeMap | TreeMap | length: number; | 新增 | +| ohos.util.TreeMap | TreeMap | constructor(comparator?: (firstValue: K, secondValue: K) => boolean); | 新增 | +| ohos.util.Stack | Stack | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.Stack | Stack | forEach(callbackfn: (value: T, index?: number, stack?: Stack) => void, thisArg?: Object): void; | 新增 | +| ohos.util.Stack | Stack | locate(element: T): number; | 新增 | +| ohos.util.Stack | Stack | push(item: T): T; | 新增 | +| ohos.util.Stack | Stack | pop(): T; | 新增 | +| ohos.util.Stack | Stack | peek(): T; | 新增 | +| ohos.util.Stack | Stack | isEmpty(): boolean; | 新增 | +| ohos.util.Stack | Stack | length: number; | 新增 | +| ohos.util.Stack | Stack | constructor(); | 新增 | +| ohos.util.Queue | Queue | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.Queue | Queue | forEach(callbackfn: (value: T, index?: number, Queue?: Queue) => void, thisArg?: Object): void; | 新增 | +| ohos.util.Queue | Queue | pop(): T; | 新增 | +| ohos.util.Queue | Queue | getFirst(): T; | 新增 | +| ohos.util.Queue | Queue | add(element: T): boolean; | 新增 | +| ohos.util.Queue | Queue | length: number; | 新增 | +| ohos.util.Queue | Queue | constructor(); | 新增 | +| ohos.util.PlainArray | PlainArray | [Symbol.iterator](): IterableIterator<[number, T]>; | 新增 | +| ohos.util.PlainArray | PlainArray | forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray) => void, thisArg?: Object): void; | 新增 | +| ohos.util.PlainArray | PlainArray | getValueAt(index: number): T; | 新增 | +| ohos.util.PlainArray | PlainArray | toString(): String; | 新增 | +| ohos.util.PlainArray | PlainArray | setValueAt(index: number, value: T): void; | 新增 | +| ohos.util.PlainArray | PlainArray | removeRangeFrom(index: number, size: number): number; | 新增 | +| ohos.util.PlainArray | PlainArray | removeAt(index: number): T; | 新增 | +| ohos.util.PlainArray | PlainArray | remove(key: number): T; | 新增 | +| ohos.util.PlainArray | PlainArray | getKeyAt(index: number): number; | 新增 | +| ohos.util.PlainArray | PlainArray | isEmpty(): boolean; | 新增 | +| ohos.util.PlainArray | PlainArray | getIndexOfValue(value: T): number; | 新增 | +| ohos.util.PlainArray | PlainArray | getIndexOfKey(key: number): number; | 新增 | +| ohos.util.PlainArray | PlainArray | get(key: number): T; | 新增 | +| ohos.util.PlainArray | PlainArray | has(key: number): boolean; | 新增 | +| ohos.util.PlainArray | PlainArray | clone(): PlainArray; | 新增 | +| ohos.util.PlainArray | PlainArray | clear(): void; | 新增 | +| ohos.util.PlainArray | PlainArray | add(key: number, value: T): void; | 新增 | +| ohos.util.PlainArray | PlainArray | length: number; | 新增 | +| ohos.util.PlainArray | PlainArray | constructor(); | 新增 | +| ohos.util.List | List | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.List | List | isEmpty(): boolean; | 新增 | +| ohos.util.List | List | convertToArray(): Array; | 新增 | +| ohos.util.List | List | replaceAllElements(callbackfn: (value: T, index?: number, list?: List) => T, thisArg?: Object): void; | 新增 | +| ohos.util.List | List | getSubList(fromIndex: number, toIndex: number): List; | 新增 | +| ohos.util.List | List | clear(): void; | 新增 | +| ohos.util.List | List | sort(comparator: (firstValue: T, secondValue: T) => number): void; | 新增 | +| ohos.util.List | List | forEach(callbackfn: (value: T, index?: number, List?: List) => void, thisArg?: Object): void; | 新增 | +| ohos.util.List | List | equal(obj: Object): boolean; | 新增 | +| ohos.util.List | List | set(index: number, element: T): T; | 新增 | +| ohos.util.List | List | getLast(): T; | 新增 | +| ohos.util.List | List | getFirst(): T; | 新增 | +| ohos.util.List | List | getLastIndexOf(element: T): number; | 新增 | +| ohos.util.List | List | remove(element: T): boolean; | 新增 | +| ohos.util.List | List | removeByIndex(index: number): T; | 新增 | +| ohos.util.List | List | getIndexOf(element: T): number; | 新增 | +| ohos.util.List | List | has(element: T): boolean; | 新增 | +| ohos.util.List | List | get(index: number): T; | 新增 | +| ohos.util.List | List | insert(element: T, index: number): void; | 新增 | +| ohos.util.List | List | add(element: T): boolean; | 新增 | +| ohos.util.List | List | length: number; | 新增 | +| ohos.util.List | List | constructor(); | 新增 | +| ohos.util.LinkedList | LinkedList | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.LinkedList | LinkedList | convertToArray(): Array; | 新增 | +| ohos.util.LinkedList | LinkedList | clone(): LinkedList; | 新增 | +| ohos.util.LinkedList | LinkedList | clear(): void; | 新增 | +| ohos.util.LinkedList | LinkedList | forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList) => void, thisArg?: Object): void; | 新增 | +| ohos.util.LinkedList | LinkedList | set(index: number, element: T): T; | 新增 | +| ohos.util.LinkedList | LinkedList | getLast(): T; | 新增 | +| ohos.util.LinkedList | LinkedList | getFirst(): T; | 新增 | +| ohos.util.LinkedList | LinkedList | getLastIndexOf(element: T): number; | 新增 | +| ohos.util.LinkedList | LinkedList | removeLastFound(element: T): boolean; | 新增 | +| ohos.util.LinkedList | LinkedList | removeFirstFound(element: T): boolean; | 新增 | +| ohos.util.LinkedList | LinkedList | remove(element: T): boolean; | 新增 | +| ohos.util.LinkedList | LinkedList | removeByIndex(index: number): T; | 新增 | +| ohos.util.LinkedList | LinkedList | getIndexOf(element: T): number; | 新增 | +| ohos.util.LinkedList | LinkedList | has(element: T): boolean; | 新增 | +| ohos.util.LinkedList | LinkedList | removeLast(): T; | 新增 | +| ohos.util.LinkedList | LinkedList | removeFirst(): T; | 新增 | +| ohos.util.LinkedList | LinkedList | addFirst(element: T): void; | 新增 | +| ohos.util.LinkedList | LinkedList | get(index: number): T; | 新增 | +| ohos.util.LinkedList | LinkedList | insert(index: number, element: T): void; | 新增 | +| ohos.util.LinkedList | LinkedList | add(element: T): boolean; | 新增 | +| ohos.util.LinkedList | LinkedList | length: number; | 新增 | +| ohos.util.LinkedList | LinkedList | constructor(); | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | isEmpty(): boolean; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | entries(): IterableIterator<[T, T]>; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | values(): IterableIterator; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | getValueAt(index: number): T; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | toArray(): Array; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | toString(): String; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet) => void, thisArg?: Object): void; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | clear(): void; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | removeAt(index: number): boolean; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | remove(key: T): T; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | getIndexOf(key: T): number; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | increaseCapacityTo(minimumCapacity: number): void; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | equal(obj: Object): boolean; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | has(key: T): boolean; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | hasAll(set: LightWeightSet): boolean; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | addAll(set: LightWeightSet): boolean; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | add(obj: T): boolean; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | length: number; | 新增 | +| ohos.util.LightWeightSet | LightWeightSet | constructor(); | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | values(): IterableIterator; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | getValueAt(index: number): V; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | toString(): String; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | [Symbol.iterator](): IterableIterator<[K, V]>; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | forEach(callbackfn: (value?: V, key?: K, map?: LightWeightMap) => void, thisArg?: Object): void; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | setValueAt(index: number, newValue: V): boolean; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | clear(): void; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | removeAt(index: number): boolean; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | remove(key: K): V; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | set(key: K, value: V): Object; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | setAll(map: LightWeightMap): void; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | keys(): IterableIterator; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | getKeyAt(index: number): K; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | isEmpty(): boolean; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | getIndexOfValue(value: V): number; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | getIndexOfKey(key: K): number; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | get(key: K): V; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | entries(): IterableIterator<[K, V]>; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | increaseCapacityTo(minimumCapacity: number): void; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | hasValue(value: V): boolean; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | hasKey(key: K): boolean; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | hasAll(map: LightWeightMap): boolean; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | length: number; | 新增 | +| ohos.util.LightWeightMap | LightWeightMap | constructor(); | 新增 | +| ohos.util.HashSet | HashSet | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.HashSet | HashSet | entries(): IterableIterator<[T, T]>; | 新增 | +| ohos.util.HashSet | HashSet | values(): IterableIterator; | 新增 | +| ohos.util.HashSet | HashSet | forEach(callbackfn: (value?: T, key?: T, set?: HashSet) => void, thisArg?: Object): void; | 新增 | +| ohos.util.HashSet | HashSet | clear(): void; | 新增 | +| ohos.util.HashSet | HashSet | remove(value: T): boolean; | 新增 | +| ohos.util.HashSet | HashSet | add(value: T): boolean; | 新增 | +| ohos.util.HashSet | HashSet | has(value: T): boolean; | 新增 | +| ohos.util.HashSet | HashSet | isEmpty(): boolean; | 新增 | +| ohos.util.HashSet | HashSet | length: number; | 新增 | +| ohos.util.HashSet | HashSet | constructor(); | 新增 | +| ohos.util.HashMap | HashMap | [Symbol.iterator](): IterableIterator<[K, V]>; | 新增 | +| ohos.util.HashMap | HashMap | entries(): IterableIterator<[K, V]>; | 新增 | +| ohos.util.HashMap | HashMap | forEach(callbackfn: (value?: V, key?: K, map?: HashMap) => void, thisArg?: Object): void; | 新增 | +| ohos.util.HashMap | HashMap | replace(key: K, newValue: V): boolean; | 新增 | +| ohos.util.HashMap | HashMap | values(): IterableIterator; | 新增 | +| ohos.util.HashMap | HashMap | keys(): IterableIterator; | 新增 | +| ohos.util.HashMap | HashMap | clear(): void; | 新增 | +| ohos.util.HashMap | HashMap | remove(key: K): V; | 新增 | +| ohos.util.HashMap | HashMap | set(key: K, value: V): Object; | 新增 | +| ohos.util.HashMap | HashMap | setAll(map: HashMap): void; | 新增 | +| ohos.util.HashMap | HashMap | get(key: K): V; | 新增 | +| ohos.util.HashMap | HashMap | hasValue(value: V): boolean; | 新增 | +| ohos.util.HashMap | HashMap | hasKey(key: K): boolean; | 新增 | +| ohos.util.HashMap | HashMap | isEmpty(): boolean; | 新增 | +| ohos.util.HashMap | HashMap | length: number; | 新增 | +| ohos.util.HashMap | HashMap | constructor(); | 新增 | +| ohos.util.Deque | Deque | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.Deque | Deque | forEach(callbackfn: (value: T, index?: number, deque?: Deque) => void, thisArg?: Object): void; | 新增 | +| ohos.util.Deque | Deque | popLast(): T; | 新增 | +| ohos.util.Deque | Deque | popFirst(): T; | 新增 | +| ohos.util.Deque | Deque | getLast(): T; | 新增 | +| ohos.util.Deque | Deque | getFirst(): T; | 新增 | +| ohos.util.Deque | Deque | has(element: T): boolean; | 新增 | +| ohos.util.Deque | Deque | insertEnd(element: T): void; | 新增 | +| ohos.util.Deque | Deque | insertFront(element: T): void; | 新增 | +| ohos.util.Deque | Deque | length: number; | 新增 | +| ohos.util.Deque | Deque | constructor(); | 新增 | +| ohos.util | types | isWeakSet(value: Object): boolean; | 新增 | +| ohos.util | types | isWeakMap(value: Object): boolean; | 新增 | +| ohos.util | types | isUint32Array(value: Object): boolean; | 新增 | +| ohos.util | types | isUint16Array(value: Object): boolean; | 新增 | +| ohos.util | types | isUint8ClampedArray(value: Object): boolean; | 新增 | +| ohos.util | types | isUint8Array(value: Object): boolean; | 新增 | +| ohos.util | types | isTypedArray(value: Object): boolean; | 新增 | +| ohos.util | types | isSymbolObject(value: Object): boolean; | 新增 | +| ohos.util | types | isStringObject(value: Object): boolean; | 新增 | +| ohos.util | types | isSharedArrayBuffer(value: Object): boolean; | 新增 | +| ohos.util | types | isSetIterator(value: Object): boolean; | 新增 | +| ohos.util | types | isSet(value: Object): boolean; | 新增 | +| ohos.util | types | isRegExp(value: Object): boolean; | 新增 | +| ohos.util | types | isProxy(value: Object): boolean; | 新增 | +| ohos.util | types | isPromise(value: Object): boolean; | 新增 | +| ohos.util | types | isNumberObject(value: Object): boolean; | 新增 | +| ohos.util | types | isNativeError(value: Object): boolean; | 新增 | +| ohos.util | types | isModuleNamespaceObject(value: Object): boolean; | 新增 | +| ohos.util | types | isMapIterator(value: Object): boolean; | 新增 | +| ohos.util | types | isMap(value: Object): boolean; | 新增 | +| ohos.util | types | isInt32Array(value: Object): boolean; | 新增 | +| ohos.util | types | isInt16Array(value: Object): boolean; | 新增 | +| ohos.util | types | isInt8Array(value: Object): boolean; | 新增 | +| ohos.util | types | isGeneratorObject(value: Object): boolean; | 新增 | +| ohos.util | types | isGeneratorFunction(value: Object): boolean; | 新增 | +| ohos.util | types | isFloat64Array(value: Object): boolean; | 新增 | +| ohos.util | types | isFloat32Array(value: Object): boolean; | 新增 | +| ohos.util | types | isExternal(value: Object): boolean; | 新增 | +| ohos.util | types | isDate(value: Object): boolean; | 新增 | +| ohos.util | types | isDataView(value: Object): boolean; | 新增 | +| ohos.util | types | isBoxedPrimitive(value: Object): boolean; | 新增 | +| ohos.util | types | isBooleanObject(value: Object): boolean; | 新增 | +| ohos.util | types | isBigUint64Array(value: Object): boolean; | 新增 | +| ohos.util | types | isBigInt64Array(value: Object): boolean; | 新增 | +| ohos.util | types | isAsyncFunction(value: Object): boolean; | 新增 | +| ohos.util | types | isArrayBuffer(value: Object): boolean; | 新增 | +| ohos.util | types | isArgumentsObject(value: Object): boolean; | 新增 | +| ohos.util | types | isArrayBufferView(value: Object): boolean; | 新增 | +| ohos.util | types | isAnyArrayBuffer(value: Object): boolean; | 新增 | +| ohos.util | types | constructor(); | 新增 | +| ohos.util | Base64 | decodeSync(src: Uint8Array \| string): Uint8Array; | 新增 | +| ohos.util | Base64 | encodeToStringSync(src: Uint8Array): string; | 新增 | +| ohos.util | Base64 | encodeSync(src: Uint8Array): Uint8Array; | 新增 | +| ohos.util | LruBuffer | getCapacity(): number; | 新增 | +| ohos.util | LruBuffer | length:number | 新增 | +| ohos.util | RationalNumber | valueOf(): number; | 新增 | +| ohos.util.ArrayList | ArrayList | [Symbol.iterator](): IterableIterator; | 新增 | +| ohos.util.ArrayList | ArrayList | trimToCurrentLength(): void; | 新增 | +| ohos.util.ArrayList | ArrayList | increaseCapacityTo(newCapacity: number): void; | 新增 | +| ohos.util.ArrayList | ArrayList | isEmpty(): boolean; | 新增 | +| ohos.util.ArrayList | ArrayList | convertToArray(): Array; | 新增 | +| ohos.util.ArrayList | ArrayList | getCapacity(): number; | 新增 | +| ohos.util.ArrayList | ArrayList | clone(): ArrayList; | 新增 | +| ohos.util.ArrayList | ArrayList | clear(): void; | 新增 | +| ohos.util.ArrayList | ArrayList | subArrayList(fromIndex: number, toIndex: number): ArrayList; | 新增 | +| ohos.util.ArrayList | ArrayList | sort(comparator?: (firstValue: T, secondValue: T) => number): void; | 新增 | +| ohos.util.ArrayList | ArrayList | forEach(callbackfn: (value: T, index?: number, arrlist?: ArrayList) => void, thisArg?: Object): void; | 新增 | +| ohos.util.ArrayList | ArrayList | replaceAllElements(callbackfn: (value: T, index?: number, arrlist?: ArrayList) => T, thisArg?: Object): void; | 新增 | +| ohos.util.ArrayList | ArrayList | removeByRange(fromIndex: number, toIndex: number): void; | 新增 | +| ohos.util.ArrayList | ArrayList | getLastIndexOf(element: T): number; | 新增 | +| ohos.util.ArrayList | ArrayList | remove(element: T): boolean; | 新增 | +| ohos.util.ArrayList | ArrayList | removeByIndex(index: number): T; | 新增 | +| ohos.util.ArrayList | ArrayList | getIndexOf(element: T): number; | 新增 | +| ohos.util.ArrayList | ArrayList | has(element: T): boolean; | 新增 | +| ohos.util.ArrayList | ArrayList | insert(element: T, index: number): void; | 新增 | +| ohos.util.ArrayList | ArrayList | add(element: T): boolean; | 新增 | +| ohos.util.ArrayList | ArrayList | length: number; | 新增 | +| ohos.util.ArrayList | ArrayList | constructor(); | 新增 | +| ohos.uri | URI | ssp: string; | 新增 | +| ohos.uri | URI | authority: string; | 新增 | +| ohos.uri | URI | fragment: string; | 新增 | +| ohos.uri | URI | query: string; | 新增 | +| ohos.uri | URI | path: string; | 新增 | +| ohos.uri | URI | port: string; | 新增 | +| ohos.uri | URI | host: string; | 新增 | +| ohos.uri | URI | userInfo: string; | 新增 | +| ohos.uri | URI | scheme: string; | 新增 | +| ohos.uri | URI | normalize(): URI; | 新增 | +| ohos.uri | URI | checkIsAbsolute(): boolean; | 新增 | +| ohos.uri | URI | equals(other: URI): boolean; | 新增 | +| ohos.uri | URI | toString(): string | 新增 | +| ohos.uri | URI | constructor(uri: string); | 新增 | +| ohos.convertxml | ConvertXML | convert(xml: string, options?: ConvertOptions) : Object; | 新增 | +| ohos.convertxml | ConvertOptions | elementsKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | nameKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | typeKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | parentKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | commentKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | doctypeKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | cdataKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | textKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | attributesKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | instructionKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | declarationKey: string; | 新增 | +| ohos.convertxml | ConvertOptions | ignoreText?: boolean; | 新增 | +| ohos.convertxml | ConvertOptions | ignoreDoctype?: boolean; | 新增 | +| ohos.convertxml | ConvertOptions | ignoreCDATA?: boolean; | 新增 | +| ohos.convertxml | ConvertOptions | ignoreComment?: boolean; | 新增 | +| ohos.convertxml | ConvertOptions | ignoreAttributes?: boolean; | 新增 | +| ohos.convertxml | ConvertOptions | ignoreInstruction?: boolean; | 新增 | +| ohos.convertxml | ConvertOptions | ignoreDeclaration?: boolean; | 新增 | +| ohos.convertxml | ConvertOptions | trim: boolean; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md index dce4c7f9e0..cbe08e0a2e 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md @@ -1,14 +1,82 @@ -# xxx子系统JS API变更 +# DFX子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,DFX子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.hiTraceMeter | hiTraceMeter | function traceByValue(name: string, count: number): void; | 新增 | +| ohos.hiTraceMeter | hiTraceMeter | function finishTrace(name: string, taskId: number): void; | 新增 | +| ohos.hiTraceMeter | hiTraceMeter | function startTrace(name: string, taskId: number): void; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function enableFlag(id: HiTraceId, flag: HiTraceFlag): void; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function isFlagEnabled(id: HiTraceId, flag: HiTraceFlag): boolean; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function isValid(id: HiTraceId): boolean; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function tracepoint(mode: HiTraceCommunicationMode, type: HiTraceTracepointType, id: HiTraceId, msg?: string): void; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function createSpan(): HiTraceId; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function clearId(): void; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function setId(id: HiTraceId): void; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function getId(): HiTraceId; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function end(id: HiTraceId): void; | 新增 | +| ohos.hiTraceChain | hiTraceChain | function begin(name: string, flags: number = HiTraceFlag.DEFAULT): HiTraceId; | 新增 | +| ohos.hiTraceChain | HiTraceId | flags?: number; | 新增 | +| ohos.hiTraceChain | HiTraceId | parentSpanId?: number; | 新增 | +| ohos.hiTraceChain | HiTraceId | spanId?: number; | 新增 | +| ohos.hiTraceChain | HiTraceId | chainId: bigint; | 新增 | +| ohos.hiTraceChain | HiTraceCommunicationMode | DEVICE = 3 | 新增 | +| ohos.hiTraceChain | HiTraceCommunicationMode | PROCESS = 2 | 新增 | +| ohos.hiTraceChain | HiTraceCommunicationMode | THREAD = 1 | 新增 | +| ohos.hiTraceChain | HiTraceCommunicationMode | DEFAULT = 0 | 新增 | +| ohos.hiTraceChain | HiTraceTracepointType | GENERAL = 4 | 新增 | +| ohos.hiTraceChain | HiTraceTracepointType | SR = 3 | 新增 | +| ohos.hiTraceChain | HiTraceTracepointType | SS = 2 | 新增 | +| ohos.hiTraceChain | HiTraceTracepointType | CR = 1 | 新增 | +| ohos.hiTraceChain | HiTraceTracepointType | CS = 0 | 新增 | +| ohos.hiTraceChain | HiTraceFlag | D2D_TP_INFO = 1 << 6 | 新增 | +| ohos.hiTraceChain | HiTraceFlag | FAILURE_TRIGGER = 1 << 5 | 新增 | +| ohos.hiTraceChain | HiTraceFlag | DISABLE_LOG = 1 << 4 | 新增 | +| ohos.hiTraceChain | HiTraceFlag | NO_BE_INFO = 1 << 3 | 新增 | +| ohos.hiTraceChain | HiTraceFlag | TP_INFO = 1 << 2 | 新增 | +| ohos.hiTraceChain | HiTraceFlag | DONOT_CREATE_SPAN = 1 << 1 | 新增 | +| ohos.hiTraceChain | HiTraceFlag | INCLUDE_ASYNC = 1 | 新增 | +| ohos.hiTraceChain | HiTraceFlag | DEFAULT = 0 | 新增 | +| ohos.hilog | LogLevel | FATAL = 7 | 新增 | +| ohos.hilog | LogLevel | ERROR = 6 | 新增 | +| ohos.hilog | LogLevel | WARN = 5 | 新增 | +| ohos.hilog | LogLevel | INFO = 4 | 新增 | +| ohos.hilog | LogLevel | DEBUG = 3 | 新增 | +| ohos.hilog | hilog | function isLoggable(domain: number, tag: string, level: LogLevel) : boolean; | 新增 | +| ohos.hilog | hilog | function fatal(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 | +| ohos.hilog | hilog | function error(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 | +| ohos.hilog | hilog | function warn(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 | +| ohos.hilog | hilog | function info(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 | +| ohos.hilog | hilog | function debug(domain: number, tag: string, format: string, ...args: any[]) : void; | 新增 | +| ohos.hidebug | hidebug | function dumpHeapData(filename : string) : void; | 新增 | +| ohos.hidebug | hidebug | function stopProfiling() : void; | 新增 | +| ohos.hidebug | hidebug | function startProfiling(filename : string) : void; | 新增 | +| ohos.hidebug | hidebug | function getSharedDirty() : bigint; | 新增 | +| ohos.hidebug | hidebug | function getPss() : bigint; | 新增 | +| ohos.hidebug | hidebug | function getNativeHeapFreeSize() : bigint; | 新增 | +| ohos.hidebug | hidebug | function getNativeHeapAllocatedSize() : bigint; | 新增 | +| ohos.hidebug | hidebug | function getNativeHeapSize() : bigint; | 新增 | +| ohos.hichecker | hichecker | function contains(rule: bigint) : boolean; | 新增 | +| ohos.hichecker | hichecker | function getRule() : bigint; | 新增 | +| ohos.hichecker | hichecker | function removeRule(rule: bigint) : void; | 新增 | +| ohos.hichecker | hichecker | function addRule(rule: bigint) : void; | 新增 | +| ohos.hichecker | hichecker | const RULE_CHECK_ABILITY_CONNECTION_LEAK: 8589934592n; | 新增 | +| ohos.hichecker | hichecker | const RULE_THREAD_CHECK_SLOW_PROCESS: 1n; | 新增 | +| ohos.hichecker | hichecker | const RULE_CAUTION_TRIGGER_CRASH: 4611686018427387904n; | 新增 | +| ohos.hichecker | hichecker | const RULE_CAUTION_PRINT_LOG: 9223372036854775808n; | 新增 | +| ohos.faultLogger | FaultLogInfo | fullLog: string; | 新增 | +| ohos.faultLogger | FaultLogInfo | summary: string; | 新增 | +| ohos.faultLogger | FaultLogInfo | module: string; | 新增 | +| ohos.faultLogger | FaultLogInfo | reason: string; | 新增 | +| ohos.faultLogger | FaultLogInfo | timestamp: number; | 新增 | +| ohos.faultLogger | FaultLogInfo | type: FaultType; | 新增 | +| ohos.faultLogger | FaultLogInfo | uid: number; | 新增 | +| ohos.faultLogger | FaultLogInfo | pid: number; | 新增 | +| ohos.faultLogger | FaultLogger | function querySelfFaultLog(faultType: FaultType, callback: AsyncCallback>) : void;
function querySelfFaultLog(faultType: FaultType) : Promise>; | 新增 | +| ohos.faultLogger | FaultType | APP_FREEZE = 4 | 新增 | +| ohos.faultLogger | FaultType | JS_CRASH = 3 | 新增 | +| ohos.faultLogger | FaultType | CPP_CRASH = 2 | 新增 | +| ohos.faultLogger | FaultType | NO_SPECIFIC = 0 | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md index dce4c7f9e0..47513c750f 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md @@ -1,14 +1,111 @@ -# xxx子系统JS API变更 +# 分布式数据管理子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,分布式数据管理子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.data.rdb | RdbPredicates | inAllDevices(): RdbPredicates; | 新增 | +| ohos.data.rdb | RdbPredicates | inDevices(devices: Array): RdbPredicates; | 新增 | +| ohos.data.rdb | RdbStore | off(event:'dataChange', type: SubscribeType, observer: Callback>): void; | 新增 | +| ohos.data.rdb | RdbStore | on(event: 'dataChange', type: SubscribeType, observer: Callback>): void; | 新增 | +| ohos.data.rdb | RdbStore | sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback>): void;
sync(mode: SyncMode, predicates: RdbPredicates): Promise>; | 新增 | +| ohos.data.rdb | RdbStore | obtainDistributedTableName(device: string, table: string, callback: AsyncCallback): void;
obtainDistributedTableName(device: string, table: string): Promise; | 新增 | +| ohos.data.rdb | RdbStore | setDistributedTables(tables: Array, callback: AsyncCallback): void;
setDistributedTables(tables: Array): Promise; | 新增 | +| ohos.data.rdb | RdbStore | rollBack():void; | 新增 | +| ohos.data.rdb | RdbStore | commit():void; | 新增 | +| ohos.data.rdb | RdbStore | beginTransaction():void; | 新增 | +| ohos.data.rdb | RdbStore | querySql(sql: string, bindArgs: Array, callback: AsyncCallback): void;
querySql(sql: string, bindArgs?: Array): Promise; | 新增 | +| ohos.data.rdb | SubscribeType | SUBSCRIBE_TYPE_REMOTE = 0 | 新增 | +| ohos.data.rdb | SyncMode | SYNC_MODE_PULL = 1 | 新增 | +| ohos.data.rdb | SyncMode | SYNC_MODE_PUSH = 0 | 新增 | +| ohos.data.distributedDataObject | DistributedObject | off(type: 'status', callback?: Callback<{ sessionId: string, deviceId: string, status: 'online' \| 'offline' }>): void; | 新增 | +| ohos.data.distributedDataObject | DistributedObject | on(type: 'status', callback: Callback<{ sessionId: string, networkId: string, status: 'online' \| 'offline' }>): void; | 新增 | +| ohos.data.distributedDataObject | DistributedObject | off(type: 'change', callback?: Callback<{ sessionId: string, fields: Array }>): void; | 新增 | +| ohos.data.distributedDataObject | DistributedObject | on(type: 'change', callback: Callback<{ sessionId: string, fields: Array }>): void; | 新增 | +| ohos.data.distributedDataObject | DistributedObject | setSessionId(sessionId?: string): boolean; | 新增 | +| ohos.data.distributedDataObject | distributedDataObject | function genSessionId(): string; | 新增 | +| ohos.data.distributedDataObject | distributedDataObject | function createDistributedObject(source: object): DistributedObject; | 新增 | +| ohos.data.distributedData | KVManager | off(event: 'distributedDataServiceDie', deathCallback?: Callback): void; | 新增 | +| ohos.data.distributedData | KVManager | on(event: 'distributedDataServiceDie', deathCallback: Callback): void; | 新增 | +| ohos.data.distributedData | KVManager | getAllKVStoreId(appId: string, callback: AsyncCallback): void;
getAllKVStoreId(appId: string): Promise; | 新增 | +| ohos.data.distributedData | KVManager | deleteKVStore(appId: string, storeId: string, callback: AsyncCallback): void;
deleteKVStore(appId: string, storeId: string): Promise; | 新增 | +| ohos.data.distributedData | KVManager | closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback): void;
closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise; | 新增 | +| ohos.data.distributedData | DeviceKVStore | off(event: 'syncComplete', syncCallback?: Callback>): void; | 新增 | +| ohos.data.distributedData | DeviceKVStore | on(event: 'syncComplete', syncCallback: Callback>): void; | 新增 | +| ohos.data.distributedData | DeviceKVStore | sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void; | 新增 | +| ohos.data.distributedData | DeviceKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback): void;
removeDeviceData(deviceId: string): Promise; | 新增 | +| 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; | 新增 | +| ohos.data.distributedData | DeviceKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback): void;
closeResultSet(resultSet: KvStoreResultSet): Promise; | 新增 | +| 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; | 新增 | +| 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; | 新增 | +| ohos.data.distributedData | DeviceKVStore | get(deviceId: string, key: string, callback: AsyncCallback): void;
get(deviceId: string, key: string): Promise; | 新增 | +| ohos.data.distributedData | SingleKVStore | getSecurityLevel(callback: AsyncCallback): void;
getSecurityLevel(): Promise; | 新增 | +| ohos.data.distributedData | SingleKVStore | setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback): void;
setSyncParam(defaultAllowedDelayMs: number): Promise; | 新增 | +| ohos.data.distributedData | SingleKVStore | off(event: 'syncComplete', syncCallback?: Callback>): void; | 新增 | +| ohos.data.distributedData | SingleKVStore | on(event: 'syncComplete', syncCallback: Callback>): void; | 新增 | +| ohos.data.distributedData | SingleKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback): void;
removeDeviceData(deviceId: string): Promise; | 新增 | +| ohos.data.distributedData | SingleKVStore | getResultSize(query: Query, callback: AsyncCallback): void;
getResultSize(query: Query): Promise; | 新增 | +| ohos.data.distributedData | SingleKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback): void;
closeResultSet(resultSet: KvStoreResultSet): Promise; | 新增 | +| ohos.data.distributedData | SingleKVStore | getResultSet(keyPrefix: string, callback: AsyncCallback): void;
getResultSet(keyPrefix: string): Promise;
getResultSet(query: Query, callback: AsyncCallback): void;
getResultSet(query: Query): Promise; | 新增 | +| ohos.data.distributedData | SingleKVStore | getEntries(keyPrefix: string, callback: AsyncCallback): void;
getEntries(keyPrefix: string): Promise;
getEntries(query: Query, callback: AsyncCallback): void;
getEntries(query: Query): Promise; | 新增 | +| ohos.data.distributedData | KVStore | setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback): void;
setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise; | 新增 | +| ohos.data.distributedData | KVStore | enableSync(enabled: boolean, callback: AsyncCallback): void;
enableSync(enabled: boolean): Promise; | 新增 | +| ohos.data.distributedData | KVStore | rollback(callback: AsyncCallback): void;
rollback(): Promise; | 新增 | +| ohos.data.distributedData | KVStore | commit(callback: AsyncCallback): void;
commit(): Promise; | 新增 | +| ohos.data.distributedData | KVStore | startTransaction(callback: AsyncCallback): void;
startTransaction(): Promise; | 新增 | +| ohos.data.distributedData | KVStore | deleteBatch(keys: string[], callback: AsyncCallback): void;
deleteBatch(keys: string[]): Promise; | 新增 | +| ohos.data.distributedData | KVStore | putBatch(entries: Entry[], callback: AsyncCallback): void;
putBatch(entries: Entry[]): Promise; | 新增 | +| ohos.data.distributedData | KVStore | off(event:'dataChange', observer?: Callback): void; | 新增 | +| ohos.data.distributedData | Query | getSqlLike():string; | 新增 | +| ohos.data.distributedData | Query | deviceId(deviceId:string):Query; | 新增 | +| ohos.data.distributedData | Query | setSuggestIndex(index: string): Query; | 新增 | +| ohos.data.distributedData | Query | prefixKey(prefix: string): Query; | 新增 | +| ohos.data.distributedData | Query | endGroup(): Query; | 新增 | +| ohos.data.distributedData | Query | beginGroup(): Query; | 新增 | +| ohos.data.distributedData | Query | isNotNull(field: string): Query; | 新增 | +| ohos.data.distributedData | Query | limit(total: number, offset: number): Query; | 新增 | +| ohos.data.distributedData | Query | orderByDesc(field: string): Query; | 新增 | +| ohos.data.distributedData | Query | orderByAsc(field: string): Query; | 新增 | +| ohos.data.distributedData | Query | or(): Query; | 新增 | +| ohos.data.distributedData | Query | and(): Query; | 新增 | +| ohos.data.distributedData | Query | unlike(field: string, value: string): Query; | 新增 | +| ohos.data.distributedData | Query | like(field: string, value: string): Query; | 新增 | +| ohos.data.distributedData | Query | notInString(field: string, valueList: string[]): Query; | 新增 | +| ohos.data.distributedData | Query | notInNumber(field: string, valueList: number[]): Query; | 新增 | +| ohos.data.distributedData | Query | inString(field: string, valueList: string[]): Query; | 新增 | +| ohos.data.distributedData | Query | inNumber(field: string, valueList: number[]): Query; | 新增 | +| ohos.data.distributedData | Query | isNull(field: string): Query; | 新增 | +| ohos.data.distributedData | Query | lessThanOrEqualTo(field: string, value: number\|string): Query; | 新增 | +| ohos.data.distributedData | Query | greaterThanOrEqualTo(field: string, value: number\|string): Query; | 新增 | +| ohos.data.distributedData | Query | lessThan(field: string, value: number\|string): Query; | 新增 | +| ohos.data.distributedData | Query | greaterThan(field: string, value: number\|string\|boolean): Query; | 新增 | +| ohos.data.distributedData | Query | notEqualTo(field: string, value: number\|string\|boolean): Query; | 新增 | +| ohos.data.distributedData | Query | equalTo(field: string, value: number\|string\|boolean): Query; | 新增 | +| ohos.data.distributedData | Query | reset(): Query; | 新增 | +| ohos.data.distributedData | Query | constructor() | 新增 | +| ohos.data.distributedData | KvStoreResultSet | getEntry(): Entry; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | isAfterLast(): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | isBeforeFirst(): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | isLast(): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | isFirst(): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | moveToPosition(position: number): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | move(offset: number): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | moveToPrevious(): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | moveToNext(): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | moveToLast(): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | moveToFirst(): boolean; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | getPosition(): number; | 新增 | +| ohos.data.distributedData | KvStoreResultSet | getCount(): number; | 新增 | +| ohos.data.distributedData | FieldNode | type: number; | 新增 | +| ohos.data.distributedData | FieldNode | nullable: boolean; | 新增 | +| ohos.data.distributedData | FieldNode | default: string; | 新增 | +| ohos.data.distributedData | FieldNode | appendChild(child: FieldNode): boolean; | 新增 | +| ohos.data.distributedData | FieldNode | constructor(name: string) | 新增 | +| ohos.data.distributedData | Schema | skip: number; | 新增 | +| ohos.data.distributedData | Schema | mode: number; | 新增 | +| ohos.data.distributedData | Schema | indexes: Array; | 新增 | +| ohos.data.distributedData | Schema | root: FieldNode; | 新增 | +| ohos.data.distributedData | Schema | constructor() | 新增 | +| ohos.data.distributedData | Options | schema?: Schema; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md index dce4c7f9e0..3b7cb75a1f 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md @@ -1,14 +1,37 @@ -# xxx子系统JS API变更 +# 事件通知子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,事件通知子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| notificationUserInput | NotificationUserInput | inputKey: string; | 新增 | +| notificationTemplate | NotificationTemplate | data: {[key: string]: Object}; | 新增 | +| notificationTemplate | NotificationTemplate | name: string; | 新增 | +| notificationRequest | DistributedOptions | supportOperateDevices?: Array; | 新增 | +| notificationRequest | DistributedOptions | supportDisplayDevices?: Array; | 新增 | +| notificationRequest | DistributedOptions | isDistributed?: boolean; | 新增 | +| notificationRequest | NotificationRequest | readonly notificationFlags?: NotificationFlags; | 新增 | +| notificationRequest | NotificationRequest | distributedOption?: DistributedOptions; | 新增 | +| notificationRequest | NotificationRequest | template?: NotificationTemplate; | 新增 | +| notificationRequest | NotificationRequest | readonly creatorUserId?: number; | 新增 | +| notificationRequest | NotificationRequest | groupName?: string; | 新增 | +| notificationActionButton | NotificationActionButton | userInput?: NotificationUserInput; | 新增 | +| ohos.notification | notification | function isDistributedEnabled(callback: AsyncCallback): void;
function isDistributedEnabled(): Promise; | 新增 | +| ohos.notification | notification | function requestEnableNotification(callback: AsyncCallback): void;
function requestEnableNotification(): Promise; | 新增 | +| ohos.notification | notification | function isSupportTemplate(templateName: string, callback: AsyncCallback): void;
function isSupportTemplate(templateName: string): Promise; | 新增 | +| ohos.notification | notification | function cancelGroup(groupName: string, callback: AsyncCallback): void;
function cancelGroup(groupName: string): Promise; | 新增 | +| ohos.events.emitter | EventPriority | IDLE | 新增 | +| ohos.events.emitter | EventPriority | LOW | 新增 | +| ohos.events.emitter | EventPriority | HIGH | 新增 | +| ohos.events.emitter | EventPriority | IMMEDIATE = 0 | 新增 | +| ohos.events.emitter | InnerEvent | priority?: EventPriority; | 新增 | +| ohos.events.emitter | InnerEvent | eventId: number; | 新增 | +| ohos.events.emitter | EventData | data?: {[key: string]: any}; | 新增 | +| ohos.events.emitter | emitter | function emit(event: InnerEvent, data?: EventData): void; | 新增 | +| ohos.events.emitter | emitter | function off(eventId: number): void; | 新增 | +| ohos.events.emitter | emitter | function once(event: InnerEvent, callback: Callback): void; | 新增 | +| ohos.events.emitter | emitter | function on(event: InnerEvent, callback: Callback): void; | 新增 | +| ohos.commonEvent | Support | COMMON_EVENT_SPLIT_SCREEN = "common.event.SPLIT_SCREEN" | 新增 | +| ohos.commonEvent | Support | COMMON_EVENT_THERMAL_LEVEL_CHANGED = "usual.event.THERMAL_LEVEL_CHANGED" | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md index dce4c7f9e0..a5d28bf498 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md @@ -1,14 +1,58 @@ -# xxx子系统JS API变更 +# 文件管理子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,文件管理子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.statfs | Statfs | function getTotalBytes(path: string, callback: AsyncCallback): void;
function getTotalBytes(path: string): Promise; | 新增 | +| ohos.statfs | Statfs | function getFreeBytes(path: string, callback: AsyncCallback): void;
function getFreeBytes(path: string): Promise; | 新增 | +| ohos.fileio | Watcher | stop(): Promise;
stop(callback: AsyncCallback): void; | 新增 | +| ohos.fileio | ReadOut | buffer: ArrayBuffer; | 新增 | +| ohos.fileio | ReadOut | offset: number; | 新增 | +| ohos.fileio | ReadOut | bytesRead: number; | 新增 | +| 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; | 新增 | +| 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; | 新增 | +| ohos.fileio | Stream | flush(): Promise;
flush(callback: AsyncCallback): void; | 新增 | +| ohos.fileio | Stream | close(): Promise;
close(callback: AsyncCallback): void; | 新增 | +| ohos.fileio | Dir | close(): Promise;
close(callback: AsyncCallback): void; | 新增 | +| ohos.fileio | Dir | read(): Promise;
read(callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function createWatcher(filename: string, events: number, callback: AsyncCallback): Watcher; | 新增 | +| 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; | 新增 | +| ohos.fileio | fileIO | function unlink(path: string): Promise;
function unlink(path: string, callback: AsyncCallback): void; | 新增 | +| 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; | 新增 | +| ohos.fileio | fileIO | function symlinkSync(target: string, srcPath: string): void; | 新增 | +| ohos.fileio | fileIO | function symlink(target: string, srcPath: string): Promise;
function symlink(target: string, srcPath: string, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function stat(path: string): Promise;
function stat(path: string, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function rmdir(path: string): Promise;
function rmdir(path: string, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function rename(oldPath: string, newPath: string): Promise;
function rename(oldPath: string, newPath: string, callback: AsyncCallback): void; | 新增 | +| 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; | 新增 | +| ohos.fileio | fileIO | function readTextSync(filePath: string, options?: { position?: number; length?: number; encoding?: string; }): string;| 新增 | +| 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; | 新增 | +| ohos.fileio | fileIO | function opendir(path: string): Promise;
function opendir(path: string, callback: AsyncCallback): void; | 新增 | +| 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; | 新增 | +| ohos.fileio | fileIO | function mkdtempSync(prefix: string): string; | 新增 | +| ohos.fileio | fileIO | function mkdtemp(prefix: string): Promise;
function mkdtemp(prefix: string, callback: AsyncCallback): void; | 新增 | +| 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; | 新增 | +| ohos.fileio | fileIO | function lstatSync(path: string): Stat; | 新增 | +| ohos.fileio | fileIO | function lstat(path: string): Promise;
function lstat(path: string, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function lchownSync(path: string, uid: number, gid: number): void; | 新增 | +| ohos.fileio | fileIO | function lchown(path: string, uid: number, gid: number): Promise;
function lchown(path: string, uid: number, gid: number, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function hash(path: string, algorithm: string): Promise;
function hash(path: string, algorithm: string, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function fdopenStream(fd: number, mode: string): Promise;
function fdopenStream(fd: number, mode: string, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function fchmod(fd: number, mode: number): Promise;
function fchmod(fd: number, mode: number, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function fchown(fd: number, uid: number, gid: number): Promise;
function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function fdatasyncSync(fd: number): void; | 新增 | +| ohos.fileio | fileIO | function fdatasync(fd: number): Promise;
function fdatasync(fd: number, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function fstat(fd: number): Promise;
function fstat(fd: number, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function fsync(fd: number): Promise;
function fsync(fd: number, callback: AsyncCallback): void; | 新增 | +| 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; | 新增 | +| ohos.fileio | fileIO | function chmod(path: string, mode: number): Promise;
function chmod(path: string, mode: number, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function chown(path: string, uid: number, gid: number): Promise;
function chown(path: string, uid: number, gid: number, callback: AsyncCallback): void; | 新增 | +| ohos.fileio | fileIO | function createStream(path: string, mode: string): Promise;
function createStream(path: string, mode: string, callback: AsyncCallback): void; | 新增 | +| 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; | 新增 | +| ohos.fileio | fileIO | function close(fd: number): Promise;
function close(fd: number, callback: AsyncCallback): void; | 新增 | +| 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; | 新增 | +| ohos.document | document | function show(uri: string, type: string): Promise;
function show(uri: string, type: string, callback: AsyncCallback): void; | 新增 | +| ohos.document | document | function choose(types?: string[]): Promise;
function choose(callback: AsyncCallback): void;
function choose(types: string[], callback: AsyncCallback): void; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md index dce4c7f9e0..3f7e47b88f 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md @@ -1,14 +1,115 @@ -# xxx子系统JS API变更 +# 位置服务子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,位置服务子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.geolocation | LocationCommand | command: string; | 新增 | +| ohos.geolocation | LocationCommand | scenario: LocationRequestScenario; | 新增 | +| ohos.geolocation | LocationPrivacyType | CORE_LOCATION | 新增 | +| ohos.geolocation | LocationPrivacyType | STARTUP | 新增 | +| ohos.geolocation | LocationPrivacyType | OTHERS = 0 | 新增 | +| ohos.geolocation | GeoLocationErrorCode | LOCATION_REQUEST_TIMEOUT_ERROR | 新增 | +| ohos.geolocation | GeoLocationErrorCode | LAST_KNOWN_LOCATION_ERROR | 新增 | +| ohos.geolocation | GeoLocationErrorCode | LOCATION_SWITCH_ERROR | 新增 | +| ohos.geolocation | GeoLocationErrorCode | LOCATOR_ERROR | 新增 | +| ohos.geolocation | GeoLocationErrorCode | GEOCODE_ERROR | 新增 | +| ohos.geolocation | GeoLocationErrorCode | REVERSE_GEOCODE_ERROR | 新增 | +| ohos.geolocation | GeoLocationErrorCode | INPUT_PARAMS_ERROR = 101 | 新增 | +| ohos.geolocation | LocationRequestScenario | NO_POWER | 新增 | +| ohos.geolocation | LocationRequestScenario | DAILY_LIFE_SERVICE | 新增 | +| ohos.geolocation | LocationRequestScenario | CAR_HAILING | 新增 | +| ohos.geolocation | LocationRequestScenario | TRAJECTORY_TRACKING | 新增 | +| ohos.geolocation | LocationRequestScenario | NAVIGATION | 新增 | +| ohos.geolocation | LocationRequestScenario | UNSET = 0x300 | 新增 | +| ohos.geolocation | LocationRequestPriority | FIRST_FIX | 新增 | +| ohos.geolocation | LocationRequestPriority | LOW_POWER | 新增 | +| ohos.geolocation | LocationRequestPriority | ACCURACY | 新增 | +| ohos.geolocation | LocationRequestPriority | UNSET = 0x200 | 新增 | +| ohos.geolocation | Location | additionSize?: number; | 新增 | +| ohos.geolocation | Location | additions?: Array; | 新增 | +| ohos.geolocation | Location | timeSinceBoot: number; | 新增 | +| ohos.geolocation | Location | direction: number; | 新增 | +| ohos.geolocation | Location | timeStamp: number; | 新增 | +| ohos.geolocation | Location | speed: number; | 新增 | +| ohos.geolocation | Location | accuracy: number; | 新增 | +| ohos.geolocation | Location | altitude: number; | 新增 | +| ohos.geolocation | Location | longitude: number; | 新增 | +| ohos.geolocation | Location | latitude: number; | 新增 | +| ohos.geolocation | CurrentLocationRequest | timeoutMs?: number; | 新增 | +| ohos.geolocation | CurrentLocationRequest | maxAccuracy?: number; | 新增 | +| ohos.geolocation | CurrentLocationRequest | scenario?: LocationRequestScenario; | 新增 | +| ohos.geolocation | CurrentLocationRequest | priority?: LocationRequestPriority; | 新增 | +| ohos.geolocation | LocationRequest | maxAccuracy?: number; | 新增 | +| ohos.geolocation | LocationRequest | distanceInterval?: number; | 新增 | +| ohos.geolocation | LocationRequest | timeInterval?: number; | 新增 | +| ohos.geolocation | LocationRequest | scenario?: LocationRequestScenario; | 新增 | +| ohos.geolocation | LocationRequest | priority?: LocationRequestPriority; | 新增 | +| ohos.geolocation | GeoAddress | descriptionsSize?: number; | 新增 | +| ohos.geolocation | GeoAddress | descriptions?: Array; | 新增 | +| ohos.geolocation | GeoAddress | addressUrl?: string; | 新增 | +| ohos.geolocation | GeoAddress | phoneNumber?: string; | 新增 | +| ohos.geolocation | GeoAddress | postalCode?: string; | 新增 | +| ohos.geolocation | GeoAddress | premises?: string; | 新增 | +| ohos.geolocation | GeoAddress | subRoadName?: string; | 新增 | +| ohos.geolocation | GeoAddress | roadName?: string; | 新增 | +| ohos.geolocation | GeoAddress | subLocality?: string; | 新增 | +| ohos.geolocation | GeoAddress | locality?: string; | 新增 | +| ohos.geolocation | GeoAddress | subAdministrativeArea?: string; | 新增 | +| ohos.geolocation | GeoAddress | administrativeArea?: string; | 新增 | +| ohos.geolocation | GeoAddress | countryName?: string; | 新增 | +| ohos.geolocation | GeoAddress | countryCode?: string; | 新增 | +| ohos.geolocation | GeoAddress | placeName?: string; | 新增 | +| ohos.geolocation | GeoAddress | locale?: string; | 新增 | +| ohos.geolocation | GeoAddress | longitude?: number; | 新增 | +| ohos.geolocation | GeoAddress | latitude?: number; | 新增 | +| ohos.geolocation | GeoCodeRequest | maxLongitude?: number; | 新增 | +| ohos.geolocation | GeoCodeRequest | maxLatitude?: number; | 新增 | +| ohos.geolocation | GeoCodeRequest | minLongitude?: number; | 新增 | +| ohos.geolocation | GeoCodeRequest | minLatitude?: number; | 新增 | +| ohos.geolocation | GeoCodeRequest | maxItems?: number; | 新增 | +| ohos.geolocation | GeoCodeRequest | description: string; | 新增 | +| ohos.geolocation | GeoCodeRequest | locale?: string; | 新增 | +| ohos.geolocation | ReverseGeoCodeRequest | maxItems?: number; | 新增 | +| ohos.geolocation | ReverseGeoCodeRequest | longitude: number; | 新增 | +| ohos.geolocation | ReverseGeoCodeRequest | latitude: number; | 新增 | +| ohos.geolocation | ReverseGeoCodeRequest | locale?: string; | 新增 | +| ohos.geolocation | Geofence | expiration: number; | 新增 | +| ohos.geolocation | Geofence | radius: number; | 新增 | +| ohos.geolocation | Geofence | longitude: number; | 新增 | +| ohos.geolocation | Geofence | latitude: number; | 新增 | +| ohos.geolocation | GeofenceRequest | geofence: Geofence; | 新增 | +| ohos.geolocation | GeofenceRequest | scenario: LocationRequestScenario; | 新增 | +| ohos.geolocation | GeofenceRequest | priority: LocationRequestPriority; | 新增 | +| ohos.geolocation | CachedGnssLocationsRequest | wakeUpCacheQueueFull: boolean; | 新增 | +| ohos.geolocation | CachedGnssLocationsRequest | reportingPeriodSec: number; | 新增 | +| ohos.geolocation | SatelliteStatusInfo | carrierFrequencies: Array; | 新增 | +| ohos.geolocation | SatelliteStatusInfo | azimuths: Array; | 新增 | +| ohos.geolocation | SatelliteStatusInfo | altitudes: Array; | 新增 | +| ohos.geolocation | SatelliteStatusInfo | carrierToNoiseDensitys: Array; | 新增 | +| ohos.geolocation | SatelliteStatusInfo | satelliteIds: Array; | 新增 | +| ohos.geolocation | SatelliteStatusInfo | satellitesNumber: number; | 新增 | +| ohos.geolocation | geolocation | function sendCommand(command: LocationCommand, callback: AsyncCallback) : void;
function sendCommand(command: LocationCommand) : Promise; | 新增 | +| ohos.geolocation | geolocation | function flushCachedGnssLocations(callback: AsyncCallback) : void;
function flushCachedGnssLocations() : Promise; | 新增 | +| ohos.geolocation | geolocation | function getCachedGnssLocationsSize(callback: AsyncCallback) : void;
function getCachedGnssLocationsSize() : Promise; | 新增 | +| ohos.geolocation | geolocation | function isGeoServiceAvailable(callback: AsyncCallback) : void;
function isGeoServiceAvailable() : Promise; | 新增 | +| ohos.geolocation | geolocation | function getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback>) : void;
function getAddressesFromLocationName(request: GeoCodeRequest) : Promise>; | 新增 | +| ohos.geolocation | geolocation | function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback>) : void;
function getAddressesFromLocation(request: ReverseGeoCodeRequest) : Promise>; | 新增 | +| ohos.geolocation | geolocation | function requestEnableLocation(callback: AsyncCallback) : void;
function requestEnableLocation() : Promise; | 新增 | +| ohos.geolocation | geolocation | function isLocationEnabled(callback: AsyncCallback) : void;
function isLocationEnabled() : Promise; | 新增 | +| ohos.geolocation | geolocation | function getLastLocation(callback: AsyncCallback) : void;
function getLastLocation() : Promise; | 新增 | +| ohos.geolocation | geolocation | function getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback) : void;
function getCurrentLocation(callback: AsyncCallback) : void;
function getCurrentLocation(request?: CurrentLocationRequest) : Promise; | 新增 | +| ohos.geolocation | geolocation | function off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | 新增 | +| ohos.geolocation | geolocation | function on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent) : void; | 新增 | +| ohos.geolocation | geolocation | function off(type: 'nmeaMessageChange', callback?: Callback) : void; | 新增 | +| ohos.geolocation | geolocation | function on(type: 'nmeaMessageChange', callback: Callback) : void; | 新增 | +| ohos.geolocation | geolocation | function off(type: 'gnssStatusChange', callback?: Callback) : void; | 新增 | +| ohos.geolocation | geolocation | function on(type: 'gnssStatusChange', callback: Callback) : void; | 新增 | +| ohos.geolocation | geolocation | function off(type: 'cachedGnssLocationsReporting', callback?: Callback>) : void; | 新增 | +| ohos.geolocation | geolocation | function on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback>) : void; | 新增 | +| ohos.geolocation | geolocation | function off(type: 'locationServiceState', callback?: Callback) : void; | 新增 | +| ohos.geolocation | geolocation | function on(type: 'locationServiceState', callback: Callback) : void; | 新增 | +| ohos.geolocation | geolocation | function off(type: 'locationChange', callback?: Callback) : void; | 新增 | +| ohos.geolocation | geolocation | function on(type: 'locationChange', request: LocationRequest, callback: Callback) : void; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-global.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-global.md index dce4c7f9e0..4b1831bb1e 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-global.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-global.md @@ -1,14 +1,107 @@ -# xxx子系统JS API变更 +# 全球化子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,全球化子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| rawFileDescriptor | RawFileDescriptor | length: number; | 新增 | +| rawFileDescriptor | RawFileDescriptor | offset: number; | 新增 | +| rawFileDescriptor | RawFileDescriptor | fd: number; | 新增 | +| ohos.resourceManager | ResourceManager | release(); | 新增 | +| ohos.resourceManager | ResourceManager | closeRawFileDescriptor(path: string, callback: AsyncCallback): void;
closeRawFileDescriptor(path: string): Promise; | 新增 | +| ohos.resourceManager | ResourceManager | getRawFileDescriptor(path: string, callback: AsyncCallback): void;
getRawFileDescriptor(path: string): Promise; | 新增 | +| ohos.resourceManager | ResourceManager | getRawFile(path: string, callback: AsyncCallback): void;
getRawFile(path: string): Promise; | 新增 | +| 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; | 新增 | +| ohos.intl | RelativeTimeFormat | resolvedOptions(): RelativeTimeFormatResolvedOptions; | 新增 | +| ohos.intl | RelativeTimeFormat | formatToParts(value: number, unit: string): Array; | 新增 | +| ohos.intl | RelativeTimeFormat | format(value: number, unit: string): string; | 新增 | +| ohos.intl | RelativeTimeFormat | constructor(); | 新增 | +| ohos.intl | RelativeTimeFormatResolvedOptions | numberingSystem: string; | 新增 | +| ohos.intl | RelativeTimeFormatResolvedOptions | numeric: string; | 新增 | +| ohos.intl | RelativeTimeFormatResolvedOptions | style: string; | 新增 | +| ohos.intl | RelativeTimeFormatResolvedOptions | locale: string; | 新增 | +| ohos.intl | RelativeTimeFormatInputOptions | style: string; | 新增 | +| ohos.intl | RelativeTimeFormatInputOptions | numeric: string; | 新增 | +| ohos.intl | RelativeTimeFormatInputOptions | localeMatcher: string; | 新增 | +| ohos.intl | PluralRules | select(n: number): string; | 新增 | +| ohos.intl | PluralRules | constructor(); | 新增 | +| ohos.intl | PluralRulesOptions | maximumSignificantDigits: number; | 新增 | +| ohos.intl | PluralRulesOptions | minimumSignificantDigits: number; | 新增 | +| ohos.intl | PluralRulesOptions | maximumFractionDigits: number; | 新增 | +| ohos.intl | PluralRulesOptions | minimumFractionDigits: number; | 新增 | +| ohos.intl | PluralRulesOptions | minimumIntegerDigits: number; | 新增 | +| ohos.intl | PluralRulesOptions | type: string; | 新增 | +| ohos.intl | PluralRulesOptions | localeMatcher: string; | 新增 | +| ohos.intl | Collator | resolvedOptions(): CollatorOptions; | 新增 | +| ohos.intl | Collator | compare(first: string, second: string): number; | 新增 | +| ohos.intl | Collator | constructor(); | 新增 | +| ohos.intl | CollatorOptions | caseFirst: string; | 新增 | +| ohos.intl | CollatorOptions | numeric: boolean; | 新增 | +| ohos.intl | CollatorOptions | collation: string; | 新增 | +| ohos.intl | CollatorOptions | ignorePunctuation: boolean; | 新增 | +| ohos.intl | CollatorOptions | sensitivity: string; | 新增 | +| ohos.intl | CollatorOptions | usage: string; | 新增 | +| ohos.intl | CollatorOptions | localeMatcher: string; | 新增 | +| ohos.intl | NumberOptions | unitUsage: string | 新增 | +| ohos.intl | LocaleOptions | caseFirst: string; | 新增 | +| ohos.intl | LocaleOptions | numeric: boolean; | 新增 | +| ohos.intl | LocaleOptions | numberingSystem: string; | 新增 | +| ohos.intl | LocaleOptions | hourCycle: string; | 新增 | +| ohos.intl | LocaleOptions | collation: string; | 新增 | +| ohos.intl | LocaleOptions | calendar: string; | 新增 | +| ohos.i18n | TimeZone | getOffset(date?: number): number; | 新增 | +| ohos.i18n | TimeZone | getRawOffset(): number; | 新增 | +| ohos.i18n | TimeZone | getDisplayName(locale?: string, isDST?: boolean): string; | 新增 | +| ohos.i18n | TimeZone | getID(): string; | 新增 | +| ohos.i18n | i18n | function getTimeZone(zoneID?: string): TimeZone; | 新增 | +| ohos.i18n | i18n | function getFirstPreferredLanguage(): string; | 新增 | +| ohos.i18n | i18n | function getPreferredLanguageList(): Array; | 新增 | +| ohos.i18n | i18n | function removePreferredLanguage(index: number): boolean; | 新增 | +| ohos.i18n | i18n | function addPreferredLanguage(language: string, index?: number): boolean; | 新增 | +| ohos.i18n | i18n | function set24HourClock(option: boolean): boolean; | 新增 | +| ohos.i18n | i18n | function is24HourClock(): boolean; | 新增 | +| ohos.i18n | Character | getType(char: string): string; | 新增 | +| ohos.i18n | Character | isUpperCase(char: string): boolean; | 新增 | +| ohos.i18n | Character | isLowerCase(char: string): boolean; | 新增 | +| ohos.i18n | Character | isLetter(char: string): boolean; | 新增 | +| ohos.i18n | Character | isIdeograph(char: string): boolean; | 新增 | +| ohos.i18n | Character | isRTL(char: string): boolean; | 新增 | +| ohos.i18n | Character | isWhitespace(char: string): boolean; | 新增 | +| ohos.i18n | Character | isSpaceChar(char: string): boolean; | 新增 | +| ohos.i18n | Character | isDigit(char: string): boolean; | 新增 | +| ohos.i18n | IndexUtil | getIndex(text: string): string; | 新增 | +| ohos.i18n | IndexUtil | addLocale(locale: string): void; | 新增 | +| ohos.i18n | IndexUtil | getIndexList(): Array; | 新增 | +| ohos.i18n | i18n | function getInstance(locale?:string): IndexUtil; | 新增 | +| ohos.i18n | BreakIterator | isBoundary(offset: number): boolean; | 新增 | +| ohos.i18n | BreakIterator | getLineBreakText(): string; | 新增 | +| ohos.i18n | BreakIterator | following(offset: number): number; | 新增 | +| ohos.i18n | BreakIterator | setLineBreakText(text: string): void; | 新增 | +| ohos.i18n | BreakIterator | previous(): number; | 新增 | +| ohos.i18n | BreakIterator | next(index?: number): number; | 新增 | +| ohos.i18n | BreakIterator | last(): number; | 新增 | +| ohos.i18n | BreakIterator | first(): number; | 新增 | +| ohos.i18n | BreakIterator | current(): number; | 新增 | +| ohos.i18n | i18n | function getLineInstance(locale: string): BreakIterator; | 新增 | +| ohos.i18n | i18n | function isRTL(locale: string): boolean; | 新增 | +| ohos.i18n | Calendar | isWeekend(date?: Date): boolean; | 新增 | +| ohos.i18n | Calendar | getDisplayName(locale: string): string; | 新增 | +| ohos.i18n | Calendar | get(field: string): number; | 新增 | +| ohos.i18n | Calendar | setMinimalDaysInFirstWeek(value: number): void; | 新增 | +| ohos.i18n | Calendar | getMinimalDaysInFirstWeek(): number; | 新增 | +| ohos.i18n | Calendar | setFirstDayOfWeek(value: number): void; | 新增 | +| ohos.i18n | Calendar | getFirstDayOfWeek(): number; | 新增 | +| ohos.i18n | Calendar | getTimeZone(): string; | 新增 | +| ohos.i18n | Calendar | setTimeZone(timezone: string): void; | 新增 | +| ohos.i18n | Calendar | set(year: number, month: number, date:number, hour?: number, minute?: number, second?: number): void; | 新增 | +| ohos.i18n | Calendar | setTime(date: Date): void;
setTime(time: number): void; | 新增 | +| ohos.i18n | i18n | function getCalendar(locale: string, type?: string): Calendar; | 新增 | +| ohos.i18n | PhoneNumberFormat | format(number: string): string; | 新增 | +| ohos.i18n | PhoneNumberFormat | isValidNumber(number: string): boolean; | 新增 | +| ohos.i18n | PhoneNumberFormat | constructor(country: string, options?: PhoneNumberFormatOptions); | 新增 | +| ohos.i18n | PhoneNumberFormatOptions | type: string; | 新增 | +| ohos.i18n | UnitInfo | measureSystem: string | 新增 | +| ohos.i18n | UnitInfo | unit: string | 新增 | +| ohos.i18n | Util | unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-graphic.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-graphic.md index dce4c7f9e0..88450608f4 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-graphic.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-graphic.md @@ -1,14 +1,827 @@ -# xxx子系统JS API变更 +# 图形图像子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,图形图像子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| webgl2 | WebGL2RenderingContextOverloads | readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView \| null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniformMatrix4fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniformMatrix3fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniformMatrix2fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniform4iv(location: WebGLUniformLocation \| null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniform3iv(location: WebGLUniformLocation \| null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniform2iv(location: WebGLUniformLocation \| null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniform1iv(location: WebGLUniformLocation \| null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniform4fv(location: WebGLUniformLocation \| null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniform3fv(location: WebGLUniformLocation \| null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniform2fv(location: WebGLUniformLocation \| null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | uniform1fv(location: WebGLUniformLocation \| null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView \| null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView \| null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextOverloads | bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: BufferSource \| null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | bindVertexArray(array: WebGLVertexArrayObject \| null): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | isVertexArray(vertexArray: WebGLVertexArrayObject \| null): GLboolean; | 新增 | +| webgl2 | WebGL2RenderingContextBase | deleteVertexArray(vertexArray: WebGLVertexArrayObject \| null): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | createVertexArray(): WebGLVertexArrayObject \| null; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string \| null; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] \| null; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getIndexedParameter(target: GLenum, index: GLuint): any; | 新增 | +| webgl2 | WebGL2RenderingContextBase | bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer \| null, offset: GLintptr, size: GLsizeiptr): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer \| null): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | resumeTransformFeedback(): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | pauseTransformFeedback(): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo \| null; | 新增 | +| webgl2 | WebGL2RenderingContextBase | transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | endTransformFeedback(): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | beginTransformFeedback(primitiveMode: GLenum): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback \| null): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | isTransformFeedback(tf: WebGLTransformFeedback \| null): GLboolean; | 新增 | +| webgl2 | WebGL2RenderingContextBase | deleteTransformFeedback(tf: WebGLTransformFeedback \| null): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | createTransformFeedback(): WebGLTransformFeedback \| null; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getSyncParameter(sync: WebGLSync, pname: GLenum): any; | 新增 | +| webgl2 | WebGL2RenderingContextBase | waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | deleteSync(sync: WebGLSync \| null): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | isSync(sync: WebGLSync \| null): GLboolean; | 新增 | +| webgl2 | WebGL2RenderingContextBase | fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync \| null; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any; | 新增 | +| webgl2 | WebGL2RenderingContextBase | samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | bindSampler(unit: GLuint, sampler: WebGLSampler \| null): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | isSampler(sampler: WebGLSampler \| null): GLboolean; | 新增 | +| webgl2 | WebGL2RenderingContextBase | deleteSampler(sampler: WebGLSampler \| null): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | createSampler(): WebGLSampler \| null; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getQueryParameter(query: WebGLQuery, pname: GLenum): any; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getQuery(target: GLenum, pname: GLenum): WebGLQuery \| null; | 新增 | +| webgl2 | WebGL2RenderingContextBase | endQuery(target: GLenum): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | beginQuery(target: GLenum, query: WebGLQuery): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | isQuery(query: WebGLQuery \| null): GLboolean; | 新增 | +| webgl2 | WebGL2RenderingContextBase | deleteQuery(query: WebGLQuery \| null): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | createQuery(): WebGLQuery \| null; | 新增 | +| webgl2 | WebGL2RenderingContextBase | clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | drawBuffers(buffers: GLenum[]): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | vertexAttribDivisor(index: GLuint, divisor: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | vertexAttribI4uiv(index: GLuint, values: Uint32List): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | vertexAttribI4iv(index: GLuint, values: Int32List): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniformMatrix3x4fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniformMatrix2x4fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniformMatrix4x3fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniformMatrix2x3fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniformMatrix4x2fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniformMatrix3x2fv(location: WebGLUniformLocation \| null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniform4uiv(location: WebGLUniformLocation \| null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniform3uiv(location: WebGLUniformLocation \| null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniform2uiv(location: WebGLUniformLocation \| null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniform1uiv(location: WebGLUniformLocation \| null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniform4ui(location: WebGLUniformLocation \| null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniform3ui(location: WebGLUniformLocation \| null, v0: GLuint, v1: GLuint, v2: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniform2ui(location: WebGLUniformLocation \| null, v0: GLuint, v1: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | uniform1ui(location: WebGLUniformLocation \| null, v0: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getFragDataLocation(program: WebGLProgram, name: string): GLint; | 新增 | +| webgl2 | WebGL2RenderingContextBase | compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView \| null, srcOffset?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView \| null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readBuffer(src: GLenum): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture \| null, level: GLint, layer: GLint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TIMEOUT_IGNORED: GLint64; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_IMMUTABLE_LEVELS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_ELEMENT_INDEX: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_IMMUTABLE_FORMAT: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_PAUSED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly INT_2_10_10_10_REV: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB10_A2UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SAMPLER_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly ANY_SAMPLES_PASSED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SYNC_FLUSH_COMMANDS_BIT: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly WAIT_FAILED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly CONDITION_SATISFIED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TIMEOUT_EXPIRED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly ALREADY_SIGNALED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SIGNALED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNALED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SYNC_FENCE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SYNC_FLAGS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SYNC_STATUS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SYNC_CONDITION: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly OBJECT_TYPE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_SERVER_WAIT_TIMEOUT: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly INVALID_INDEX: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BLOCK_DATA_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BLOCK_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_IS_ROW_MAJOR: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_MATRIX_STRIDE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_ARRAY_STRIDE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_OFFSET: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BLOCK_INDEX: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_TYPE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly ACTIVE_UNIFORM_BLOCKS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_UNIFORM_BLOCK_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BUFFER_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BUFFER_START: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BUFFER_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNIFORM_BUFFER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COPY_WRITE_BUFFER_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COPY_READ_BUFFER_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COPY_WRITE_BUFFER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COPY_READ_BUFFER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SIGNED_NORMALIZED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA8_SNORM: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB8_SNORM: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG8_SNORM: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R8_SNORM: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly VERTEX_ARRAY_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG32UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG32I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG16UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG16I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG8UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG8I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R32UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R32I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R16UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R16I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R8UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R8I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG32F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG16F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R32F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R16F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG_INTEGER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RG: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly HALF_FLOAT: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_SAMPLES: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT15: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT14: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT13: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT12: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT11: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT10: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT9: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT7: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT6: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT5: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT4: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT3: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT2: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR_ATTACHMENT1: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_COLOR_ATTACHMENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RENDERBUFFER_SAMPLES: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly READ_FRAMEBUFFER_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_FRAMEBUFFER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly READ_FRAMEBUFFER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_FRAMEBUFFER_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_NORMALIZED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DEPTH24_STENCIL8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_24_8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_DEFAULT: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DEPTH32F_STENCIL8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DEPTH_COMPONENT32F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_SAMPLER_3D: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_SAMPLER_2D: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly INT_SAMPLER_2D_ARRAY: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly INT_SAMPLER_CUBE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly INT_SAMPLER_3D: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly INT_SAMPLER_2D: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_VEC4: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_VEC3: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_VEC2: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SAMPLER_CUBE_SHADOW: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SAMPLER_2D_ARRAY_SHADOW: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SAMPLER_2D_ARRAY: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA_INTEGER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB_INTEGER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RED_INTEGER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB8I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA8I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB16I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA16I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB32I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA32I: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB8UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA8UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB16UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA16UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB32UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA32UI: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_BUFFER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SEPARATE_ATTRIBS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly INTERLEAVED_ATTRIBS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RASTERIZER_DISCARD: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_5_9_9_9_REV: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB9_E5: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly R11F_G11F_B10F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_BINDING_2D_ARRAY: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_2D_ARRAY: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_VARYING_COMPONENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB16F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA16F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB32F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA32F: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COMPARE_REF_TO_TEXTURE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SRGB8_ALPHA8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SRGB8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SRGB: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FLOAT_MAT4x3: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FLOAT_MAT4x2: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FLOAT_MAT3x4: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FLOAT_MAT3x2: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FLOAT_MAT2x4: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FLOAT_MAT2x3: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly PIXEL_PACK_BUFFER_BINDING: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly PIXEL_UNPACK_BUFFER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly PIXEL_PACK_BUFFER: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SAMPLER_2D_SHADOW: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly SAMPLER_3D: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER15: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER14: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER13: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER12: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER11: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER10: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER9: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER7: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER6: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER5: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER4: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER3: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER2: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER1: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DRAW_BUFFER0: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_DRAW_BUFFERS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DYNAMIC_COPY: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DYNAMIC_READ: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly STATIC_COPY: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly STATIC_READ: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly STREAM_COPY: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly STREAM_READ: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly QUERY_RESULT_AVAILABLE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly QUERY_RESULT: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly CURRENT_QUERY: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_COMPARE_FUNC: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_COMPARE_MODE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_TEXTURE_LOD_BIAS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DEPTH_COMPONENT24: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MIN: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_MAX_LEVEL: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_BASE_LEVEL: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_MAX_LOD: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_MIN_LOD: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_ELEMENTS_INDICES: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_ELEMENTS_VERTICES: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNSIGNED_INT_2_10_10_10_REV: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly MAX_3D_TEXTURE_SIZE: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_WRAP_R: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_3D: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNPACK_IMAGE_HEIGHT: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNPACK_SKIP_IMAGES: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly TEXTURE_BINDING_3D: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB10_A2: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGBA8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RGB8: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly RED: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly STENCIL: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly DEPTH: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly COLOR: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly PACK_SKIP_PIXELS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly PACK_SKIP_ROWS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly PACK_ROW_LENGTH: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNPACK_SKIP_PIXELS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNPACK_SKIP_ROWS: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly UNPACK_ROW_LENGTH: GLenum; | 新增 | +| webgl2 | WebGL2RenderingContextBase | readonly READ_BUFFER: GLenum; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniformMatrix4fv(location: WebGLUniformLocation \| null, transpose: GLboolean, value: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniformMatrix3fv(location: WebGLUniformLocation \| null, transpose: GLboolean, value: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniformMatrix2fv(location: WebGLUniformLocation \| null, transpose: GLboolean, value: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniform4iv(location: WebGLUniformLocation \| null, v: Int32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniform3iv(location: WebGLUniformLocation \| null, v: Int32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniform2iv(location: WebGLUniformLocation \| null, v: Int32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniform1iv(location: WebGLUniformLocation \| null, v: Int32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniform4fv(location: WebGLUniformLocation \| null, v: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniform3fv(location: WebGLUniformLocation \| null, v: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniform2fv(location: WebGLUniformLocation \| null, v: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | uniform1fv(location: WebGLUniformLocation \| null, v: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView \| null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView \| null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView \| null): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void; | 新增 | +| webgl | WebGLRenderingContextOverloads | bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: BufferSource \| null, usage: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; | 新增 | +| webgl | WebGLRenderingContextBase | vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void; | 新增 | +| webgl | WebGLRenderingContextBase | vertexAttrib4fv(index: GLuint, values: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextBase | vertexAttrib3fv(index: GLuint, values: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextBase | vertexAttrib2fv(index: GLuint, values: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextBase | vertexAttrib1fv(index: GLuint, values: Float32List): void; | 新增 | +| webgl | WebGLRenderingContextBase | vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | vertexAttrib1f(index: GLuint, x: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | validateProgram(program: WebGLProgram): void; | 新增 | +| webgl | WebGLRenderingContextBase | useProgram(program: WebGLProgram \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | uniform4i(location: WebGLUniformLocation \| null, x: GLint, y: GLint, z: GLint, w: GLint): void; | 新增 | +| webgl | WebGLRenderingContextBase | uniform3i(location: WebGLUniformLocation \| null, x: GLint, y: GLint, z: GLint): void; | 新增 | +| webgl | WebGLRenderingContextBase | uniform2i(location: WebGLUniformLocation \| null, x: GLint, y: GLint): void; | 新增 | +| webgl | WebGLRenderingContextBase | uniform1i(location: WebGLUniformLocation \| null, x: GLint): void; | 新增 | +| webgl | WebGLRenderingContextBase | uniform4f(location: WebGLUniformLocation \| null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | uniform3f(location: WebGLUniformLocation \| null, x: GLfloat, y: GLfloat, z: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | uniform2f(location: WebGLUniformLocation \| null, x: GLfloat, y: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | uniform1f(location: WebGLUniformLocation \| null, x: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | texParameteri(target: GLenum, pname: GLenum, param: GLint): void; | 新增 | +| webgl | WebGLRenderingContextBase | texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | stencilMaskSeparate(face: GLenum, mask: GLuint): void; | 新增 | +| webgl | WebGLRenderingContextBase | stencilMask(mask: GLuint): void; | 新增 | +| webgl | WebGLRenderingContextBase | stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void; | 新增 | +| webgl | WebGLRenderingContextBase | stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void; | 新增 | +| webgl | WebGLRenderingContextBase | shaderSource(shader: WebGLShader, source: string): void; | 新增 | +| webgl | WebGLRenderingContextBase | scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; | 新增 | +| webgl | WebGLRenderingContextBase | sampleCoverage(value: GLclampf, invert: GLboolean): void; | 新增 | +| webgl | WebGLRenderingContextBase | renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void; | 新增 | +| webgl | WebGLRenderingContextBase | polygonOffset(factor: GLfloat, units: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | pixelStorei(pname: GLenum, param: GLint \| GLboolean): void; | 新增 | +| webgl | WebGLRenderingContextBase | linkProgram(program: WebGLProgram): void; | 新增 | +| webgl | WebGLRenderingContextBase | lineWidth(width: GLfloat): void; | 新增 | +| webgl | WebGLRenderingContextBase | isTexture(texture: WebGLTexture \| null): GLboolean; | 新增 | +| webgl | WebGLRenderingContextBase | isShader(shader: WebGLShader \| null): GLboolean; | 新增 | +| webgl | WebGLRenderingContextBase | isRenderbuffer(renderbuffer: WebGLRenderbuffer \| null): GLboolean; | 新增 | +| webgl | WebGLRenderingContextBase | isProgram(program: WebGLProgram \| null): GLboolean; | 新增 | +| webgl | WebGLRenderingContextBase | isFramebuffer(framebuffer: WebGLFramebuffer \| null): GLboolean; | 新增 | +| webgl | WebGLRenderingContextBase | isEnabled(cap: GLenum): GLboolean; | 新增 | +| webgl | WebGLRenderingContextBase | isBuffer(buffer: WebGLBuffer \| null): GLboolean; | 新增 | +| webgl | WebGLRenderingContextBase | hint(target: GLenum, mode: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; | 新增 | +| webgl | WebGLRenderingContextBase | getVertexAttrib(index: GLuint, pname: GLenum): any; | 新增 | +| webgl | WebGLRenderingContextBase | getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation \| null; | 新增 | +| webgl | WebGLRenderingContextBase | getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; | 新增 | +| webgl | WebGLRenderingContextBase | getTexParameter(target: GLenum, pname: GLenum): any; | 新增 | +| webgl | WebGLRenderingContextBase | getShaderSource(shader: WebGLShader): string \| null; | 新增 | +| webgl | WebGLRenderingContextBase | getShaderInfoLog(shader: WebGLShader): string \| null; | 新增 | +| webgl | WebGLRenderingContextBase | getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat \| null; | 新增 | +| webgl | WebGLRenderingContextBase | getShaderParameter(shader: WebGLShader, pname: GLenum): any; | 新增 | +| webgl | WebGLRenderingContextBase | getRenderbufferParameter(target: GLenum, pname: GLenum): any; | 新增 | +| webgl | WebGLRenderingContextBase | getProgramInfoLog(program: WebGLProgram): string \| null; | 新增 | +| webgl | WebGLRenderingContextBase | getProgramParameter(program: WebGLProgram, pname: GLenum): any; | 新增 | +| webgl | WebGLRenderingContextBase | getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any; | 新增 | +| webgl | WebGLRenderingContextBase | getError(): GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | getParameter(pname: GLenum): any; | 新增 | +| webgl | WebGLRenderingContextBase | getBufferParameter(target: GLenum, pname: GLenum): any; | 新增 | +| webgl | WebGLRenderingContextBase | getAttribLocation(program: WebGLProgram, name: string): GLint; | 新增 | +| webgl | WebGLRenderingContextBase | getAttachedShaders(program: WebGLProgram): WebGLShader[] \| null; | 新增 | +| webgl | WebGLRenderingContextBase | getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo \| null; | 新增 | +| webgl | WebGLRenderingContextBase | getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo \| null; | 新增 | +| webgl | WebGLRenderingContextBase | generateMipmap(target: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | frontFace(mode: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture \| null, level: GLint): void; | 新增 | +| webgl | WebGLRenderingContextBase | framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | flush(): void; | 新增 | +| webgl | WebGLRenderingContextBase | finish(): void; | 新增 | +| webgl | WebGLRenderingContextBase | enableVertexAttribArray(index: GLuint): void; | 新增 | +| webgl | WebGLRenderingContextBase | enable(cap: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void; | 新增 | +| webgl | WebGLRenderingContextBase | drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; | 新增 | +| webgl | WebGLRenderingContextBase | disableVertexAttribArray(index: GLuint): void; | 新增 | +| webgl | WebGLRenderingContextBase | disable(cap: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | detachShader(program: WebGLProgram, shader: WebGLShader): void; | 新增 | +| webgl | WebGLRenderingContextBase | depthRange(zNear: GLclampf, zFar: GLclampf): void; | 新增 | +| webgl | WebGLRenderingContextBase | depthMask(flag: GLboolean): void; | 新增 | +| webgl | WebGLRenderingContextBase | depthFunc(func: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | deleteTexture(texture: WebGLTexture \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | deleteShader(shader: WebGLShader \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | deleteRenderbuffer(renderbuffer: WebGLRenderbuffer \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | deleteProgram(program: WebGLProgram \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | deleteFramebuffer(framebuffer: WebGLFramebuffer \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | deleteBuffer(buffer: WebGLBuffer \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | cullFace(mode: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | createTexture(): WebGLTexture \| null; | 新增 | +| webgl | WebGLRenderingContextBase | createShader(type: GLenum): WebGLShader \| null; | 新增 | +| webgl | WebGLRenderingContextBase | createRenderbuffer(): WebGLRenderbuffer \| null; | 新增 | +| webgl | WebGLRenderingContextBase | createProgram(): WebGLProgram \| null; | 新增 | +| webgl | WebGLRenderingContextBase | createFramebuffer(): WebGLFramebuffer \| null; | 新增 | +| webgl | WebGLRenderingContextBase | createBuffer(): WebGLBuffer \| null; | 新增 | +| webgl | WebGLRenderingContextBase | copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; | 新增 | +| webgl | WebGLRenderingContextBase | copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void; | 新增 | +| webgl | WebGLRenderingContextBase | compileShader(shader: WebGLShader): void; | 新增 | +| webgl | WebGLRenderingContextBase | colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void; | 新增 | +| webgl | WebGLRenderingContextBase | clearStencil(s: GLint): void; | 新增 | +| webgl | WebGLRenderingContextBase | clearDepth(depth: GLclampf): void; | 新增 | +| webgl | WebGLRenderingContextBase | clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; | 新增 | +| webgl | WebGLRenderingContextBase | clear(mask: GLbitfield): void; | 新增 | +| webgl | WebGLRenderingContextBase | checkFramebufferStatus(target: GLenum): GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | blendFunc(sfactor: GLenum, dfactor: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | blendEquation(mode: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; | 新增 | +| webgl | WebGLRenderingContextBase | bindTexture(target: GLenum, texture: WebGLTexture \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | bindBuffer(target: GLenum, buffer: WebGLBuffer \| null): void; | 新增 | +| webgl | WebGLRenderingContextBase | bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void; | 新增 | +| webgl | WebGLRenderingContextBase | attachShader(program: WebGLProgram, shader: WebGLShader): void; | 新增 | +| webgl | WebGLRenderingContextBase | activeTexture(texture: GLenum): void; | 新增 | +| webgl | WebGLRenderingContextBase | getExtension(name: string): any; | 新增 | +| webgl | WebGLRenderingContextBase | getSupportedExtensions(): string[] \| null; | 新增 | +| webgl | WebGLRenderingContextBase | isContextLost(): boolean; | 新增 | +| webgl | WebGLRenderingContextBase | getContextAttributes(): WebGLContextAttributes \| null; | 新增 | +| webgl | WebGLRenderingContextBase | readonly drawingBufferHeight: GLsizei; | 新增 | +| webgl | WebGLRenderingContextBase | readonly drawingBufferWidth: GLsizei; | 新增 | +| webgl | WebGLRenderingContextBase | readonly canvas: HTMLCanvasElement \| OffscreenCanvas; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BROWSER_DEFAULT_WEBGL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CONTEXT_LOST_WEBGL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNPACK_FLIP_Y_WEBGL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INVALID_FRAMEBUFFER_OPERATION: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_RENDERBUFFER_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_BINDING: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_BINDING: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_UNSUPPORTED: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_COMPLETE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly NONE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_STENCIL_ATTACHMENT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_ATTACHMENT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_ATTACHMENT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly COLOR_ATTACHMENT0: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_STENCIL_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_DEPTH_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_ALPHA_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_BLUE_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_GREEN_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_RED_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_HEIGHT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER_WIDTH: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_STENCIL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_INDEX8: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_COMPONENT16: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RGB565: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RGB5_A1: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RGBA4: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERBUFFER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAMEBUFFER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly HIGH_INT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MEDIUM_INT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LOW_INT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly HIGH_FLOAT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MEDIUM_FLOAT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LOW_FLOAT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly COMPILE_STATUS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SAMPLER_CUBE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SAMPLER_2D: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FLOAT_MAT4: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FLOAT_MAT3: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FLOAT_MAT2: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BOOL_VEC4: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BOOL_VEC3: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BOOL_VEC2: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BOOL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INT_VEC4: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INT_VEC3: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INT_VEC2: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FLOAT_VEC4: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FLOAT_VEC3: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FLOAT_VEC2: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MIRRORED_REPEAT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CLAMP_TO_EDGE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly REPEAT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ACTIVE_TEXTURE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE31: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE30: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE29: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE28: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE27: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE26: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE25: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE24: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE23: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE22: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE21: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE20: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE19: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE18: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE17: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE16: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE15: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE14: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE13: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE12: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE11: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE10: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE9: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE8: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE7: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE6: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE5: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE4: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE3: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE2: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE1: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE0: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_BINDING_CUBE_MAP: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_CUBE_MAP: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_2D: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_WRAP_T: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_WRAP_S: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_MIN_FILTER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_MAG_FILTER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LINEAR_MIPMAP_LINEAR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly NEAREST_MIPMAP_LINEAR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LINEAR_MIPMAP_NEAREST: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly NEAREST_MIPMAP_NEAREST: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LINEAR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly NEAREST: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VERSION: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RENDERER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VENDOR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DECR_WRAP: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INCR_WRAP: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INVERT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DECR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INCR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly REPLACE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly KEEP: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ALWAYS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly GEQUAL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly NOTEQUAL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly GREATER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LEQUAL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly EQUAL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LESS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly NEVER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CURRENT_PROGRAM: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SHADING_LANGUAGE_VERSION: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ACTIVE_ATTRIBUTES: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ACTIVE_UNIFORMS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ATTACHED_SHADERS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VALIDATE_STATUS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LINK_STATUS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DELETE_STATUS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SHADER_TYPE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_TEXTURE_IMAGE_UNITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_VARYING_VECTORS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_VERTEX_ATTRIBS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VERTEX_SHADER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRAGMENT_SHADER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNSIGNED_SHORT_5_6_5: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNSIGNED_SHORT_5_5_5_1: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNSIGNED_SHORT_4_4_4_4: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LUMINANCE_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LUMINANCE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RGBA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RGB: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_COMPONENT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FLOAT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNSIGNED_INT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNSIGNED_SHORT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SHORT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNSIGNED_BYTE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BYTE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly GENERATE_MIPMAP_HINT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly NICEST: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FASTEST: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DONT_CARE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly COMPRESSED_TEXTURE_FORMATS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SAMPLE_COVERAGE_INVERT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SAMPLE_COVERAGE_VALUE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SAMPLES: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SAMPLE_BUFFERS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TEXTURE_BINDING_2D: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly POLYGON_OFFSET_FACTOR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly POLYGON_OFFSET_UNITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_BITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_BITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ALPHA_BITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLUE_BITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly GREEN_BITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly RED_BITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SUBPIXEL_BITS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_VIEWPORT_DIMS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly MAX_TEXTURE_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly PACK_ALIGNMENT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly UNPACK_ALIGNMENT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly COLOR_WRITEMASK: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly COLOR_CLEAR_VALUE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SCISSOR_BOX: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly VIEWPORT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_BACK_WRITEMASK: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_BACK_VALUE_MASK: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_BACK_REF: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_BACK_FAIL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_BACK_FUNC: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_WRITEMASK: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_VALUE_MASK: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_REF: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_PASS_DEPTH_PASS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_PASS_DEPTH_FAIL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_FAIL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_FUNC: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_CLEAR_VALUE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_FUNC: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_CLEAR_VALUE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_WRITEMASK: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_RANGE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRONT_FACE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CULL_FACE_MODE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ALIASED_LINE_WIDTH_RANGE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ALIASED_POINT_SIZE_RANGE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LINE_WIDTH: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CCW: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CW: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly OUT_OF_MEMORY: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INVALID_OPERATION: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INVALID_VALUE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly INVALID_ENUM: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly NO_ERROR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SAMPLE_COVERAGE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly POLYGON_OFFSET_FILL: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SCISSOR_TEST: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_TEST: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_TEST: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DITHER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLEND: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CULL_FACE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRONT_AND_BACK: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BACK: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FRONT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CURRENT_VERTEX_ATTRIB: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BUFFER_USAGE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BUFFER_SIZE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DYNAMIC_DRAW: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STATIC_DRAW: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STREAM_DRAW: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ARRAY_BUFFER_BINDING: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ELEMENT_ARRAY_BUFFER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ARRAY_BUFFER: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLEND_COLOR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ONE_MINUS_CONSTANT_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CONSTANT_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ONE_MINUS_CONSTANT_COLOR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly CONSTANT_COLOR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLEND_SRC_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLEND_DST_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLEND_SRC_RGB: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLEND_DST_RGB: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FUNC_REVERSE_SUBTRACT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FUNC_SUBTRACT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLEND_EQUATION_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLEND_EQUATION_RGB: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly BLEND_EQUATION: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly FUNC_ADD: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SRC_ALPHA_SATURATE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ONE_MINUS_DST_COLOR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DST_COLOR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ONE_MINUS_DST_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DST_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ONE_MINUS_SRC_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SRC_ALPHA: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ONE_MINUS_SRC_COLOR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly SRC_COLOR: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ONE: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly ZERO: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TRIANGLE_FAN: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TRIANGLE_STRIP: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly TRIANGLES: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LINE_STRIP: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LINE_LOOP: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly LINES: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly POINTS: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly COLOR_BUFFER_BIT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly STENCIL_BUFFER_BIT: GLenum; | 新增 | +| webgl | WebGLRenderingContextBase | readonly DEPTH_BUFFER_BIT: GLenum; | 新增 | +| webgl | WebGLShaderPrecisionFormat | readonly precision: GLint; | 新增 | +| webgl | WebGLShaderPrecisionFormat | readonly rangeMax: GLint; | 新增 | +| webgl | WebGLShaderPrecisionFormat | readonly rangeMin: GLint; | 新增 | +| webgl | WebGLActiveInfo | readonly name: string; | 新增 | +| webgl | WebGLActiveInfo | readonly type: GLenum; | 新增 | +| webgl | WebGLActiveInfo | readonly size: GLint; | 新增 | +| webgl | WebGLContextAttributes | desynchronized?: boolean; | 新增 | +| webgl | WebGLContextAttributes | failIfMajorPerformanceCaveat?: boolean; | 新增 | +| webgl | WebGLContextAttributes | powerPreference?: WebGLPowerPreference; | 新增 | +| webgl | WebGLContextAttributes | preserveDrawingBuffer?: boolean; | 新增 | +| webgl | WebGLContextAttributes | premultipliedAlpha?: boolean; | 新增 | +| webgl | WebGLContextAttributes | antialias?: boolean; | 新增 | +| webgl | WebGLContextAttributes | stencil?: boolean; | 新增 | +| webgl | WebGLContextAttributes | depth?: boolean; | 新增 | +| webgl | WebGLContextAttributes | alpha?: boolean; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc.md index dce4c7f9e0..a12057932b 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-misc.md @@ -1,14 +1,218 @@ -# xxx子系统JS API变更 +# 杂散软件服务子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,杂散软件服务子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.wallpaper | RgbaColor | alpha: number; | 新增 | +| ohos.wallpaper | RgbaColor | blue: number; | 新增 | +| ohos.wallpaper | RgbaColor | green: number; | 新增 | +| ohos.wallpaper | RgbaColor | red: number; | 新增 | +| ohos.wallpaper | wallpaper | function off(type: 'colorChange', callback?: (colors: Array, wallpaperType: WallpaperType) => void): void; | 新增 | +| ohos.wallpaper | wallpaper | function on(type: 'colorChange', callback: (colors: Array, wallpaperType: WallpaperType) => void): void; | 新增 | +| ohos.wallpaper | wallpaper | function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback): void;
function setWallpaper(source: string \| image.PixelMap, wallpaperType: WallpaperType): Promise; | 新增 | +| ohos.wallpaper | wallpaper | function reset(wallpaperType: WallpaperType, callback: AsyncCallback): void;
function reset(wallpaperType: WallpaperType): Promise; | 新增 | +| ohos.wallpaper | wallpaper | function isOperationAllowed(callback: AsyncCallback): void;
function isOperationAllowed(): Promise; | 新增 | +| ohos.wallpaper | wallpaper | function isChangePermitted(callback: AsyncCallback): void;
function isChangePermitted(): Promise; | 新增 | +| ohos.wallpaper | wallpaper | function getMinWidth(callback: AsyncCallback): void;
function getMinWidth(): Promise; | 新增 | +| ohos.wallpaper | wallpaper | function getMinHeight(callback: AsyncCallback): void;
function getMinHeight(): Promise; | 新增 | +| ohos.wallpaper | wallpaper | function getFile(wallpaperType: WallpaperType, callback: AsyncCallback): void;
function getFile(wallpaperType: WallpaperType): Promise; | 新增 | +| ohos.wallpaper | wallpaper | function getId(wallpaperType: WallpaperType, callback: AsyncCallback): void;
function getId(wallpaperType: WallpaperType): Promise; | 新增 | +| ohos.wallpaper | wallpaper | function getColors(wallpaperType: WallpaperType, callback: AsyncCallback>): void;
function getColors(wallpaperType: WallpaperType): Promise>; | 新增 | +| ohos.wallpaper | WallpaperType | WALLPAPER_LOCKSCREEN | 新增 | +| ohos.wallpaper | WallpaperType | WALLPAPER_SYSTEM | 新增 | +| ohos.systemTime | systemTime | function getTimezone(callback: AsyncCallback): void;
function getTimezone(): Promise; | 新增 | +| ohos.systemTime | systemTime | function getDate(callback: AsyncCallback): void;
function getDate(): Promise; | 新增 | +| ohos.systemTime | systemTime | function getRealTime(isNano?: boolean, callback: AsyncCallback): void;
function getRealTime(isNano?: boolean): Promise; | 新增 | +| ohos.systemTime | systemTime | function getRealActiveTime(isNano?: boolean, callback: AsyncCallback): void;
function getRealActiveTime(isNano?: boolean): Promise; | 新增 | +| ohos.systemTime | systemTime | function getCurrentTime(isNano?: boolean, callback: AsyncCallback): void;
function getCurrentTime(isNano?: boolean): Promise; | 新增 | +| ohos.screenLock | screenLock | function unlockScreen(callback: AsyncCallback): void;
function unlockScreen():Promise; | 新增 | +| ohos.screenLock | screenLock | function isSecureMode(callback: AsyncCallback): void;
function isSecureMode(): Promise; | 新增 | +| ohos.screenLock | screenLock | function isScreenLocked(callback: AsyncCallback): void;
function isScreenLocked(): Promise; | 新增 | +| ohos.request | UploadTask | remove(callback: AsyncCallback): void;
remove(): Promise; | 新增 | +| ohos.request | UploadTask | off(type: 'headerReceive', callback?: (header: object) => void): void; | 新增 | +| ohos.request | UploadTask | on(type: 'headerReceive', callback: (header: object) => void): void; | 新增 | +| ohos.request | UploadTask | off(type: 'progress', callback?: (uploadedSize: number, totalSize: number) => void): void; | 新增 | +| ohos.request | UploadTask | on(type: 'progress', callback: (uploadedSize: number, totalSize: number) => void): void; | 新增 | +| ohos.request | UploadConfig | data: Array; | 新增 | +| ohos.request | UploadConfig | files: Array; | 新增 | +| ohos.request | UploadConfig | method: string; | 新增 | +| ohos.request | UploadConfig | header: Object; | 新增 | +| ohos.request | UploadConfig | url: string; | 新增 | +| ohos.request | RequestData | value: string; | 新增 | +| ohos.request | RequestData | name: string; | 新增 | +| ohos.request | File | type: string; | 新增 | +| ohos.request | File | uri: string; | 新增 | +| ohos.request | File | name: string; | 新增 | +| ohos.request | File | filename: string; | 新增 | +| ohos.request | DownloadTask | queryMimeType(callback: AsyncCallback): void;
queryMimeType(): Promise; | 新增 | +| ohos.request | DownloadTask | query(callback: AsyncCallback): void;
query(): Promise; | 新增 | +| ohos.request | DownloadTask | resume(callback: AsyncCallback): void;
resume(): Promise; | 新增 | +| ohos.request | DownloadTask | pause(callback: AsyncCallback): void;
pause(): Promise; | 新增 | +| ohos.request | DownloadTask | remove(callback: AsyncCallback): void;
remove(): Promise; | 新增 | +| ohos.request | DownloadTask | off(type: 'fail', callback?: (err: number) => void): void; | 新增 | +| ohos.request | DownloadTask | on(type: 'fail', callback: (err: number) => void): void; | 新增 | +| ohos.request | DownloadTask | off(type: 'complete' \| 'pause' \| 'remove', callback?: () => void): void; | 新增 | +| ohos.request | DownloadTask | off(type: 'complete' \| 'pause' \| 'remove', callback?: () => void): void; | 新增 | +| ohos.request | DownloadTask | off(type: 'complete' \| 'pause' \| 'remove', callback?: () => void): void; | 新增 | +| ohos.request | DownloadTask | on(type: 'complete' \| 'pause' \| 'remove', callback: () => void): void; | 新增 | +| ohos.request | DownloadTask | on(type: 'complete' \| 'pause' \| 'remove', callback: () => void): void; | 新增 | +| ohos.request | DownloadTask | on(type: 'complete' \| 'pause' \| 'remove', callback: () => void): void; | 新增 | +| ohos.request | DownloadTask | off(type: 'progress', callback?: (receivedSize: number, totalSize: number) => void): void; | 新增 | +| ohos.request | DownloadTask | on(type: 'progress', callback: (receivedSize: number, totalSize: number) => void): void; | 新增 | +| ohos.request | DownloadInfo | downloadTotalBytes: number; | 新增 | +| ohos.request | DownloadInfo | downloadTitle: string; | 新增 | +| ohos.request | DownloadInfo | targetURI: string; | 新增 | +| ohos.request | DownloadInfo | status: number; | 新增 | +| ohos.request | DownloadInfo | pausedReason: number; | 新增 | +| ohos.request | DownloadInfo | filePath: string; | 新增 | +| ohos.request | DownloadInfo | fileName: string; | 新增 | +| ohos.request | DownloadInfo | failedReason: number; | 新增 | +| ohos.request | DownloadInfo | downloadId: number; | 新增 | +| ohos.request | DownloadInfo | downloadedBytes: number; | 新增 | +| ohos.request | DownloadInfo | description: string; | 新增 | +| ohos.request | DownloadConfig | title?: string; | 新增 | +| ohos.request | DownloadConfig | filePath?: string; | 新增 | +| ohos.request | DownloadConfig | networkType?: number; | 新增 | +| ohos.request | DownloadConfig | description?: string; | 新增 | +| ohos.request | DownloadConfig | enableRoaming?: boolean; | 新增 | +| ohos.request | DownloadConfig | enableMetered?: boolean; | 新增 | +| ohos.request | DownloadConfig | header?: Object; | 新增 | +| ohos.request | DownloadConfig | url: string; | 新增 | +| ohos.request | request | function upload(config: UploadConfig, callback: AsyncCallback): void;
function upload(config: UploadConfig): Promise; | 新增 | +| ohos.request | request | function download(config: DownloadConfig, callback: AsyncCallback): void;
function download(config: DownloadConfig): Promise; | 新增 | +| ohos.request | request | const SESSION_SUCCESSFUL: number; | 新增 | +| ohos.request | request | const SESSION_RUNNING: number; | 新增 | +| ohos.request | request | const SESSION_PENDING: number; | 新增 | +| ohos.request | request | const SESSION_PAUSED: number; | 新增 | +| ohos.request | request | const SESSION_FAILED: number; | 新增 | +| ohos.request | request | const PAUSED_WAITING_TO_RETRY: number; | 新增 | +| ohos.request | request | const PAUSED_WAITING_FOR_NETWORK: number; | 新增 | +| ohos.request | request | const PAUSED_UNKNOWN: number; | 新增 | +| ohos.request | request | const PAUSED_QUEUED_FOR_WIFI: number; | 新增 | +| ohos.request | request | const ERROR_UNKNOWN: number; | 新增 | +| ohos.request | request | const ERROR_UNHANDLED_HTTP_CODE: number; | 新增 | +| ohos.request | request | const ERROR_TOO_MANY_REDIRECTS: number; | 新增 | +| ohos.request | request | const ERROR_INSUFFICIENT_SPACE: number; | 新增 | +| ohos.request | request | const ERROR_HTTP_DATA_ERROR: number; | 新增 | +| ohos.request | request | const ERROR_FILE_ERROR: number; | 新增 | +| ohos.request | request | const ERROR_FILE_ALREADY_EXISTS: number; | 新增 | +| ohos.request | request | const ERROR_DEVICE_NOT_FOUND: number; | 新增 | +| ohos.request | request | const ERROR_CANNOT_RESUME: number; | 新增 | +| ohos.request | request | const NETWORK_WIFI: number; | 新增 | +| ohos.request | request | const NETWORK_MOBILE: number; | 新增 | +| ohos.pasteboard | SystemPasteboard | setPasteData(data: PasteData, callback: AsyncCallback): void;
setPasteData(data: PasteData): Promise; | 新增 | +| ohos.pasteboard | SystemPasteboard | hasPasteData(callback: AsyncCallback): void;
hasPasteData(): Promise; | 新增 | +| ohos.pasteboard | SystemPasteboard | getPasteData(callback: AsyncCallback): void;
getPasteData(): Promise; | 新增 | +| ohos.pasteboard | SystemPasteboard | clear(callback: AsyncCallback): void;
clear(): Promise; | 新增 | +| ohos.pasteboard | SystemPasteboard | off(type: 'update', callback?: () => void): void; | 新增 | +| ohos.pasteboard | SystemPasteboard | on(type: 'update', callback: () => void): void; | 新增 | +| ohos.pasteboard | PasteData | replaceRecordAt(index: number, record: PasteDataRecord): boolean; | 新增 | +| ohos.pasteboard | PasteData | removeRecordAt(index: number): boolean; | 新增 | +| ohos.pasteboard | PasteData | hasMimeType(mimeType: string): boolean; | 新增 | +| ohos.pasteboard | PasteData | getTag(): string; | 新增 | +| ohos.pasteboard | PasteData | getRecordCount(): number; | 新增 | +| ohos.pasteboard | PasteData | getRecordAt(index: number): PasteDataRecord; | 新增 | +| ohos.pasteboard | PasteData | getProperty(): PasteDataProperty; | 新增 | +| ohos.pasteboard | PasteData | getPrimaryUri(): string; | 新增 | +| ohos.pasteboard | PasteData | getPrimaryText(): string; | 新增 | +| ohos.pasteboard | PasteData | getPrimaryMimeType(): string; | 新增 | +| ohos.pasteboard | PasteData | getPrimaryWant(): Want; | 新增 | +| ohos.pasteboard | PasteData | getPrimaryHtml(): string; | 新增 | +| ohos.pasteboard | PasteData | getMimeTypes(): Array; | 新增 | +| ohos.pasteboard | PasteData | addUriRecord(uri: string): void; | 新增 | +| ohos.pasteboard | PasteData | addTextRecord(text: string): void; | 新增 | +| ohos.pasteboard | PasteData | addRecord(record: PasteDataRecord): void; | 新增 | +| ohos.pasteboard | PasteData | addWantRecord(want: Want): void; | 新增 | +| ohos.pasteboard | PasteData | addHtmlRecord(htmlText: string): void; | 新增 | +| ohos.pasteboard | PasteDataRecord | convertToText(callback: AsyncCallback): void;
convertToText(): Promise; | 新增 | +| ohos.pasteboard | PasteDataRecord | uri: string; | 新增 | +| ohos.pasteboard | PasteDataRecord | plainText: string; | 新增 | +| ohos.pasteboard | PasteDataRecord | mimeType: string; | 新增 | +| ohos.pasteboard | PasteDataRecord | want: Want; | 新增 | +| ohos.pasteboard | PasteDataRecord | htmlText: string; | 新增 | +| ohos.pasteboard | PasteDataProperty | localOnly: boolean; | 新增 | +| ohos.pasteboard | PasteDataProperty | readonly timestamp: number; | 新增 | +| ohos.pasteboard | PasteDataProperty | tag: string; | 新增 | +| ohos.pasteboard | PasteDataProperty | readonly mimeTypes: Array; | 新增 | +| ohos.pasteboard | PasteDataProperty | additions: { [key: string]: object } | 新增 | +| ohos.pasteboard | pasteboard | function getSystemPasteboard(): SystemPasteboard; | 新增 | +| ohos.pasteboard | pasteboard | function createUriRecord(uri: string): PasteDataRecord; | 新增 | +| ohos.pasteboard | pasteboard | function createPlainTextRecord(text: string): PasteDataRecord; | 新增 | +| ohos.pasteboard | pasteboard | function createWantRecord(want: Want): PasteDataRecord; | 新增 | +| ohos.pasteboard | pasteboard | function createHtmlTextRecord(htmlText: string): PasteDataRecord; | 新增 | +| ohos.pasteboard | pasteboard | function createUriData(uri: string): PasteData; | 新增 | +| ohos.pasteboard | pasteboard | function createPlainTextData(text: string): PasteData; | 新增 | +| ohos.pasteboard | pasteboard | function createWantData(want: Want): PasteData; | 新增 | +| ohos.pasteboard | pasteboard | function createHtmlData(htmlText: string): PasteData; | 新增 | +| ohos.pasteboard | pasteboard | const MIMETYPE_TEXT_URI: string; | 新增 | +| ohos.pasteboard | pasteboard | const MIMETYPE_TEXT_PLAIN: string; | 新增 | +| ohos.pasteboard | pasteboard | const MIMETYPE_TEXT_WANT: string; | 新增 | +| ohos.pasteboard | pasteboard | const MIMETYPE_TEXT_HTML: string; | 新增 | +| ohos.pasteboard | pasteboard | const MAX_RECORD_NUM: number; | 新增 | +| ohos.inputmethodengine | KeyEvent | readonly keyAction: number; | 新增 | +| ohos.inputmethodengine | KeyEvent | readonly keyCode: number; | 新增 | +| ohos.inputmethodengine | EditorAttribute | readonly enterKeyType: number; | 新增 | +| ohos.inputmethodengine | EditorAttribute | readonly inputPattern: number; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | off(type: 'textChange', callback?: (text: string) => void): void; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | on(type: 'textChange', callback: (text: string) => void): void; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | off(type: 'selectionChange', callback?: (oldBegin: number, oldEnd: number, newBegin: number, newEnd: number) => void): void; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | on(type: 'selectionChange', callback: (oldBegin: number, oldEnd: number, newBegin: number, newEnd: number) => void): void; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | off(type: 'cursorContextChange', callback?: (x: number, y: number, height: number) => void): void; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | on(type: 'cursorContextChange', callback: (x: number, y: number, height: number) => void): void; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | off(type: 'keyDown'\|'keyUp', callback?: (event: KeyEvent) => boolean): void; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | off(type: 'keyDown'\|'keyUp', callback?: (event: KeyEvent) => boolean): void; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | on(type: 'keyDown'\|'keyUp', callback: (event: KeyEvent) => boolean): void; | 新增 | +| ohos.inputmethodengine | KeyboardDelegate | on(type: 'keyDown'\|'keyUp', callback: (event: KeyEvent) => boolean): void; | 新增 | +| ohos.inputmethodengine | TextInputClient | getEditorAttribute(callback: AsyncCallback): void;
getEditorAttribute(): Promise; | 新增 | +| ohos.inputmethodengine | TextInputClient | getBackward(length: number, callback: AsyncCallback): void;
getBackward(length: number): Promise; | 新增 | +| ohos.inputmethodengine | TextInputClient | getForward(length: number, callback: AsyncCallback): void;
getForward(length: number): Promise; | 新增 | +| ohos.inputmethodengine | TextInputClient | insertText(text: string, callback: AsyncCallback): void;
insertText(text: string): Promise; | 新增 | +| ohos.inputmethodengine | TextInputClient | deleteBackward(length: number, callback: AsyncCallback): void;
deleteBackward(length: number): Promise; | 新增 | +| ohos.inputmethodengine | TextInputClient | deleteForward(length: number, callback: AsyncCallback): void;
deleteForward(length: number): Promise; | 新增 | +| ohos.inputmethodengine | TextInputClient | sendKeyFunction(action: number, callback: AsyncCallback): void;
sendKeyFunction(action: number): Promise; | 新增 | +| ohos.inputmethodengine | InputMethodEngine | off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void; | 新增 | +| ohos.inputmethodengine | InputMethodEngine | off(type: 'keyboardShow'\|'keyboardHide', callback?: () => void): void; | 新增 | +| ohos.inputmethodengine | InputMethodEngine | on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void; | 新增 | +| ohos.inputmethodengine | InputMethodEngine | on(type: 'keyboardShow'\|'keyboardHide', callback: () => void): void; | 新增 | +| ohos.inputmethodengine | InputMethodEngine | off(type: 'inputStart', callback?: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void; | 新增 | +| ohos.inputmethodengine | InputMethodEngine | on(type: 'inputStart', callback: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void; | 新增 | +| ohos.inputmethodengine | KeyboardController | hideKeyboard(callback: AsyncCallback): void;
hideKeyboard(): Promise; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | function createKeyboardDelegate(): KeyboardDelegate; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | function getInputMethodEngine(): InputMethodEngine; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const OPTION_NO_FULLSCREEN: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const OPTION_MULTI_LINE: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const OPTION_AUTO_WORDS: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const OPTION_AUTO_CAP_SENTENCES: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const OPTION_AUTO_CAP_CHARACTERS: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const OPTION_NONE: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const OPTION_ASCII: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const DISPLAY_MODE_FULL: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const DISPLAY_MODE_PART: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const FLAG_SINGLE_LINE: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const FLAG_SELECTING: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const PATTERN_PASSWORD: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const PATTERN_URI: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const PATTERN_EMAIL: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const PATTERN_DATETIME: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const PATTERN_PHONE: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const PATTERN_NUMBER: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const PATTERN_TEXT: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const PATTERN_NULL: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const ENTER_KEY_TYPE_PREVIOUS: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const ENTER_KEY_TYPE_DONE: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const ENTER_KEY_TYPE_NEXT: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const ENTER_KEY_TYPE_SEND: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const ENTER_KEY_TYPE_SEARCH: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const ENTER_KEY_TYPE_GO: number; | 新增 | +| ohos.inputmethodengine | inputMethodEngine | const ENTER_KEY_TYPE_UNSPECIFIED: number; | 新增 | +| ohos.inputmethod | InputMethodProperty | readonly methodId: string; | 新增 | +| ohos.inputmethod | InputMethodProperty | readonly packageName: string; | 新增 | +| ohos.inputmethod | InputMethodController | stopInput(callback: AsyncCallback): void;
stopInput(): Promise; | 新增 | +| ohos.inputmethod | InputMethodSetting | displayOptionalInputMethod(callback: AsyncCallback): void;
displayOptionalInputMethod(): Promise; | 新增 | +| ohos.inputmethod | InputMethodSetting | listInputMethod(callback: AsyncCallback>): void;
listInputMethod(): Promise>; | 新增 | +| ohos.inputmethod | inputMethod | function getInputMethodController(): InputMethodController; | 新增 | +| ohos.inputmethod | inputMethod | function getInputMethodSetting(): InputMethodSetting; | 新增 | +| ohos.inputmethod | inputMethod | const MAX_TYPE_NUM: number | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md index dce4c7f9e0..ce8227af06 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md @@ -1,14 +1,18 @@ -# xxx子系统JS API变更 +# 多模输入子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,多模输入子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.multimodalInput.inputDevice | inputDevice | function getDevice(deviceId: number, callback: AsyncCallback): void;
function getDevice(deviceId: number): Promise; | 新增 | +| ohos.multimodalInput.inputDevice | inputDevice | function getDeviceIds(callback: AsyncCallback>): void;
function getDeviceIds(): Promise>; | 新增 | +| ohos.multimodalInput.inputDevice | InputDeviceData | axisRanges : Array; | 新增 | +| ohos.multimodalInput.inputDevice | InputDeviceData | sources : Array; | 新增 | +| ohos.multimodalInput.inputDevice | InputDeviceData | name: string; | 新增 | +| ohos.multimodalInput.inputDevice | InputDeviceData | id: number; | 新增 | +| ohos.multimodalInput.inputDevice | AxisRange | min: number; | 新增 | +| ohos.multimodalInput.inputDevice | AxisRange | max : number; | 新增 | +| ohos.multimodalInput.inputDevice | AxisRange | axis : AxisType; | 新增 | +| ohos.multimodalInput.inputDevice | AxisRange | source: SourceType; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md index dce4c7f9e0..2b81aaeffe 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md @@ -1,14 +1,423 @@ -# xxx子系统JS API变更 +# 媒体子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,媒体子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.multimedia.mediaLibrary | Size | height: number; | 新增 | +| ohos.multimedia.mediaLibrary | Size | width: number; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | release(callback: AsyncCallback): void;
release(): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | startMediaSelect(option: MediaSelectOption, callback: AsyncCallback>): void;
startMediaSelect(option: MediaSelectOption): Promise>; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | startImagePreview(images: Array, index: number, callback: AsyncCallback): void;
startImagePreview(images: Array, callback: AsyncCallback): void;
startImagePreview(images: Array, index?: number): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | storeMediaAsset(option: MediaAssetOption, callback: AsyncCallback): void;
storeMediaAsset(option: MediaAssetOption): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | getAlbums(options: MediaFetchOptions, callback: AsyncCallback>): void;
getAlbums(options: MediaFetchOptions): Promise>; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback): void;
createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback): void; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | getFileAssets(options: MediaFetchOptions, callback: AsyncCallback): void;
getFileAssets(options: MediaFetchOptions): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | MediaLibrary | getPublicDirectory(type: DirectoryType, callback: AsyncCallback): void;
getPublicDirectory(type: DirectoryType): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | DirectoryType | DIR_DOWNLOAD | 新增 | +| ohos.multimedia.mediaLibrary | DirectoryType | DIR_DOCUMENTS | 新增 | +| ohos.multimedia.mediaLibrary | DirectoryType | DIR_AUDIO | 新增 | +| ohos.multimedia.mediaLibrary | DirectoryType | DIR_IMAGE | 新增 | +| ohos.multimedia.mediaLibrary | DirectoryType | DIR_VIDEO | 新增 | +| ohos.multimedia.mediaLibrary | DirectoryType | DIR_CAMERA = 0 | 新增 | +| ohos.multimedia.mediaLibrary | Album | getFileAssets(callback: AsyncCallback): void;
getFileAssets(options: MediaFetchOptions, callback: AsyncCallback): void;
getFileAssets(options?: MediaFetchOptions): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | Album | commitModify(callback: AsyncCallback): void;
commitModify(): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | Album | readonly coverUri: string; | 新增 | +| ohos.multimedia.mediaLibrary | Album | readonly relativePath: string; | 新增 | +| ohos.multimedia.mediaLibrary | Album | readonly count: number; | 新增 | +| ohos.multimedia.mediaLibrary | Album | readonly dateModified: number; | 新增 | +| ohos.multimedia.mediaLibrary | Album | readonly albumUri: string; | 新增 | +| ohos.multimedia.mediaLibrary | Album | albumName: string; | 新增 | +| ohos.multimedia.mediaLibrary | Album | readonly albumId: number; | 新增 | +| ohos.multimedia.mediaLibrary | FetchFileResult | getAllObject(callback: AsyncCallback>): void;
getAllObject(): Promise>; | 新增 | +| ohos.multimedia.mediaLibrary | FetchFileResult | getPositionObject(index: number, callback: AsyncCallback): void;
getPositionObject(index: number): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FetchFileResult | getLastObject(callback: AsyncCallback): void;
getLastObject(): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FetchFileResult | getNextObject(callback: AsyncCallback): void;
getNextObject(): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FetchFileResult | getFirstObject(callback: AsyncCallback): void;
getFirstObject(): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FetchFileResult | close(): void; | 新增 | +| ohos.multimedia.mediaLibrary | FetchFileResult | isAfterLast(): boolean; | 新增 | +| ohos.multimedia.mediaLibrary | FetchFileResult | getCount(): number; | 新增 | +| ohos.multimedia.mediaLibrary | MediaFetchOptions | extendArgs?: string; | 新增 | +| ohos.multimedia.mediaLibrary | MediaFetchOptions | networkId?: string; | 新增 | +| ohos.multimedia.mediaLibrary | MediaFetchOptions | uri?: string; | 新增 | +| ohos.multimedia.mediaLibrary | MediaFetchOptions | order?: string; | 新增 | +| ohos.multimedia.mediaLibrary | MediaFetchOptions | selectionArgs: Array; | 新增 | +| ohos.multimedia.mediaLibrary | MediaFetchOptions | selections: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | ALBUM_NAME = "bucket_display_name" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | ALBUM_ID = "bucket_id" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | ORIENTATION = "orientation" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | HEIGHT = "height" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | WIDTH = "width" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | DURATION = "duration" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | AUDIOALBUM = "audio_album" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | ARTIST = "artist" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | TITLE = "title" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | DATE_TAKEN = "date_taken" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | DATE_MODIFIED = "date_modified" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | DATE_ADDED = "date_added" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | SIZE = "size" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | MEDIA_TYPE = "media_type" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | MIME_TYPE = "mime_type" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | PARENT = "parent" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | DISPLAY_NAME = "display_name" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | RELATIVE_PATH = "relative_path" | 新增 | +| ohos.multimedia.mediaLibrary | FileKey | ID = "file_id" | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | isTrash(callback: AsyncCallback): void;
isTrash():Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | trash(isTrash: boolean, callback: AsyncCallback): void;
trash(isTrash: boolean): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | isFavorite(callback: AsyncCallback): void;
isFavorite():Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | favorite(isFavorite: boolean, callback: AsyncCallback): void;
favorite(isFavorite: boolean): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | getThumbnail(callback: AsyncCallback): void;
getThumbnail(size: Size, callback: AsyncCallback): void;
getThumbnail(size?: Size): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | close(fd: number, callback: AsyncCallback): void;
close(fd: number): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | open(mode: string, callback: AsyncCallback): void;
open(mode: string): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | commitModify(callback: AsyncCallback): void;
commitModify(): Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | isDirectory(callback: AsyncCallback): void;
isDirectory():Promise; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly albumName: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly albumUri: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly albumId: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly duration: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | orientation: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly height: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly width: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly audioAlbum: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly artist: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly dateTaken: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly dateModified: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly dateAdded: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly size: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly parent: number; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | relativePath: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | title: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | displayName: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly mediaType: MediaType; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly mimeType: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly uri: string; | 新增 | +| ohos.multimedia.mediaLibrary | FileAsset | readonly id: number; | 新增 | +| ohos.multimedia.mediaLibrary | MediaSelectOption | count: number; | 新增 | +| ohos.multimedia.mediaLibrary | MediaSelectOption | type: 'image' \| 'video' \| 'media'; | 新增 | +| ohos.multimedia.mediaLibrary | MediaAssetOption | relativePath?: string; | 新增 | +| ohos.multimedia.mediaLibrary | MediaAssetOption | mimeType: string; | 新增 | +| ohos.multimedia.mediaLibrary | MediaAssetOption | src: string; | 新增 | +| ohos.multimedia.mediaLibrary | MediaType | AUDIO | 新增 | +| ohos.multimedia.mediaLibrary | MediaType | VIDEO | 新增 | +| ohos.multimedia.mediaLibrary | MediaType | IMAGE | 新增 | +| ohos.multimedia.mediaLibrary | MediaType | FILE = 0 | 新增 | +| ohos.multimedia.mediaLibrary | mediaLibrary | function getMediaLibrary(): MediaLibrary;
function getMediaLibrary(context: Context): MediaLibrary; | 新增 | +| ohos.multimedia.media | CodecMimeType | AUDIO_FLAC = 'audio/flac' | 新增 | +| ohos.multimedia.media | CodecMimeType | AUDIO_VORBIS = 'audio/vorbis' | 新增 | +| ohos.multimedia.media | CodecMimeType | AUDIO_AAC = 'audio/mp4a-latm' | 新增 | +| ohos.multimedia.media | CodecMimeType | VIDEO_VP8 = 'video/x-vnd.on2.vp8' | 新增 | +| ohos.multimedia.media | CodecMimeType | VIDEO_MPEG4 = 'video/mp4v-es' | 新增 | +| ohos.multimedia.media | CodecMimeType | VIDEO_MPEG2 = 'video/mpeg2' | 新增 | +| ohos.multimedia.media | CodecMimeType | VIDEO_AVC = 'video/avc' | 新增 | +| ohos.multimedia.media | CodecMimeType | VIDEO_H263 = 'video/h263' | 新增 | +| ohos.multimedia.media | SeekMode | SEEK_PREV_SYNC = 1 | 新增 | +| ohos.multimedia.media | SeekMode | SEEK_NEXT_SYNC = 0 | 新增 | +| ohos.multimedia.media | MediaDescription | [key : string]: Object; | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_AUD_SAMPLE_RATE = "sample_rate" | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_AUD_CHANNEL_COUNT = "channel_count" | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_FRAME_RATE = "frame_rate" | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_HEIGHT = "height" | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_WIDTH = "width" | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_BITRATE = "bitrate" | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_DURATION = "duration" | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_CODEC_MIME = "codec_mime" | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_TRACK_TYPE = "track_type" | 新增 | +| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_TRACK_INDEX = "track_index" | 新增 | +| ohos.multimedia.media | MediaType | MEDIA_TYPE_VID = 1 | 新增 | +| ohos.multimedia.media | MediaType | MEDIA_TYPE_AUD = 0 | 新增 | +| ohos.multimedia.media | ContainerFormatType | CFT_MPEG_4A = "m4a" | 新增 | +| ohos.multimedia.media | ContainerFormatType | CFT_MPEG_4 = "mp4" | 新增 | +| ohos.multimedia.media | VideoPlayer | on(type: 'error', callback: ErrorCallback): void; | 新增 | +| ohos.multimedia.media | VideoPlayer | on(type: 'videoSizeChanged', callback: (width: number, height: number) => void): void; | 新增 | +| ohos.multimedia.media | VideoPlayer | on(type: 'startRenderFrame', callback: Callback): void; | 新增 | +| ohos.multimedia.media | VideoPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void; | 新增 | +| ohos.multimedia.media | VideoPlayer | on(type: 'playbackCompleted', callback: Callback): void; | 新增 | +| ohos.multimedia.media | VideoPlayer | setSpeed(speed:number, callback: AsyncCallback): void;
setSpeed(speed:number): Promise; | 新增 | +| ohos.multimedia.media | VideoPlayer | readonly height: number; | 新增 | +| ohos.multimedia.media | VideoPlayer | readonly width: number; | 新增 | +| ohos.multimedia.media | VideoPlayer | readonly state: VideoPlayState; | 新增 | +| ohos.multimedia.media | VideoPlayer | readonly duration: number; | 新增 | +| ohos.multimedia.media | VideoPlayer | readonly currentTime: number; | 新增 | +| ohos.multimedia.media | VideoPlayer | loop: boolean; | 新增 | +| ohos.multimedia.media | VideoPlayer | url: string; | 新增 | +| ohos.multimedia.media | VideoPlayer | getTrackDescription(callback: AsyncCallback>): void;
getTrackDescription() : Promise>; | 新增 | +| ohos.multimedia.media | VideoPlayer | release(callback: AsyncCallback): void;
release(): Promise; | 新增 | +| ohos.multimedia.media | VideoPlayer | setVolume(vol: number, callback: AsyncCallback): void;
setVolume(vol: number): Promise; | 新增 | +| ohos.multimedia.media | VideoPlayer | seek(timeMs: number, callback: AsyncCallback): void;
seek(timeMs: number, mode:SeekMode, callback: AsyncCallback): void;
seek(timeMs: number, mode?:SeekMode): Promise; | 新增 | +| ohos.multimedia.media | VideoPlayer | reset(callback: AsyncCallback): void;
reset(): Promise; | 新增 | +| ohos.multimedia.media | VideoPlayer | stop(callback: AsyncCallback): void;
stop(): Promise; | 新增 | +| ohos.multimedia.media | VideoPlayer | pause(callback: AsyncCallback): void;
pause(): Promise; | 新增 | +| ohos.multimedia.media | VideoPlayer | play(callback: AsyncCallback): void;
play(): Promise; | 新增 | +| ohos.multimedia.media | VideoPlayer | prepare(callback: AsyncCallback): void;
prepare(): Promise; | 新增 | +| ohos.multimedia.media | VideoPlayer | setDisplaySurface(surfaceId: string, callback: AsyncCallback): void;
setDisplaySurface(surfaceId: string): Promise; | 新增 | +| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_2_00_X = 4 | 新增 | +| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_75_X = 3 | 新增 | +| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_25_X = 2 | 新增 | +| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_00_X = 1 | 新增 | +| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_0_75_X = 0 | 新增 | +| ohos.multimedia.media | AudioRecorder | on(type: 'error', callback: ErrorCallback): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | reset(): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | release(): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | stop(): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | resume(): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | pause(): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | start(): void; | 新增 | +| ohos.multimedia.media | AudioRecorder | prepare(config: AudioRecorderConfig): void; | 新增 | +| ohos.multimedia.media | AudioRecorderConfig | fileFormat?: ContainerFormatType; | 新增 | +| ohos.multimedia.media | AudioRecorderConfig | audioEncoderMime?: CodecMimeType; | 新增 | +| ohos.multimedia.media | AudioRecorderConfig | location?: Location; | 新增 | +| ohos.multimedia.media | AudioRecorderConfig | uri: string; | 新增 | +| ohos.multimedia.media | AudioRecorderConfig | format?: AudioOutputFormat; | 新增 | +| ohos.multimedia.media | AudioRecorderConfig | numberOfChannels?: number; | 新增 | +| ohos.multimedia.media | AudioRecorderConfig | audioSampleRate?: number; | 新增 | +| ohos.multimedia.media | AudioRecorderConfig | audioEncodeBitRate?: number; | 新增 | +| ohos.multimedia.media | AudioRecorderConfig | audioEncoder?: AudioEncoder; | 新增 | +| ohos.multimedia.media | Location | longitude: number; | 新增 | +| ohos.multimedia.media | Location | latitude: number; | 新增 | +| ohos.multimedia.media | AudioOutputFormat | AAC_ADTS = 6 | 新增 | +| ohos.multimedia.media | AudioOutputFormat | AMR_WB = 4 | 新增 | +| ohos.multimedia.media | AudioOutputFormat | AMR_NB = 3 | 新增 | +| ohos.multimedia.media | AudioOutputFormat | MPEG_4 = 2 | 新增 | +| ohos.multimedia.media | AudioOutputFormat | DEFAULT = 0 | 新增 | +| ohos.multimedia.media | AudioEncoder | HE_AAC = 4 | 新增 | +| ohos.multimedia.media | AudioEncoder | AAC_LC = 3 | 新增 | +| ohos.multimedia.media | AudioEncoder | AMR_WB = 2 | 新增 | +| ohos.multimedia.media | AudioEncoder | AMR_NB = 1 | 新增 | +| ohos.multimedia.media | AudioEncoder | DEFAULT = 0 | 新增 | +| ohos.multimedia.media | AudioPlayer | on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void; | 新增 | +| ohos.multimedia.media | AudioPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void; | 新增 | +| ohos.multimedia.media | AudioPlayer | getTrackDescription(callback: AsyncCallback>): void;
getTrackDescription() : Promise>; | 新增 | +| ohos.multimedia.media | AudioPlayer | reset(): void; | 新增 | +| ohos.multimedia.media | BufferingInfoType | CACHED_DURATION = 4 | 新增 | +| ohos.multimedia.media | BufferingInfoType | BUFFERING_PERCENT = 3 | 新增 | +| ohos.multimedia.media | BufferingInfoType | BUFFERING_END = 2 | 新增 | +| ohos.multimedia.media | BufferingInfoType | BUFFERING_START = 1 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_UNSUPPORTED = 9 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_INVALID_STATE = 8 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_SERVICE_DIED = 7 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_UNKNOWN = 6 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_TIMEOUT = 5 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_IO = 4 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_INVALID_VAL = 3 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_OPERATION_NOT_PERMIT = 2 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_NO_MEMORY = 1 | 新增 | +| ohos.multimedia.media | MediaErrorCode | MSERR_OK = 0 | 新增 | +| ohos.multimedia.media | media | function createVideoPlayer(callback: AsyncCallback): void;
function createVideoPlayer() : Promise; | 新增 | +| ohos.multimedia.media | media | function createAudioRecorder(): AudioRecorder; | 新增 | +| ohos.multimedia.image | ImagePacker | readonly supportedFormats: Array; | 新增 | +| ohos.multimedia.image | ImagePacker | release(callback: AsyncCallback): void;
release(): Promise; | 新增 | +| 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; | 新增 | +| ohos.multimedia.image | ImageSource | readonly supportedFormats: Array; | 新增 | +| ohos.multimedia.image | ImageSource | release(callback: AsyncCallback): void;
release(): Promise; | 新增 | +| ohos.multimedia.image | ImageSource | getImageProperty(key:string, options?: GetImagePropertyOptions): Promise;
getImageProperty(key:string, callback: AsyncCallback): void;
getImageProperty(key:string, options: GetImagePropertyOptions, callback: AsyncCallback): void; | 新增 | +| ohos.multimedia.image | ImageSource | createPixelMap(options?: DecodingOptions): Promise;
createPixelMap(callback: AsyncCallback): void;
createPixelMap(options: DecodingOptions, callback: AsyncCallback): void; | 新增 | +| ohos.multimedia.image | ImageSource | getImageInfo(index: number, callback: AsyncCallback): void;
getImageInfo(callback: AsyncCallback): void;
getImageInfo(index?: number): Promise; | 新增 | +| ohos.multimedia.image | PixelMap | release(callback: AsyncCallback): void;
release(): Promise; | 新增 | +| ohos.multimedia.image | PixelMap | getPixelBytesNumber(): number; | 新增 | +| ohos.multimedia.image | PixelMap | getBytesNumberPerRow(): number; | 新增 | +| ohos.multimedia.image | PixelMap | getImageInfo(): Promise;
getImageInfo(callback: AsyncCallback): void; | 新增 | +| ohos.multimedia.image | PixelMap | writeBufferToPixels(src: ArrayBuffer): Promise;
writeBufferToPixels(src: ArrayBuffer, callback: AsyncCallback): void; | 新增 | +| ohos.multimedia.image | PixelMap | writePixels(area: PositionArea): Promise;
writePixels(area: PositionArea, callback: AsyncCallback): void; | 新增 | +| ohos.multimedia.image | PixelMap | readPixels(area: PositionArea): Promise;
readPixels(area: PositionArea, callback: AsyncCallback): void; | 新增 | +| ohos.multimedia.image | PixelMap | readPixelsToBuffer(dst: ArrayBuffer): Promise;
readPixelsToBuffer(dst: ArrayBuffer, callback: AsyncCallback): void; | 新增 | +| ohos.multimedia.image | PixelMap | readonly isEditable: boolean; | 新增 | +| ohos.multimedia.image | image | function createImagePacker(): ImagePacker; | 新增 | +| ohos.multimedia.image | image | function createImageSource(uri: string): ImageSource;
function createImageSource(fd: number): ImageSource; | 新增 | +| ohos.multimedia.image | image | function createPixelMap(colors: ArrayBuffer, options: InitializationOptions, callback: AsyncCallback): void;
function createPixelMap(colors: ArrayBuffer, options: InitializationOptions): Promise; | 新增 | +| ohos.multimedia.image | InitializationOptions | editable?: boolean; | 新增 | +| ohos.multimedia.image | InitializationOptions | pixelFormat?: PixelMapFormat; | 新增 | +| ohos.multimedia.image | InitializationOptions | size: Size; | 新增 | +| ohos.multimedia.image | DecodingOptions | desiredPixelFormat?: PixelMapFormat; | 新增 | +| ohos.multimedia.image | DecodingOptions | desiredRegion?: Region; | 新增 | +| ohos.multimedia.image | DecodingOptions | desiredSize?: Size; | 新增 | +| ohos.multimedia.image | DecodingOptions | editable?: boolean; | 新增 | +| ohos.multimedia.image | DecodingOptions | rotate?: number; | 新增 | +| ohos.multimedia.image | DecodingOptions | sampleSize?: number; | 新增 | +| ohos.multimedia.image | DecodingOptions | index?: number; | 新增 | +| ohos.multimedia.image | GetImagePropertyOptions | defaultValue?: string; | 新增 | +| ohos.multimedia.image | GetImagePropertyOptions | index?: number; | 新增 | +| ohos.multimedia.image | PackingOption | quality: number; | 新增 | +| ohos.multimedia.image | PackingOption | format: string; | 新增 | +| ohos.multimedia.image | ImageInfo | size: Size; | 新增 | +| ohos.multimedia.image | PositionArea | region: Region; | 新增 | +| ohos.multimedia.image | PositionArea | stride: number; | 新增 | +| ohos.multimedia.image | PositionArea | offset: number; | 新增 | +| ohos.multimedia.image | PositionArea | pixels: ArrayBuffer; | 新增 | +| ohos.multimedia.image | Region | y: number; | 新增 | +| ohos.multimedia.image | Region | x: number; | 新增 | +| ohos.multimedia.image | Region | size: Size; | 新增 | +| ohos.multimedia.image | PropertyKey | GPS_LONGITUDE_REF = "GPSLongitudeRef" | 新增 | +| ohos.multimedia.image | PropertyKey | GPS_LATITUDE_REF = "GPSLatitudeRef" | 新增 | +| ohos.multimedia.image | PropertyKey | GPS_LONGITUDE = "GPSLongitude" | 新增 | +| ohos.multimedia.image | PropertyKey | GPS_LATITUDE = "GPSLatitude" | 新增 | +| ohos.multimedia.image | PropertyKey | IMAGE_WIDTH = "ImageWidth" | 新增 | +| ohos.multimedia.image | PropertyKey | IMAGE_LENGTH = "ImageLength" | 新增 | +| ohos.multimedia.image | PropertyKey | ORIENTATION = "Orientation" | 新增 | +| ohos.multimedia.image | PropertyKey | BITS_PER_SAMPLE = "BitsPerSample" | 新增 | +| ohos.multimedia.image | Size | width: number; | 新增 | +| ohos.multimedia.image | Size | height: number; | 新增 | +| ohos.multimedia.image | PixelMapFormat | RGBA_8888 = 3 | 新增 | +| ohos.multimedia.image | PixelMapFormat | RGB_565 = 2 | 新增 | +| ohos.multimedia.image | PixelMapFormat | UNKNOWN = 0 | 新增 | +| ohos.multimedia.audio | AudioCapturer | on(type: "stateChange", callback: Callback): void; | 新增 | +| ohos.multimedia.audio | AudioCapturer | off(type: "periodReach"): void; | 新增 | +| ohos.multimedia.audio | AudioCapturer | on(type: "periodReach", frame: number, callback: (position: number) => {}): void; | 新增 | +| ohos.multimedia.audio | AudioCapturer | off(type: "markReach"): void; | 新增 | +| ohos.multimedia.audio | AudioCapturer | on(type: "markReach", frame: number, callback: (position: number) => {}): void; | 新增 | +| ohos.multimedia.audio | AudioCapturer | getBufferSize(callback: AsyncCallback): void;
getBufferSize(): Promise; | 新增 | +| ohos.multimedia.audio | AudioCapturer | release(callback: AsyncCallback): void;
release(): Promise; | 新增 | +| ohos.multimedia.audio | AudioCapturer | stop(callback: AsyncCallback): void;
stop(): Promise; | 新增 | +| ohos.multimedia.audio | AudioCapturer | getAudioTime(callback: AsyncCallback): void;
getAudioTime(): Promise; | 新增 | +| ohos.multimedia.audio | AudioCapturer | read(size: number, isBlockingRead: boolean, callback: AsyncCallback): void;
read(size: number, isBlockingRead: boolean): Promise; | 新增 | +| ohos.multimedia.audio | AudioCapturer | start(callback: AsyncCallback): void;
start(): Promise; | 新增 | +| ohos.multimedia.audio | AudioCapturer | getStreamInfo(callback: AsyncCallback): void;
getStreamInfo(): Promise; | 新增 | +| ohos.multimedia.audio | AudioCapturer | getCapturerInfo(callback: AsyncCallback): void;
getCapturerInfo(): Promise; | 新增 | +| ohos.multimedia.audio | AudioCapturer | readonly state: AudioState; | 新增 | +| ohos.multimedia.audio | AudioCapturerOptions | capturerInfo: AudioCapturerInfo; | 新增 | +| ohos.multimedia.audio | AudioCapturerOptions | streamInfo: AudioStreamInfo; | 新增 | +| ohos.multimedia.audio | AudioCapturerInfo | capturerFlags: number; | 新增 | +| ohos.multimedia.audio | AudioCapturerInfo | source: SourceType; | 新增 | +| ohos.multimedia.audio | SourceType | SOURCE_TYPE_VOICE_COMMUNICATION = 7 | 新增 | +| ohos.multimedia.audio | SourceType | SOURCE_TYPE_MIC = 0 | 新增 | +| ohos.multimedia.audio | SourceType | SOURCE_TYPE_INVALID = -1 | 新增 | +| ohos.multimedia.audio | AudioRenderer | on(type: "stateChange", callback: Callback): void; | 新增 | +| ohos.multimedia.audio | AudioRenderer | off(type: "periodReach"): void; | 新增 | +| ohos.multimedia.audio | AudioRenderer | on(type: "periodReach", frame: number, callback: (position: number) => {}): void; | 新增 | +| ohos.multimedia.audio | AudioRenderer | off(type: "markReach"): void; | 新增 | +| ohos.multimedia.audio | AudioRenderer | on(type: "markReach", frame: number, callback: (position: number) => {}): void; | 新增 | +| ohos.multimedia.audio | AudioRenderer | getRenderRate(callback: AsyncCallback): void;
getRenderRate(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | setRenderRate(rate: AudioRendererRate, callback: AsyncCallback): void;
setRenderRate(rate: AudioRendererRate): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | getBufferSize(callback: AsyncCallback): void;
getBufferSize(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | release(callback: AsyncCallback): void;
release(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | stop(callback: AsyncCallback): void;
stop(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | pause(callback: AsyncCallback): void;
pause(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | drain(callback: AsyncCallback): void;
drain(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | getAudioTime(callback: AsyncCallback): void;
getAudioTime(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | write(buffer: ArrayBuffer, callback: AsyncCallback): void;
write(buffer: ArrayBuffer): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | start(callback: AsyncCallback): void;
start(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | getStreamInfo(callback: AsyncCallback): void;
getStreamInfo(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | getRendererInfo(callback: AsyncCallback): void;
getRendererInfo(): Promise; | 新增 | +| ohos.multimedia.audio | AudioRenderer | readonly state: AudioState; | 新增 | +| ohos.multimedia.audio | DeviceChangeAction | deviceDescriptors: AudioDeviceDescriptors; | 新增 | +| ohos.multimedia.audio | DeviceChangeAction | type: DeviceChangeType; | 新增 | +| ohos.multimedia.audio | AudioInterrupt | pauseWhenDucked: boolean; | 新增 | +| ohos.multimedia.audio | AudioInterrupt | contentType: ContentType; | 新增 | +| ohos.multimedia.audio | AudioInterrupt | streamUsage: StreamUsage; | 新增 | +| ohos.multimedia.audio | InterruptAction | activated?: boolean; | 新增 | +| ohos.multimedia.audio | InterruptAction | hint?: InterruptHint; | 新增 | +| ohos.multimedia.audio | InterruptAction | type?: InterruptType; | 新增 | +| ohos.multimedia.audio | InterruptAction | actionType: InterruptActionType; | 新增 | +| ohos.multimedia.audio | AudioManager | off(type: 'interrupt', interrupt: AudioInterrupt, callback?: Callback): void; | 新增 | +| ohos.multimedia.audio | AudioManager | on(type: 'interrupt', interrupt: AudioInterrupt, callback: Callback): void; | 新增 | +| ohos.multimedia.audio | AudioManager | off(type: 'deviceChange', callback?: Callback): void; | 新增 | +| ohos.multimedia.audio | AudioManager | on(type: 'deviceChange', callback: Callback): void; | 新增 | +| ohos.multimedia.audio | AudioManager | getAudioScene(callback: AsyncCallback): void;
getAudioScene(): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback): void;
isDeviceActive(deviceType: ActiveDeviceType): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback): void;
setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | getAudioParameter(key: string, callback: AsyncCallback): void;
getAudioParameter(key: string): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | setAudioParameter(key: string, value: string, callback: AsyncCallback): void;
setAudioParameter(key: string, value: string): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | getRingerMode(callback: AsyncCallback): void;
getRingerMode(): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | setRingerMode(mode: AudioRingMode, callback: AsyncCallback): void;
setRingerMode(mode: AudioRingMode): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | isMicrophoneMute(callback: AsyncCallback): void;
isMicrophoneMute(): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | setMicrophoneMute(mute: boolean, callback: AsyncCallback): void;
setMicrophoneMute(mute: boolean): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | isActive(volumeType: AudioVolumeType, callback: AsyncCallback): void;
isActive(volumeType: AudioVolumeType): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | isMute(volumeType: AudioVolumeType, callback: AsyncCallback): void;
isMute(volumeType: AudioVolumeType): Promise; | 新增 | +| ohos.multimedia.audio | AudioManager | mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback): void;
mute(volumeType: AudioVolumeType, mute: boolean): Promise; | 新增 | +| ohos.multimedia.audio | AudioScene | AUDIO_SCENE_VOICE_CHAT | 新增 | +| ohos.multimedia.audio | AudioScene | AUDIO_SCENE_DEFAULT = 0 | 新增 | +| ohos.multimedia.audio | DeviceChangeType | DISCONNECT = 1 | 新增 | +| ohos.multimedia.audio | DeviceChangeType | CONNECT = 0 | 新增 | +| ohos.multimedia.audio | InterruptActionType | TYPE_INTERRUPT = 1 | 新增 | +| ohos.multimedia.audio | InterruptActionType | TYPE_ACTIVATED = 0 | 新增 | +| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_UNDUCK = 5 | 新增 | +| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_DUCK = 4 | 新增 | +| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_STOP = 3 | 新增 | +| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_PAUSE = 2 | 新增 | +| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_RESUME = 1 | 新增 | +| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_NONE = 0 | 新增 | +| ohos.multimedia.audio | InterruptType | INTERRUPT_TYPE_END = 2 | 新增 | +| ohos.multimedia.audio | InterruptType | INTERRUPT_TYPE_BEGIN = 1 | 新增 | +| ohos.multimedia.audio | AudioRendererRate | RENDER_RATE_HALF = 2 | 新增 | +| ohos.multimedia.audio | AudioRendererRate | RENDER_RATE_DOUBLE = 1 | 新增 | +| ohos.multimedia.audio | AudioRendererRate | RENDER_RATE_NORMAL = 0 | 新增 | +| ohos.multimedia.audio | AudioRendererOptions | rendererInfo: AudioRendererInfo; | 新增 | +| ohos.multimedia.audio | AudioRendererOptions | streamInfo: AudioStreamInfo; | 新增 | +| ohos.multimedia.audio | AudioRendererInfo | rendererFlags: number; | 新增 | +| ohos.multimedia.audio | AudioRendererInfo | usage: StreamUsage; | 新增 | +| ohos.multimedia.audio | AudioRendererInfo | content: ContentType; | 新增 | +| ohos.multimedia.audio | AudioStreamInfo | encodingType: AudioEncodingType; | 新增 | +| ohos.multimedia.audio | AudioStreamInfo | sampleFormat: AudioSampleFormat; | 新增 | +| ohos.multimedia.audio | AudioStreamInfo | channels: AudioChannel; | 新增 | +| ohos.multimedia.audio | AudioStreamInfo | samplingRate: AudioSamplingRate; | 新增 | +| ohos.multimedia.audio | StreamUsage | STREAM_USAGE_NOTIFICATION_RINGTONE = 6 | 新增 | +| ohos.multimedia.audio | StreamUsage | STREAM_USAGE_VOICE_COMMUNICATION = 2 | 新增 | +| ohos.multimedia.audio | StreamUsage | STREAM_USAGE_MEDIA = 1 | 新增 | +| ohos.multimedia.audio | StreamUsage | STREAM_USAGE_UNKNOWN = 0 | 新增 | +| ohos.multimedia.audio | ContentType | CONTENT_TYPE_RINGTONE = 5 | 新增 | +| ohos.multimedia.audio | ContentType | CONTENT_TYPE_SONIFICATION = 4 | 新增 | +| ohos.multimedia.audio | ContentType | CONTENT_TYPE_MOVIE = 3 | 新增 | +| ohos.multimedia.audio | ContentType | CONTENT_TYPE_MUSIC = 2 | 新增 | +| ohos.multimedia.audio | ContentType | CONTENT_TYPE_SPEECH = 1 | 新增 | +| ohos.multimedia.audio | ContentType | CONTENT_TYPE_UNKNOWN = 0 | 新增 | +| ohos.multimedia.audio | AudioEncodingType | ENCODING_TYPE_RAW = 0 | 新增 | +| ohos.multimedia.audio | AudioEncodingType | ENCODING_TYPE_INVALID = -1 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_96000 = 96000 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_64000 = 64000 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_48000 = 48000 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_44100 = 44100 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_32000 = 32000 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_24000 = 24000 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_22050 = 22050 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_16000 = 16000 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_12000 = 12000 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_11025 = 11025 | 新增 | +| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_8000 = 8000 | 新增 | +| ohos.multimedia.audio | AudioChannel | CHANNEL_2 = 0x1 << 1 | 新增 | +| ohos.multimedia.audio | AudioChannel | CHANNEL_1 = 0x1 << 0 | 新增 | +| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S32LE = 3 | 新增 | +| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S24LE = 2 | 新增 | +| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S16LE = 1 | 新增 | +| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_U8 = 0 | 新增 | +| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_INVALID = -1 | 新增 | +| ohos.multimedia.audio | AudioRingMode | RINGER_MODE_NORMAL = 2 | 新增 | +| ohos.multimedia.audio | AudioRingMode | RINGER_MODE_VIBRATE = 1 | 新增 | +| ohos.multimedia.audio | AudioRingMode | RINGER_MODE_SILENT = 0 | 新增 | +| ohos.multimedia.audio | ActiveDeviceType | BLUETOOTH_SCO = 7 | 新增 | +| ohos.multimedia.audio | ActiveDeviceType | SPEAKER = 2 | 新增 | +| ohos.multimedia.audio | DeviceType | USB_HEADSET = 22 | 新增 | +| ohos.multimedia.audio | DeviceType | WIRED_HEADPHONES = 4 | 新增 | +| ohos.multimedia.audio | DeviceType | EARPIECE = 1 | 新增 | +| ohos.multimedia.audio | AudioVolumeType | VOICE_ASSISTANT = 9 | 新增 | +| ohos.multimedia.audio | AudioVolumeType | VOICE_CALL = 0 | 新增 | +| ohos.multimedia.audio | AudioState | STATE_PAUSED | 新增 | +| ohos.multimedia.audio | AudioState | STATE_RELEASED | 新增 | +| ohos.multimedia.audio | AudioState | STATE_STOPPED | 新增 | +| ohos.multimedia.audio | AudioState | STATE_RUNNING | 新增 | +| ohos.multimedia.audio | AudioState | STATE_PREPARED | 新增 | +| ohos.multimedia.audio | AudioState | STATE_NEW | 新增 | +| ohos.multimedia.audio | AudioState | STATE_INVALID = -1 | 新增 | +| ohos.multimedia.audio | audio | function createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback): void;
function createAudioRenderer(options: AudioRendererOptions): Promise; | 新增 | +| ohos.multimedia.audio | audio | function createAudioCapturer(options: AudioCapturerOptions, callback: AsyncCallback): void;
function createAudioCapturer(options: AudioCapturerOptions): Promise; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-network.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-network.md index dce4c7f9e0..da00bb411d 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-network.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-network.md @@ -1,14 +1,186 @@ -# xxx子系统JS API变更 +# 网络管理子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,网络管理子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.net.webSocket | WebSocket | off(type: 'error', callback?: ErrorCallback): void; | 新增 | +| ohos.net.webSocket | WebSocket | on(type: 'error', callback: ErrorCallback): void; | 新增 | +| ohos.net.webSocket | WebSocket | off(type: 'close', callback?: AsyncCallback<{ code: number, reason: string }>): void; | 新增 | +| ohos.net.webSocket | WebSocket | on(type: 'close', callback: AsyncCallback<{ code: number, reason: string }>): void; | 新增 | +| ohos.net.webSocket | WebSocket | off(type: 'message', callback?: AsyncCallback): void; | 新增 | +| ohos.net.webSocket | WebSocket | on(type: 'message', callback: AsyncCallback): void; | 新增 | +| ohos.net.webSocket | WebSocket | off(type: 'open', callback?: AsyncCallback): void; | 新增 | +| ohos.net.webSocket | WebSocket | on(type: 'open', callback: AsyncCallback): void; | 新增 | +| ohos.net.webSocket | WebSocket | close(callback: AsyncCallback): void;
close(options: WebSocketCloseOptions, callback: AsyncCallback): void;
close(options?: WebSocketCloseOptions): Promise; | 新增 | +| ohos.net.webSocket | WebSocket | send(data: string \| ArrayBuffer, callback: AsyncCallback): void;
send(data: string \| ArrayBuffer): Promise; | 新增 | +| ohos.net.webSocket | WebSocket | connect(url: string, callback: AsyncCallback): void;
connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback): void;
connect(url: string, options?: WebSocketRequestOptions): Promise; | 新增 | +| ohos.net.webSocket | WebSocketCloseOptions | reason?: string; | 新增 | +| ohos.net.webSocket | WebSocketCloseOptions | code?: number; | 新增 | +| ohos.net.webSocket | WebSocketRequestOptions | header?: Object; | 新增 | +| ohos.net.webSocket | webSocket | function createWebSocket(): WebSocket; | 新增 | +| ohos.net.socket | TCPSocket | off(type: 'error', callback?: ErrorCallback): void; | 新增 | +| ohos.net.socket | TCPSocket | on(type: 'error', callback: ErrorCallback): void; | 新增 | +| ohos.net.socket | TCPSocket | off(type: 'connect' \| 'close', callback?: Callback): void; | 新增 | +| ohos.net.socket | TCPSocket | off(type: 'connect' \| 'close', callback?: Callback): void; | 新增 | +| ohos.net.socket | TCPSocket | on(type: 'connect' \| 'close', callback: Callback): void; | 新增 | +| ohos.net.socket | TCPSocket | on(type: 'connect' \| 'close', callback: Callback): void; | 新增 | +| ohos.net.socket | TCPSocket | off(type: 'message', callback?: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | 新增 | +| ohos.net.socket | TCPSocket | on(type: 'message', callback: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | 新增 | +| ohos.net.socket | TCPSocket | setExtraOptions(options: TCPExtraOptions, callback: AsyncCallback): void;
setExtraOptions(options: TCPExtraOptions): Promise; | 新增 | +| ohos.net.socket | TCPSocket | getState(callback: AsyncCallback): void;
getState(): Promise; | 新增 | +| ohos.net.socket | TCPSocket | getRemoteAddress(callback: AsyncCallback): void;
getRemoteAddress(): Promise; | 新增 | +| ohos.net.socket | TCPSocket | close(callback: AsyncCallback): void;
close(): Promise; | 新增 | +| ohos.net.socket | TCPSocket | send(options: TCPSendOptions, callback: AsyncCallback): void;
send(options: TCPSendOptions): Promise; | 新增 | +| ohos.net.socket | TCPSocket | connect(options: TCPConnectOptions, callback: AsyncCallback): void;
connect(options: TCPConnectOptions): Promise; | 新增 | +| ohos.net.socket | TCPSocket | bind(address: NetAddress, callback: AsyncCallback): void;
bind(address: NetAddress): Promise; | 新增 | +| ohos.net.socket | TCPExtraOptions | socketLinger: {on: boolean, linger: number}; | 新增 | +| ohos.net.socket | TCPExtraOptions | TCPNoDelay?: boolean; | 新增 | +| ohos.net.socket | TCPExtraOptions | OOBInline?: boolean; | 新增 | +| ohos.net.socket | TCPExtraOptions | keepAlive?: boolean; | 新增 | +| ohos.net.socket | TCPSendOptions | encoding?: string; | 新增 | +| ohos.net.socket | TCPSendOptions | data: string \| ArrayBuffer; | 新增 | +| ohos.net.socket | TCPConnectOptions | timeout?: number; | 新增 | +| ohos.net.socket | TCPConnectOptions | address: NetAddress; | 新增 | +| ohos.net.socket | UDPSocket | off(type: 'error', callback?: ErrorCallback): void; | 新增 | +| ohos.net.socket | UDPSocket | on(type: 'error', callback: ErrorCallback): void; | 新增 | +| ohos.net.socket | UDPSocket | off(type: 'listening' \| 'close', callback?: Callback): void; | 新增 | +| ohos.net.socket | UDPSocket | off(type: 'listening' \| 'close', callback?: Callback): void; | 新增 | +| ohos.net.socket | UDPSocket | on(type: 'listening' \| 'close', callback: Callback): void; | 新增 | +| ohos.net.socket | UDPSocket | on(type: 'listening' \| 'close', callback: Callback): void; | 新增 | +| ohos.net.socket | UDPSocket | off(type: 'message', callback?: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | 新增 | +| ohos.net.socket | UDPSocket | on(type: 'message', callback: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): void; | 新增 | +| ohos.net.socket | UDPSocket | setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback): void;
setExtraOptions(options: UDPExtraOptions): Promise; | 新增 | +| ohos.net.socket | UDPSocket | getState(callback: AsyncCallback): void;
getState(): Promise; | 新增 | +| ohos.net.socket | UDPSocket | close(callback: AsyncCallback): void;
close(): Promise; | 新增 | +| ohos.net.socket | UDPSocket | send(options: UDPSendOptions, callback: AsyncCallback): void;
send(options: UDPSendOptions): Promise; | 新增 | +| ohos.net.socket | UDPSocket | bind(address: NetAddress, callback: AsyncCallback): void;
bind(address: NetAddress): Promise; | 新增 | +| ohos.net.socket | SocketRemoteInfo | size: number; | 新增 | +| ohos.net.socket | SocketRemoteInfo | port: number; | 新增 | +| ohos.net.socket | SocketRemoteInfo | family: 'IPv4' \| 'IPv6'; | 新增 | +| ohos.net.socket | SocketRemoteInfo | address: string; | 新增 | +| ohos.net.socket | SocketStateBase | isConnected: boolean; | 新增 | +| ohos.net.socket | SocketStateBase | isClose: boolean; | 新增 | +| ohos.net.socket | SocketStateBase | isBound: boolean; | 新增 | +| ohos.net.socket | UDPExtraOptions | broadcast?: boolean; | 新增 | +| ohos.net.socket | ExtraOptionsBase | socketTimeout?: number; | 新增 | +| ohos.net.socket | ExtraOptionsBase | reuseAddress?: boolean; | 新增 | +| ohos.net.socket | ExtraOptionsBase | sendBufferSize?: number; | 新增 | +| ohos.net.socket | ExtraOptionsBase | receiveBufferSize?: number; | 新增 | +| ohos.net.socket | UDPSendOptions | address: NetAddress; | 新增 | +| ohos.net.socket | UDPSendOptions | data: string \| ArrayBuffer; | 新增 | +| ohos.net.socket | socket | function constructTCPSocketInstance(): TCPSocket; | 新增 | +| ohos.net.socket | socket | function constructUDPSocketInstance(): UDPSocket; | 新增 | +| ohos.net.socket | socket | import NetAddress = connection.NetAddress; | 新增 | +| ohos.net.http | HttpResponse | cookies: string; | 新增 | +| ohos.net.http | HttpResponse | header: Object; | 新增 | +| ohos.net.http | HttpResponse | responseCode: ResponseCode \| number; | 新增 | +| ohos.net.http | HttpResponse | result: string \| Object \| ArrayBuffer; | 新增 | +| ohos.net.http | ResponseCode | VERSION | 新增 | +| ohos.net.http | ResponseCode | GATEWAY_TIMEOUT | 新增 | +| ohos.net.http | ResponseCode | UNAVAILABLE | 新增 | +| ohos.net.http | ResponseCode | BAD_GATEWAY | 新增 | +| ohos.net.http | ResponseCode | NOT_IMPLEMENTED | 新增 | +| ohos.net.http | ResponseCode | INTERNAL_ERROR = 500 | 新增 | +| ohos.net.http | ResponseCode | UNSUPPORTED_TYPE | 新增 | +| ohos.net.http | ResponseCode | REQ_TOO_LONG | 新增 | +| ohos.net.http | ResponseCode | ENTITY_TOO_LARGE | 新增 | +| ohos.net.http | ResponseCode | PRECON_FAILED | 新增 | +| ohos.net.http | ResponseCode | LENGTH_REQUIRED | 新增 | +| ohos.net.http | ResponseCode | GONE | 新增 | +| ohos.net.http | ResponseCode | CONFLICT | 新增 | +| ohos.net.http | ResponseCode | CLIENT_TIMEOUT | 新增 | +| ohos.net.http | ResponseCode | PROXY_AUTH | 新增 | +| ohos.net.http | ResponseCode | NOT_ACCEPTABLE | 新增 | +| ohos.net.http | ResponseCode | BAD_METHOD | 新增 | +| ohos.net.http | ResponseCode | NOT_FOUND | 新增 | +| ohos.net.http | ResponseCode | FORBIDDEN | 新增 | +| ohos.net.http | ResponseCode | PAYMENT_REQUIRED | 新增 | +| ohos.net.http | ResponseCode | UNAUTHORIZED | 新增 | +| ohos.net.http | ResponseCode | BAD_REQUEST = 400 | 新增 | +| ohos.net.http | ResponseCode | USE_PROXY | 新增 | +| ohos.net.http | ResponseCode | NOT_MODIFIED | 新增 | +| ohos.net.http | ResponseCode | SEE_OTHER | 新增 | +| ohos.net.http | ResponseCode | MOVED_TEMP | 新增 | +| ohos.net.http | ResponseCode | MOVED_PERM | 新增 | +| ohos.net.http | ResponseCode | MULT_CHOICE = 300 | 新增 | +| ohos.net.http | ResponseCode | PARTIAL | 新增 | +| ohos.net.http | ResponseCode | RESET | 新增 | +| ohos.net.http | ResponseCode | NO_CONTENT | 新增 | +| ohos.net.http | ResponseCode | NOT_AUTHORITATIVE | 新增 | +| ohos.net.http | ResponseCode | ACCEPTED | 新增 | +| ohos.net.http | ResponseCode | CREATED | 新增 | +| ohos.net.http | ResponseCode | OK = 200 | 新增 | +| ohos.net.http | RequestMethod | CONNECT = "CONNECT" | 新增 | +| ohos.net.http | RequestMethod | TRACE = "TRACE" | 新增 | +| ohos.net.http | RequestMethod | DELETE = "DELETE" | 新增 | +| ohos.net.http | RequestMethod | PUT = "PUT" | 新增 | +| ohos.net.http | RequestMethod | POST = "POST" | 新增 | +| ohos.net.http | RequestMethod | HEAD = "HEAD" | 新增 | +| ohos.net.http | RequestMethod | GET = "GET" | 新增 | +| ohos.net.http | RequestMethod | OPTIONS = "OPTIONS" | 新增 | +| ohos.net.http | HttpRequest | once(type: "headersReceive", callback: Callback): void; | 新增 | +| ohos.net.http | HttpRequest | off(type: "headersReceive", callback?: Callback): void; | 新增 | +| ohos.net.http | HttpRequest | on(type: "headersReceive", callback: Callback): void; | 新增 | +| ohos.net.http | HttpRequest | off(type: "headerReceive", callback?: AsyncCallback): void; | 新增 | +| ohos.net.http | HttpRequest | on(type: "headerReceive", callback: AsyncCallback): void; | 新增 | +| ohos.net.http | HttpRequest | destroy(): void; | 新增 | +| ohos.net.http | HttpRequest | request(url: string, callback: AsyncCallback): void;
request(url: string, options: HttpRequestOptions, callback: AsyncCallback): void;
request(url: string, options?: HttpRequestOptions): Promise; | 新增 | +| ohos.net.http | HttpRequestOptions | connectTimeout?: number; | 新增 | +| ohos.net.http | HttpRequestOptions | readTimeout?: number; | 新增 | +| ohos.net.http | HttpRequestOptions | header?: Object; | 新增 | +| ohos.net.http | HttpRequestOptions | extraData?: string \| Object \| ArrayBuffer; | 新增 | +| ohos.net.http | HttpRequestOptions | method?: RequestMethod; | 新增 | +| ohos.net.http | http | function createHttp(): HttpRequest; | 新增 | +| ohos.net.connection | NetAddress | port?: number; | 新增 | +| ohos.net.connection | NetAddress | family?: number; | 新增 | +| ohos.net.connection | NetAddress | address: string; | 新增 | +| ohos.net.connection | LinkAddress | prefixLength: number; | 新增 | +| ohos.net.connection | LinkAddress | address: NetAddress; | 新增 | +| ohos.net.connection | RouteInfo | isDefaultRoute: boolean; | 新增 | +| ohos.net.connection | RouteInfo | hasGateway: boolean; | 新增 | +| ohos.net.connection | RouteInfo | gateway: NetAddress; | 新增 | +| ohos.net.connection | RouteInfo | destination: LinkAddress; | 新增 | +| ohos.net.connection | RouteInfo | interface: string; | 新增 | +| ohos.net.connection | ConnectionProperties | mtu: number; | 新增 | +| ohos.net.connection | ConnectionProperties | routes: Array; | 新增 | +| ohos.net.connection | ConnectionProperties | dnses: Array; | 新增 | +| ohos.net.connection | ConnectionProperties | linkAddresses: Array; | 新增 | +| ohos.net.connection | ConnectionProperties | domains: string; | 新增 | +| ohos.net.connection | ConnectionProperties | interfaceName: string; | 新增 | +| ohos.net.connection | NetBearType | BEARER_ETHERNET = 3 | 新增 | +| ohos.net.connection | NetBearType | BEARER_WIFI = 1 | 新增 | +| ohos.net.connection | NetBearType | BEARER_CELLULAR = 0 | 新增 | +| ohos.net.connection | NetCap | NET_CAPABILITY_VALIDATED = 16 | 新增 | +| ohos.net.connection | NetCap | NET_CAPABILITY_NOT_VPN = 15 | 新增 | +| ohos.net.connection | NetCap | NET_CAPABILITY_INTERNET = 12 | 新增 | +| ohos.net.connection | NetCap | NET_CAPABILITY_NOT_METERED = 11 | 新增 | +| ohos.net.connection | NetCap | NET_CAPABILITY_MMS = 0 | 新增 | +| ohos.net.connection | NetCapabilities | bearerTypes: Array; | 新增 | +| ohos.net.connection | NetCapabilities | networkCap?: Array; | 新增 | +| ohos.net.connection | NetCapabilities | linkDownBandwidthKbps?: number; | 新增 | +| ohos.net.connection | NetCapabilities | linkUpBandwidthKbps?: number; | 新增 | +| ohos.net.connection | NetHandle | getAddressByName(host: string, callback: AsyncCallback): void;
getAddressByName(host: string): Promise; | 新增 | +| ohos.net.connection | NetHandle | getAddressesByName(host: string, callback: AsyncCallback>): void;
getAddressesByName(host: string): Promise>; | 新增 | +| ohos.net.connection | NetHandle | netId: number; | 新增 | +| ohos.net.connection | NetSpecifier | bearerPrivateIdentifier?: string; | 新增 | +| ohos.net.connection | NetSpecifier | netCapabilities: NetCapabilities; | 新增 | +| ohos.net.connection | NetConnection | unregister(callback: AsyncCallback): void; | 新增 | +| ohos.net.connection | NetConnection | register(callback: AsyncCallback): void; | 新增 | +| ohos.net.connection | NetConnection | on(type: 'netUnavailable', callback: Callback): void; | 新增 | +| ohos.net.connection | NetConnection | on(type: 'netLost', callback: Callback): void; | 新增 | +| ohos.net.connection | NetConnection | on(type: 'netConnectionPropertiesChange', callback: Callback<{ netHandle: NetHandle, connectionProperties: ConnectionProperties }>): void; | 新增 | +| ohos.net.connection | NetConnection | on(type: 'netCapabilitiesChange', callback: Callback<{ netHandle: NetHandle, netCap: NetCapabilities }>): void; | 新增 | +| ohos.net.connection | NetConnection | on(type: 'netBlockStatusChange', callback: Callback<{ netHandle: NetHandle, blocked: boolean }>): void; | 新增 | +| ohos.net.connection | NetConnection | on(type: 'netAvailable', callback: Callback): void; | 新增 | +| ohos.net.connection | connection | function getAddressesByName(host: string, callback: AsyncCallback>): void;
function getAddressesByName(host: string): Promise>; | 新增 | +| ohos.net.connection | connection | function reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback): void;
function reportNetDisconnected(netHandle: NetHandle): Promise; | 新增 | +| ohos.net.connection | connection | function reportNetConnected(netHandle: NetHandle, callback: AsyncCallback): void;
function reportNetConnected(netHandle: NetHandle): Promise; | 新增 | +| ohos.net.connection | connection | function hasDefaultNet(callback: AsyncCallback): void;
function hasDefaultNet(): Promise; | 新增 | +| ohos.net.connection | connection | function getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback): void;
function getNetCapabilities(netHandle: NetHandle): Promise; | 新增 | +| ohos.net.connection | connection | function getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback): void;
function getConnectionProperties(netHandle: NetHandle): Promise; | 新增 | +| ohos.net.connection | connection | function getAllNets(callback: AsyncCallback>): void;
function getAllNets(): Promise>; | 新增 | +| ohos.net.connection | connection | function getDefaultNet(callback: AsyncCallback): void;
function getDefaultNet(): Promise; | 新增 | +| ohos.net.connection | connection | function createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md index dce4c7f9e0..d79973a700 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md @@ -1,14 +1,91 @@ -# xxx子系统JS API变更 +# 资源调度子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,资源调度子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.reminderAgent | LocalDateTime | second?: number; | 新增 | +| ohos.reminderAgent | LocalDateTime | minute: number; | 新增 | +| ohos.reminderAgent | LocalDateTime | hour: number; | 新增 | +| ohos.reminderAgent | LocalDateTime | day: number; | 新增 | +| ohos.reminderAgent | LocalDateTime | month: number; | 新增 | +| ohos.reminderAgent | LocalDateTime | year: number; | 新增 | +| ohos.reminderAgent | ReminderRequestTimer | triggerTimeInSeconds: number; | 新增 | +| ohos.reminderAgent | ReminderRequestAlarm | daysOfWeek?: Array; | 新增 | +| ohos.reminderAgent | ReminderRequestAlarm | minute: number; | 新增 | +| ohos.reminderAgent | ReminderRequestAlarm | hour: number; | 新增 | +| ohos.reminderAgent | ReminderRequestCalendar | repeatDays?: Array; | 新增 | +| ohos.reminderAgent | ReminderRequestCalendar | repeatMonths?: Array; | 新增 | +| ohos.reminderAgent | ReminderRequestCalendar | dateTime: LocalDateTime; | 新增 | +| ohos.reminderAgent | ReminderRequest | slotType?: notification.SlotType; | 新增 | +| ohos.reminderAgent | ReminderRequest | notificationId?: number; | 新增 | +| ohos.reminderAgent | ReminderRequest | snoozeContent?: string; | 新增 | +| ohos.reminderAgent | ReminderRequest | expiredContent?: string; | 新增 | +| ohos.reminderAgent | ReminderRequest | content?: string; | 新增 | +| ohos.reminderAgent | ReminderRequest | title?: string; | 新增 | +| ohos.reminderAgent | ReminderRequest | timeInterval?: number; | 新增 | +| ohos.reminderAgent | ReminderRequest | snoozeTimes?: number; | 新增 | +| ohos.reminderAgent | ReminderRequest | ringDuration?: number; | 新增 | +| ohos.reminderAgent | ReminderRequest | maxScreenWantAgent?: MaxScreenWantAgent; | 新增 | +| ohos.reminderAgent | ReminderRequest | wantAgent?: WantAgent; | 新增 | +| ohos.reminderAgent | ReminderRequest | actionButton?: [ActionButton?, ActionButton?]; | 新增 | +| ohos.reminderAgent | ReminderRequest | reminderType: ReminderType; | 新增 | +| ohos.reminderAgent | MaxScreenWantAgent | abilityName: string; | 新增 | +| ohos.reminderAgent | MaxScreenWantAgent | pkgName: string; | 新增 | +| ohos.reminderAgent | WantAgent | abilityName: string; | 新增 | +| ohos.reminderAgent | WantAgent | pkgName: string; | 新增 | +| ohos.reminderAgent | ActionButton | type: ActionButtonType; | 新增 | +| ohos.reminderAgent | ActionButton | title: string; | 新增 | +| ohos.reminderAgent | ReminderType | REMINDER_TYPE_ALARM = 2 | 新增 | +| ohos.reminderAgent | ReminderType | REMINDER_TYPE_CALENDAR = 1 | 新增 | +| ohos.reminderAgent | ReminderType | REMINDER_TYPE_TIMER = 0 | 新增 | +| ohos.reminderAgent | ActionButtonType | ACTION_BUTTON_TYPE_SNOOZE = 1 | 新增 | +| ohos.reminderAgent | ActionButtonType | ACTION_BUTTON_TYPE_CLOSE = 0 | 新增 | +| ohos.reminderAgent | reminderAgent | function removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback): void;
function removeNotificationSlot(slotType: notification.SlotType): Promise; | 新增 | +| ohos.reminderAgent | reminderAgent | function addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback): void;
function addNotificationSlot(slot: NotificationSlot): Promise; | 新增 | +| ohos.reminderAgent | reminderAgent | function cancelAllReminders(callback: AsyncCallback): void;
function cancelAllReminders(): Promise; | 新增 | +| ohos.reminderAgent | reminderAgent | function getValidReminders(callback: AsyncCallback>): void;
function getValidReminders(): Promise>; | 新增 | +| ohos.reminderAgent | reminderAgent | function cancelReminder(reminderId: number, callback: AsyncCallback): void;
function cancelReminder(reminderId: number): Promise; | 新增 | +| ohos.reminderAgent | reminderAgent | function publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback): void;
function publishReminder(reminderReq: ReminderRequest): Promise; | 新增 | +| ohos.bundleState | bundleState | function queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback>): void;
function queryCurrentBundleActiveStates(begin: number, end: number): Promise>; | 新增 | +| ohos.bundleState | IntervalType | BY_ANNUALLY = 4 | 新增 | +| ohos.bundleState | IntervalType | BY_MONTHLY = 3 | 新增 | +| ohos.bundleState | IntervalType | BY_WEEKLY = 2 | 新增 | +| ohos.bundleState | IntervalType | BY_DAILY = 1 | 新增 | +| ohos.bundleState | IntervalType | BY_OPTIMIZED = 0 | 新增 | +| ohos.bundleState | BundleActiveInfoResponse | [key: string]: BundleStateInfo; | 新增 | +| ohos.bundleState | bundleState | function queryAppUsagePriorityGroup(callback: AsyncCallback): void;
function queryAppUsagePriorityGroup(): Promise; | 新增 | +| ohos.bundleState | bundleState | function isIdleState(bundleName: string, callback: AsyncCallback): void;
function isIdleState(bundleName: string): Promise; | 新增 | +| ohos.bundleState | BundleActiveState | stateType?: number; | 新增 | +| ohos.bundleState | BundleActiveState | stateOccurredTime?: number; | 新增 | +| ohos.bundleState | BundleActiveState | nameOfClass?: string; | 新增 | +| ohos.bundleState | BundleActiveState | indexOfLink?: string; | 新增 | +| ohos.bundleState | BundleActiveState | bundleName?: string; | 新增 | +| ohos.bundleState | BundleActiveState | appUsagePriorityGroup?: number; | 新增 | +| ohos.bundleState | BundleStateInfo | merge(toMerge: BundleStateInfo): void; | 新增 | +| ohos.bundleState | BundleStateInfo | infosEndTime?: number; | 新增 | +| ohos.bundleState | BundleStateInfo | infosBeginTime?: number; | 新增 | +| ohos.bundleState | BundleStateInfo | fgAbilityPrevAccessTime?: number; | 新增 | +| ohos.bundleState | BundleStateInfo | fgAbilityAccessTotalTime?: number; | 新增 | +| ohos.bundleState | BundleStateInfo | bundleName?: string; | 新增 | +| ohos.bundleState | BundleStateInfo | abilitySeenTotalTime?: number; | 新增 | +| ohos.bundleState | BundleStateInfo | abilityPrevSeenTime?: number; | 新增 | +| ohos.bundleState | BundleStateInfo | abilityPrevAccessTime?: number; | 新增 | +| ohos.bundleState | BundleStateInfo | abilityInFgTotalTime?: number; | 新增 | +| ohos.bundleState | BundleStateInfo | id: number; | 新增 | +| ohos.backgroundTaskManager | BackgroundMode | TASK_KEEPING = 9 | 新增 | +| ohos.backgroundTaskManager | BackgroundMode | MULTI_DEVICE_CONNECTION = 6 | 新增 | +| ohos.backgroundTaskManager | BackgroundMode | BLUETOOTH_INTERACTION = 5 | 新增 | +| ohos.backgroundTaskManager | BackgroundMode | LOCATION = 4 | 新增 | +| ohos.backgroundTaskManager | BackgroundMode | AUDIO_RECORDING = 3 | 新增 | +| ohos.backgroundTaskManager | BackgroundMode | AUDIO_PLAYBACK = 2 | 新增 | +| ohos.backgroundTaskManager | BackgroundMode | DATA_TRANSFER = 1 | 新增 | +| ohos.backgroundTaskManager | backgroundTaskManager | function stopBackgroundRunning(context: Context, callback: AsyncCallback): void;
function stopBackgroundRunning(context: Context): Promise; | 新增 | +| ohos.backgroundTaskManager | backgroundTaskManager | function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback): void;
function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise; | 新增 | +| ohos.backgroundTaskManager | backgroundTaskManager | function requestSuspendDelay(reason: string, callback: Callback): DelaySuspendInfo; | 新增 | +| ohos.backgroundTaskManager | backgroundTaskManager | function getRemainingDelayTime(requestId: number, callback: AsyncCallback): void;
function getRemainingDelayTime(requestId: number): Promise; | 新增 | +| ohos.backgroundTaskManager | backgroundTaskManager | function cancelSuspendDelay(requestId: number): void; | 新增 | +| ohos.backgroundTaskManager | DelaySuspendInfo | actualDelayTime: number; | 新增 | +| ohos.backgroundTaskManager | DelaySuspendInfo | requestId: number; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-security.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-security.md index dce4c7f9e0..6131699b92 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-security.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-security.md @@ -1,14 +1,247 @@ -# xxx子系统JS API变更 +# 安全子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,安全子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.security.huks | HuksTag | HUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA = HuksTagType.HUKS_TAG_TYPE_BYTES \| 20003 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA = HuksTagType.HUKS_TAG_TYPE_BYTES \| 20002 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_SYMMETRIC_KEY_DATA = HuksTagType.HUKS_TAG_TYPE_BYTES \| 20001 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_OS_PATCHLEVEL = HuksTagType.HUKS_TAG_TYPE_UINT \| 10102 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_OS_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10101 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_IS_KEY_HANDLE = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10010 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_AE_TAG = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10009 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_PAYLOAD_LEN = HuksTagType.HUKS_TAG_TYPE_UINT \| 10008 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_VERSION = HuksTagType.HUKS_TAG_TYPE_UINT \| 10007 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10006 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_CRYPTO_CTX = HuksTagType.HUKS_TAG_TYPE_ULONG \| 10005 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_USES_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10004 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ACCESS_TIME = HuksTagType.HUKS_TAG_TYPE_UINT \| 10003 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_PACKAGE_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10002 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_PROCESS_NAME = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10001 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_DOMAIN = HuksTagType.HUKS_TAG_TYPE_UINT \| 1011 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_SECURE_KEY_UUID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 1010 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_SECURE_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL \| 1009 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_IS_ASYNCHRONIZED = HuksTagType.HUKS_TAG_TYPE_UINT \| 1008 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_FLAG = HuksTagType.HUKS_TAG_TYPE_UINT \| 1007 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_ROLE = HuksTagType.HUKS_TAG_TYPE_UINT \| 1006 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_AUTH_ID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 1005 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_WRAP_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT \| 1004 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_IS_ALLOWED_WRAP = HuksTagType.HUKS_TAG_TYPE_BOOL \| 1003 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_STORAGE_FLAG = HuksTagType.HUKS_TAG_TYPE_UINT \| 1002 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_IS_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL \| 1001 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_VERSION_INFO = HuksTagType.HUKS_TAG_TYPE_BYTES \| 515 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO = HuksTagType.HUKS_TAG_TYPE_BYTES \| 514 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_UDID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 513 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_SOCID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 512 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_ALIAS = HuksTagType.HUKS_TAG_TYPE_BYTES \| 511 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_MODEL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 510 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_MANUFACTURER = HuksTagType.HUKS_TAG_TYPE_BYTES \| 509 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_MEID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 508 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_IMEI = HuksTagType.HUKS_TAG_TYPE_BYTES \| 507 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_SERIAL = HuksTagType.HUKS_TAG_TYPE_BYTES \| 506 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_PRODUCT = HuksTagType.HUKS_TAG_TYPE_BYTES \| 505 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_DEVICE = HuksTagType.HUKS_TAG_TYPE_BYTES \| 504 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_ID_BRAND = HuksTagType.HUKS_TAG_TYPE_BYTES \| 503 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_APPLICATION_ID = HuksTagType.HUKS_TAG_TYPE_BYTES \| 502 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ATTESTATION_CHALLENGE = HuksTagType.HUKS_TAG_TYPE_BYTES \| 501 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_AUTH_TOKEN = HuksTagType.HUKS_TAG_TYPE_BYTES \| 306 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_AUTH_TIMEOUT = HuksTagType.HUKS_TAG_TYPE_UINT \| 305 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_USER_AUTH_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT \| 304 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_NO_AUTH_REQUIRED = HuksTagType.HUKS_TAG_TYPE_BOOL \| 303 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_USER_ID = HuksTagType.HUKS_TAG_TYPE_UINT \| 302 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ALL_USERS = HuksTagType.HUKS_TAG_TYPE_BOOL \| 301 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_CREATION_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 204 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_USAGE_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 203 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ORIGINATION_EXPIRE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 202 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ACTIVE_DATETIME = HuksTagType.HUKS_TAG_TYPE_ULONG \| 201 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_DERIVE_KEY_SIZE = HuksTagType.HUKS_TAG_TYPE_UINT \| 24 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BYTES \| 23 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_AGREE_PUBLIC_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES \| 22 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BYTES \| 21 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS = HuksTagType.HUKS_TAG_TYPE_BOOL \| 20 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_AGREE_ALG = HuksTagType.HUKS_TAG_TYPE_UINT \| 19 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_DERIVE_ALG = HuksTagType.HUKS_TAG_TYPE_UINT \| 18 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_DERIVE_FACTOR = HuksTagType.HUKS_TAG_TYPE_BYTES \| 17 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_DERIVE_MAIN_KEY = HuksTagType.HUKS_TAG_TYPE_BYTES \| 16 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_GENERATE_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT \| 15 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ITERATION = HuksTagType.HUKS_TAG_TYPE_UINT \| 14 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_PWD = HuksTagType.HUKS_TAG_TYPE_BYTES \| 13 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_SALT = HuksTagType.HUKS_TAG_TYPE_BYTES \| 12 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_INFO = HuksTagType.HUKS_TAG_TYPE_BYTES \| 11 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_IV = HuksTagType.HUKS_TAG_TYPE_BYTES \| 10 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_NONCE = HuksTagType.HUKS_TAG_TYPE_BYTES \| 9 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ASSOCIATED_DATA = HuksTagType.HUKS_TAG_TYPE_BYTES \| 8 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT \| 7 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_BLOCK_MODE = HuksTagType.HUKS_TAG_TYPE_UINT \| 6 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_PADDING = HuksTagType.HUKS_TAG_TYPE_UINT \| 5 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_DIGEST = HuksTagType.HUKS_TAG_TYPE_UINT \| 4 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_KEY_SIZE = HuksTagType.HUKS_TAG_TYPE_UINT \| 3 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_PURPOSE = HuksTagType.HUKS_TAG_TYPE_UINT \| 2 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_ALGORITHM = HuksTagType.HUKS_TAG_TYPE_UINT \| 1 | 新增 | +| ohos.security.huks | HuksTag | HUKS_TAG_INVALID = HuksTagType.HUKS_TAG_TYPE_INVALID \| 0 | 新增 | +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BYTES = 5 << 28 | 新增 | +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_BOOL = 4 << 28 | 新增 | +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_ULONG = 3 << 28 | 新增 | +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_UINT = 2 << 28 | 新增 | +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INT = 1 << 28 | 新增 | +| ohos.security.huks | HuksTagType | HUKS_TAG_TYPE_INVALID = 0 << 28 | 新增 | +| ohos.security.huks | HuksSendType | HUKS_SEND_TYPE_SYNC = 1 | 新增 | +| ohos.security.huks | HuksSendType | HUKS_SEND_TYPE_ASYNC = 0 | 新增 | +| ohos.security.huks | HuksKeyStorageType | HUKS_STORAGE_PERSISTENT = 1 | 新增 | +| ohos.security.huks | HuksKeyStorageType | HUKS_STORAGE_TEMP = 0 | 新增 | +| ohos.security.huks | HuksKeyFlag | HUKS_KEY_FLAG_DERIVE_KEY = 4 | 新增 | +| ohos.security.huks | HuksKeyFlag | HUKS_KEY_FLAG_AGREE_KEY = 3 | 新增 | +| ohos.security.huks | HuksKeyFlag | HUKS_KEY_FLAG_GENERATE_KEY = 2 | 新增 | +| ohos.security.huks | HuksKeyFlag | HUKS_KEY_FLAG_IMPORT_KEY = 1 | 新增 | +| ohos.security.huks | HuksKeyGenerateType | HUKS_KEY_GENERATE_TYPE_AGREE = 2 | 新增 | +| ohos.security.huks | HuksKeyGenerateType | HUKS_KEY_GENERATE_TYPE_DERIVE = 1 | 新增 | +| ohos.security.huks | HuksKeyGenerateType | HUKS_KEY_GENERATE_TYPE_DEFAULT = 0 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_DH = 103 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_ED25519 = 102 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_X25519 = 101 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_ECDH = 100 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_PBKDF2 = 52 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_HKDF = 51 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_HMAC = 50 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_AES = 20 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_DSA = 3 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_ECC = 2 | 新增 | +| ohos.security.huks | HuksKeyAlg | HUKS_ALG_RSA = 1 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_DH_KEY_SIZE_4096 = 4096 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_DH_KEY_SIZE_3072 = 3072 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_DH_KEY_SIZE_2048 = 2048 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_CURVE25519_KEY_SIZE_256 = 256 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_AES_KEY_SIZE_512 = 512 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_AES_KEY_SIZE_256 = 256 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_AES_KEY_SIZE_192 = 192 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_AES_KEY_SIZE_128 = 128 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_ECC_KEY_SIZE_521 = 521 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_ECC_KEY_SIZE_384 = 384 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_ECC_KEY_SIZE_256 = 256 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_ECC_KEY_SIZE_224 = 224 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_RSA_KEY_SIZE_4096 = 4096 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_RSA_KEY_SIZE_3072 = 3072 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_RSA_KEY_SIZE_2048 = 2048 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_RSA_KEY_SIZE_1024 = 1024 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_RSA_KEY_SIZE_768 = 768 | 新增 | +| ohos.security.huks | HuksKeySize | HUKS_RSA_KEY_SIZE_512 = 512 | 新增 | +| ohos.security.huks | HuksCipherMode | HUKS_MODE_GCM = 32 | 新增 | +| ohos.security.huks | HuksCipherMode | HUKS_MODE_CCM = 31 | 新增 | +| ohos.security.huks | HuksCipherMode | HUKS_MODE_OFB = 4 | 新增 | +| ohos.security.huks | HuksCipherMode | HUKS_MODE_CTR = 3 | 新增 | +| ohos.security.huks | HuksCipherMode | HUKS_MODE_CBC = 2 | 新增 | +| ohos.security.huks | HuksCipherMode | HUKS_MODE_ECB = 1 | 新增 | +| ohos.security.huks | HuksKeyPadding | HUKS_PADDING_PKCS7 = 5 | 新增 | +| ohos.security.huks | HuksKeyPadding | HUKS_PADDING_PKCS5 = 4 | 新增 | +| ohos.security.huks | HuksKeyPadding | HUKS_PADDING_PKCS1_V1_5 = 3 | 新增 | +| ohos.security.huks | HuksKeyPadding | HUKS_PADDING_PSS = 2 | 新增 | +| ohos.security.huks | HuksKeyPadding | HUKS_PADDING_OAEP = 1 | 新增 | +| ohos.security.huks | HuksKeyPadding | HUKS_PADDING_NONE = 0 | 新增 | +| ohos.security.huks | HuksKeyDigest | HUKS_DIGEST_SHA512 = 14 | 新增 | +| ohos.security.huks | HuksKeyDigest | HUKS_DIGEST_SHA384 = 13 | 新增 | +| ohos.security.huks | HuksKeyDigest | HUKS_DIGEST_SHA256 = 12 | 新增 | +| ohos.security.huks | HuksKeyDigest | HUKS_DIGEST_SHA224 = 11 | 新增 | +| ohos.security.huks | HuksKeyDigest | HUKS_DIGEST_SHA1 = 10 | 新增 | +| ohos.security.huks | HuksKeyDigest | HUKS_DIGEST_MD5 = 1 | 新增 | +| ohos.security.huks | HuksKeyDigest | HUKS_DIGEST_NONE = 0 | 新增 | +| ohos.security.huks | HuksKeyPurpose | HUKS_KEY_PURPOSE_AGREE = 256 | 新增 | +| ohos.security.huks | HuksKeyPurpose | HUKS_KEY_PURPOSE_MAC = 128 | 新增 | +| ohos.security.huks | HuksKeyPurpose | HUKS_KEY_PURPOSE_UNWRAP = 64 | 新增 | +| ohos.security.huks | HuksKeyPurpose | HUKS_KEY_PURPOSE_WRAP = 32 | 新增 | +| ohos.security.huks | HuksKeyPurpose | HUKS_KEY_PURPOSE_DERIVE = 16 | 新增 | +| ohos.security.huks | HuksKeyPurpose | HUKS_KEY_PURPOSE_VERIFY = 8 | 新增 | +| ohos.security.huks | HuksKeyPurpose | HUKS_KEY_PURPOSE_SIGN = 4 | 新增 | +| ohos.security.huks | HuksKeyPurpose | HUKS_KEY_PURPOSE_DECRYPT = 2 | 新增 | +| ohos.security.huks | HuksKeyPurpose | HUKS_KEY_PURPOSE_ENCRYPT = 1 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_UNKNOWN_ERROR = -1000 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INTERNAL_ERROR = -999 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_OPERATION = -125 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_ITERATION = -124 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_SALT = -123 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_AE_TAG = -122 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_NONCE = -121 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_AAD = -120 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_IV = -119 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_SIGNATURE_SIZE = -118 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_DIGEST = -117 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_MODE = -116 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_PURPOSE = -115 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_PADDING = -114 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_KEY_SIZE = -113 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_ALGORITHM = -112 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_ITERATION_FAIL = -111 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_SALT_FAIL = -110 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_AE_TAG_FAIL = -109 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_IV_FAIL = -108 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_AAD_FAIL = -107 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_NONCE_FAIL = -106 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_MODE_FAIL = -105 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_DIGEST_FAIL = -104 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_PURPOSE_FAIL = -103 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_PADDING_FAIL = -102 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_KEY_SIZE_FAIL = -101 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CHECK_GET_ALG_FAIL = -100 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_VERIFICATION_FAILED = -38 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_UPDATE_ROOT_KEY_MATERIAL_FAIL = -37 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_NEW_ROOT_KEY_MATERIAL_EXIST = -36 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_EFUSE_READ_FAIL = -35 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_IPC_DLOPEN_FAIL = -34 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_IPC_INIT_FAIL = -33 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_COMMUNICATION_TIMEOUT = -32 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CRYPTO_ENGINE_ERROR = -31 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_PARAM_NOT_EXIST = -30 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_REQUEST_OVERFLOWS = -29 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_IPC_MSG_FAIL = -28 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_KEY_FILE = -27 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_MAKE_DIR_FAIL = -26 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_CLOSE_FILE_FAIL = -25 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_OPEN_FILE_FAIL = -24 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_REMOVE_FILE_FAIL = -23 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_WRITE_FILE_FAIL = -22 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_MALLOC_FAIL = -21 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_HASH_NOT_EQUAL = -20 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_KEY_INFO = -19 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_PRIVATE_KEY = -18 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_PUBLIC_KEY = -17 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_READ_FILE_FAIL = -16 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_FILE_SIZE_FAIL = -15 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_NULL_POINTER = -14 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_NOT_EXIST = -13 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_ALREADY_EXISTS = -12 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_HARDWARE_FAILURE = -11 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_STORAGE_FAILURE = -10 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_COMMUNICATION_FAILURE = -9 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INSUFFICIENT_MEMORY = -8 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_BUFFER_TOO_SMALL = -7 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INSUFFICIENT_DATA = -6 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_NO_PERMISSION = -5 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_NOT_SUPPORTED = -4 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_ARGUMENT = -3 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_ERROR_BAD_STATE = -2 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_FAILURE = -1 | 新增 | +| ohos.security.huks | HuksErrorCode | HUKS_SUCCESS = 0 | 新增 | +| ohos.security.huks | HuksResult | certChains?: Array; | 新增 | +| ohos.security.huks | HuksResult | properties?: Array; | 新增 | +| ohos.security.huks | HuksResult | outData?: Uint8Array; | 新增 | +| ohos.security.huks | HuksResult | errorCode: number; | 新增 | +| ohos.security.huks | HuksOptions | inData?: Uint8Array; | 新增 | +| ohos.security.huks | HuksOptions | properties?: Array; | 新增 | +| ohos.security.huks | HuksHandle | token?: Uint8Array; | 新增 | +| ohos.security.huks | HuksHandle | handle: number; | 新增 | +| ohos.security.huks | HuksHandle | errorCode: number; | 新增 | +| ohos.security.huks | HuksParam | value: boolean \| number \| bigint \| Uint8Array; | 新增 | +| ohos.security.huks | HuksParam | tag: HuksTag; | 新增 | +| ohos.security.huks | huks | function getSdkVersion(options: HuksOptions) : string; | 新增 | +| ohos.security.huks | huks | function abort(handle: number, options: HuksOptions, callback: AsyncCallback) : void;
function abort(handle: number, options: HuksOptions) : Promise; | 新增 | +| ohos.security.huks | huks | function finish(handle: number, options: HuksOptions, callback: AsyncCallback) : void;
function finish(handle: number, options: HuksOptions) : Promise; | 新增 | +| ohos.security.huks | huks | function update(handle: number, token?: Uint8Array, options: HuksOptions, callback: AsyncCallback) : void;
function update(handle: number, token?: Uint8Array, options: HuksOptions) : Promise; | 新增 | +| ohos.security.huks | huks | function init(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function init(keyAlias: string, options: HuksOptions) : Promise; | 新增 | +| ohos.security.huks | huks | function isKeyExist(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function isKeyExist(keyAlias: string, options: HuksOptions) : Promise; | 新增 | +| ohos.security.huks | huks | function getKeyProperties(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function getKeyProperties(keyAlias: string, options: HuksOptions) : Promise; | 新增 | +| ohos.security.huks | huks | function exportKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function exportKey(keyAlias: string, options: HuksOptions) : Promise; | 新增 | +| ohos.security.huks | huks | function importKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function importKey(keyAlias: string, options: HuksOptions) : Promise; | 新增 | +| ohos.security.huks | huks | function deleteKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function deleteKey(keyAlias: string, options: HuksOptions) : Promise; | 新增 | +| ohos.security.huks | huks | function generateKey(keyAlias: string, options: HuksOptions, callback: AsyncCallback) : void;
function generateKey(keyAlias: string, options: HuksOptions) : Promise; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md index dce4c7f9e0..5f954b20ef 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md @@ -1,14 +1,112 @@ -# xxx子系统JS API变更 +# 泛Sensor子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,泛Sensor子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.vibrator | VibratorStopMode | VIBRATOR_STOP_MODE_PRESET = "preset" | 新增 | +| ohos.vibrator | VibratorStopMode | VIBRATOR_STOP_MODE_TIME = "time" | 新增 | +| ohos.vibrator | EffectId | EFFECT_CLOCK_TIMER = "haptic.clock.timer" | 新增 | +| ohos.vibrator | vibrator | function stop(stopMode: VibratorStopMode): Promise;
function stop(stopMode: VibratorStopMode, callback?: AsyncCallback): void; | 新增 | +| 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; | 新增 | +| ohos.sensor | WearDetectionResponse | value: number; | 新增 | +| ohos.sensor | HeartRateResponse | heartRate: number; | 新增 | +| ohos.sensor | BarometerResponse | pressure: number; | 新增 | +| ohos.sensor | AmbientTemperatureResponse | temperature: number; | 新增 | +| ohos.sensor | PedometerDetectionResponse | scalar: number; | 新增 | +| ohos.sensor | HumidityResponse | humidity: number; | 新增 | +| ohos.sensor | PedometerResponse | steps: number; | 新增 | +| ohos.sensor | MagneticFieldUncalibratedResponse | biasZ: number; | 新增 | +| ohos.sensor | MagneticFieldUncalibratedResponse | biasY: number; | 新增 | +| ohos.sensor | MagneticFieldUncalibratedResponse | biasX: number; | 新增 | +| ohos.sensor | MagneticFieldUncalibratedResponse | z: number; | 新增 | +| ohos.sensor | MagneticFieldUncalibratedResponse | y: number; | 新增 | +| ohos.sensor | MagneticFieldUncalibratedResponse | x: number; | 新增 | +| ohos.sensor | MagneticFieldResponse | z: number; | 新增 | +| ohos.sensor | MagneticFieldResponse | y: number; | 新增 | +| ohos.sensor | MagneticFieldResponse | x: number; | 新增 | +| ohos.sensor | HallResponse | status: number; | 新增 | +| ohos.sensor | LightResponse | intensity: number; | 新增 | +| ohos.sensor | ProximityResponse | distance: number; | 新增 | +| ohos.sensor | SignificantMotionResponse | scalar: number; | 新增 | +| ohos.sensor | GyroscopeUncalibratedResponse | biasZ: number; | 新增 | +| ohos.sensor | GyroscopeUncalibratedResponse | biasY: number; | 新增 | +| ohos.sensor | GyroscopeUncalibratedResponse | biasX: number; | 新增 | +| ohos.sensor | GyroscopeUncalibratedResponse | z: number; | 新增 | +| ohos.sensor | GyroscopeUncalibratedResponse | y: number; | 新增 | +| ohos.sensor | GyroscopeUncalibratedResponse | x: number; | 新增 | +| ohos.sensor | GyroscopeResponse | z: number; | 新增 | +| ohos.sensor | GyroscopeResponse | y: number; | 新增 | +| ohos.sensor | GyroscopeResponse | x: number; | 新增 | +| ohos.sensor | RotationVectorResponse | w: number; | 新增 | +| ohos.sensor | RotationVectorResponse | z: number; | 新增 | +| ohos.sensor | RotationVectorResponse | y: number; | 新增 | +| ohos.sensor | RotationVectorResponse | x: number; | 新增 | +| ohos.sensor | OrientationResponse | gamma: number; | 新增 | +| ohos.sensor | OrientationResponse | beta: number; | 新增 | +| ohos.sensor | OrientationResponse | alpha: number; | 新增 | +| ohos.sensor | GravityResponse | z: number; | 新增 | +| ohos.sensor | GravityResponse | y: number; | 新增 | +| ohos.sensor | GravityResponse | x: number; | 新增 | +| ohos.sensor | AccelerometerUncalibratedResponse | biasZ: number; | 新增 | +| ohos.sensor | AccelerometerUncalibratedResponse | biasY: number; | 新增 | +| ohos.sensor | AccelerometerUncalibratedResponse | biasX: number; | 新增 | +| ohos.sensor | AccelerometerUncalibratedResponse | z: number; | 新增 | +| ohos.sensor | AccelerometerUncalibratedResponse | y: number; | 新增 | +| ohos.sensor | AccelerometerUncalibratedResponse | x: number; | 新增 | +| ohos.sensor | LinearAccelerometerResponse | z: number; | 新增 | +| ohos.sensor | LinearAccelerometerResponse | y: number; | 新增 | +| ohos.sensor | LinearAccelerometerResponse | x: number; | 新增 | +| ohos.sensor | AccelerometerResponse | z: number; | 新增 | +| ohos.sensor | AccelerometerResponse | y: number; | 新增 | +| ohos.sensor | AccelerometerResponse | x: number; | 新增 | +| ohos.sensor | Response | timestamp: number; | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED = 281 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_WEAR_DETECTION = 280 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_HEART_RATE = 278 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_PEDOMETER = 266 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_PEDOMETER_DETECTION = 265 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_SIGNIFICANT_MOTION = 264 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED = 263 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED = 261 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_AMBIENT_TEMPERATURE = 260 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_ROTATION_VECTOR = 259 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_LINEAR_ACCELERATION = 258 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_GRAVITY = 257 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_ORIENTATION = 256 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_HUMIDITY = 13 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_PROXIMITY = 12 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_HALL = 10 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_BAROMETER = 8 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_MAGNETIC_FIELD = 6 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_AMBIENT_LIGHT = 5 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_GYROSCOPE = 2 | 新增 | +| ohos.sensor | SensorType | SENSOR_TYPE_ID_ACCELEROMETER = 1 | 新增 | +| ohos.sensor | Options | interval?: number; | 新增 | +| ohos.sensor | RotationMatrixResponse | inclination: Array | 新增 | +| ohos.sensor | RotationMatrixResponse | rotation: Array; | 新增 | +| ohos.sensor | sensor | function getDirection(rotationMatrix: Array, callback: AsyncCallback>): void;
function getDirection(rotationMatrix: Array): Promise>; | 新增 | +| ohos.sensor | sensor | function createQuaternion(rotationVector: Array, callback: AsyncCallback>): void;
function createQuaternion(rotationVector: Array): Promise>; | 新增 | +| ohos.sensor | sensor | function transformCoordinateSystem(inRotationVector: Array, coordinates: CoordinatesOptions, callback: AsyncCallback>): void;
function transformCoordinateSystem(inRotationVector: Array, coordinates: CoordinatesOptions): Promise>; | 新增 | +| ohos.sensor | CoordinatesOptions | y: number; | 新增 | +| ohos.sensor | CoordinatesOptions | x: number; | 新增 | +| 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; | 新增 | +| ohos.sensor | sensor | function getAngleModify(currentRotationMatrix: Array, preRotationMatrix: Array, callback: AsyncCallback>): void;
function getAngleModify(currentRotationMatrix: Array, preRotationMatrix: Array): Promise>;| 新增 | +| ohos.sensor | sensor | function getGeomagneticDip(inclinationMatrix: Array, callback: AsyncCallback): void;
function getGeomagneticDip(inclinationMatrix: Array): Promise; | 新增 | +| ohos.sensor | sensor | function getAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback): void;
function getAltitude(seaPressure: number, currentPressure: number): Promise; | 新增 | +| ohos.sensor | sensor | function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback): void;
function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise; | 新增 | +| ohos.sensor | GeomagneticResponse | totalIntensity: number; | 新增 | +| ohos.sensor | GeomagneticResponse | levelIntensity: number; | 新增 | +| ohos.sensor | GeomagneticResponse | deflectionAngle: number; | 新增 | +| ohos.sensor | GeomagneticResponse | geomagneticDip: number; | 新增 | +| ohos.sensor | GeomagneticResponse | z: number; | 新增 | +| ohos.sensor | GeomagneticResponse | y: number; | 新增 | +| ohos.sensor | GeomagneticResponse | x: number; | 新增 | +| ohos.sensor | LocationOptions | altitude: number; | 新增 | +| ohos.sensor | LocationOptions | longitude: number; | 新增 | +| ohos.sensor | LocationOptions | latitude: number; | 新增 | +| 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;| 新增 | +| 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; | 新增 | +| 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; | 新增 | \ No newline at end of file diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-settings.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-settings.md index dce4c7f9e0..a14266c90a 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-settings.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-settings.md @@ -1,14 +1,88 @@ -# xxx子系统JS API变更 +# 应用子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,应用子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.settings | settings | function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean; | 新增 | +| ohos.settings | settings | function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string; | 新增 | +| ohos.settings | settings | function getUriSync(name: string): string; | 新增 | +| ohos.settings | settings | function canShowFloating(callback: AsyncCallback): void;
function canShowFloating(): Promise; | 新增 | +| ohos.settings | settings | function enableAirplaneMode(enable: boolean, callback: AsyncCallback): void;
function enableAirplaneMode(enable: boolean): Promise; | 新增 | +| ohos.settings | settings | function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback): void;
function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise; | 新增 | +| ohos.settings | settings | function getURI(name: string, callback: AsyncCallback): void;
function getURI(name: string): Promise; | 新增 | +| ohos.settings | wireless | const WIFI_WATCHDOG_STATUS: string | 新增 | +| ohos.settings | wireless | const WIFI_STATUS: string | 新增 | +| ohos.settings | wireless | const WIFI_TO_MOBILE_DATA_AWAKE_TIMEOUT: string | 新增 | +| ohos.settings | wireless | const WIFI_DHCP_MAX_RETRY_COUNT: string | 新增 | +| ohos.settings | wireless | const OWNER_LOCKDOWN_WIFI_CFG: string | 新增 | +| ohos.settings | wireless | const WIFI_RADIO: string | 新增 | +| ohos.settings | wireless | const NFC_RADIO: string | 新增 | +| ohos.settings | wireless | const CELL_RADIO: string | 新增 | +| ohos.settings | wireless | const BLUETOOTH_RADIO: string | 新增 | +| ohos.settings | wireless | const BLUETOOTH_STATUS: string | 新增 | +| ohos.settings | wireless | const AIRPLANE_MODE_RADIOS: string | 新增 | +| ohos.settings | wireless | const BLUETOOTH_DISCOVER_TIMEOUT: string | 新增 | +| ohos.settings | wireless | const BLUETOOTH_DISCOVER_ABILITY_STATUS: string | 新增 | +| ohos.settings | TTS | const ENABLED_TTS_PLUGINS: string | 新增 | +| ohos.settings | TTS | const DEFAULT_TTS_SYNTH: string | 新增 | +| ohos.settings | TTS | const DEFAULT_TTS_RATE: string | 新增 | +| ohos.settings | TTS | const DEFAULT_TTS_PITCH: string | 新增 | +| ohos.settings | sound | const HAPTIC_FEEDBACK_STATUS: string | 新增 | +| ohos.settings | sound | const VIBRATE_STATUS: string | 新增 | +| ohos.settings | sound | const SOUND_EFFECTS_STATUS: string | 新增 | +| ohos.settings | sound | const DEFAULT_RINGTONE: string | 新增 | +| ohos.settings | sound | const DEFAULT_NOTIFICATION_SOUND: string | 新增 | +| ohos.settings | sound | const AFFECTED_MUTE_STREAMS: string | 新增 | +| ohos.settings | sound | const AFFECTED_MODE_RINGER_STREAMS: string | 新增 | +| ohos.settings | sound | const DTMF_TONE_WHILE_DIALING: string | 新增 | +| ohos.settings | sound | const DTMF_TONE_TYPE_WHILE_DIALING: string | 新增 | +| ohos.settings | sound | const DEFAULT_ALARM_ALERT: string | 新增 | +| ohos.settings | sound | const VIBRATE_WHILE_RINGING: string | 新增 | +| ohos.settings | phone | const RTT_CALLING_STATUS: string | 新增 | +| ohos.settings | network | const NETWORK_PREFERENCE_USAGE: string | 新增 | +| ohos.settings | network | const HTTP_PROXY_CFG: string | 新增 | +| ohos.settings | network | const DATA_ROAMING_STATUS: string | 新增 | +| ohos.settings | input | const SHOW_PASSWORD_TEXT_INPUT: string | 新增 | +| ohos.settings | input | const AUTO_REPLACE_TEXT_INPUT: string | 新增 | +| ohos.settings | input | const AUTO_PUNCTUATE_TEXT_INPUT: string | 新增 | +| ohos.settings | input | const AUTO_CAPS_TEXT_INPUT: string | 新增 | +| ohos.settings | input | const SELECTOR_VISIBILITY_FOR_INPUT_METHOD: string | 新增 | +| ohos.settings | input | const ACTIVATED_INPUT_METHODS: string | 新增 | +| ohos.settings | input | const ACTIVATED_INPUT_METHOD_SUB_MODE: string | 新增 | +| ohos.settings | input | const DEFAULT_INPUT_METHOD: string | 新增 | +| ohos.settings | general | const TOUCH_EXPLORATION_STATUS: string | 新增 | +| ohos.settings | general | const SKIP_USE_HINTS: string | 新增 | +| ohos.settings | general | const GEOLOCATION_ORIGINS_ALLOWED: string | 新增 | +| ohos.settings | general | const ACTIVATED_ACCESSIBILITY_SERVICES: string | 新增 | +| ohos.settings | general | const ACCESSIBILITY_STATUS: string | 新增 | +| ohos.settings | general | const DEBUG_APP_PACKAGE: string | 新增 | +| ohos.settings | general | const DEBUGGER_WAITING: string | 新增 | +| ohos.settings | general | const USB_STORAGE_STATUS: string | 新增 | +| ohos.settings | general | const DEVICE_NAME: string | 新增 | +| ohos.settings | general | const DEVELOPMENT_SETTINGS_STATUS: string | 新增 | +| ohos.settings | general | const CONTACT_METADATA_SYNC_STATUS: string | 新增 | +| ohos.settings | general | const BOOT_COUNTING: string | 新增 | +| ohos.settings | general | const HDC_STATUS: string | 新增 | +| ohos.settings | general | const DEVICE_PROVISION_STATUS: string | 新增 | +| ohos.settings | general | const AIRPLANE_MODE_STATUS: string | 新增 | +| ohos.settings | general | const ACCELEROMETER_ROTATION_STATUS: string | 新增 | +| ohos.settings | general | const END_BUTTON_ACTION: string | 新增 | +| ohos.settings | general | const SETUP_WIZARD_FINISHED: string | 新增 | +| ohos.settings | display | const DISPLAY_INVERSION_STATUS: string | 新增 | +| ohos.settings | display | const WINDOW_ANIMATION_SCALE: string | 新增 | +| ohos.settings | display | const TRANSITION_ANIMATION_SCALE: string | 新增 | +| ohos.settings | display | const ANIMATOR_DURATION_SCALE: string | 新增 | +| ohos.settings | display | const DEFAULT_SCREEN_ROTATION: string | 新增 | +| ohos.settings | display | const SCREEN_OFF_TIMEOUT: string | 新增 | +| ohos.settings | display | const MANUAL_SCREEN_BRIGHTNESS_MODE: number | 新增 | +| ohos.settings | display | const AUTO_SCREEN_BRIGHTNESS_MODE: number | 新增 | +| ohos.settings | display | const AUTO_SCREEN_BRIGHTNESS: string | 新增 | +| ohos.settings | display | const SCREEN_BRIGHTNESS_STATUS: string | 新增 | +| ohos.settings | display | const FONT_SCALE: string | 新增 | +| ohos.settings | date | const AUTO_GAIN_TIME_ZONE: string | 新增 | +| ohos.settings | date | const AUTO_GAIN_TIME: string | 新增 | +| ohos.settings | date | const TIME_FORMAT: string | 新增 | +| ohos.settings | date | const DATE_FORMAT: string | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md index dce4c7f9e0..1400f329e3 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md @@ -1,14 +1,43 @@ -# xxx子系统JS API变更 +# 分布式软总线子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,分布式软总线子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.rpc | Ashmem | readFromAshmem(size: number, offset: number): number[]; | 新增 | +| ohos.rpc | Ashmem | writeToAshmem(buf: number[], size: number, offset: number): boolean; | 新增 | +| ohos.rpc | Ashmem | setProtection(protectionType: number): boolean; | 新增 | +| ohos.rpc | Ashmem | mapReadOnlyAshmem(): boolean; | 新增 | +| ohos.rpc | Ashmem | mapReadAndWriteAshmem(): boolean; | 新增 | +| ohos.rpc | Ashmem | mapAshmem(mapType: number): boolean; | 新增 | +| ohos.rpc | Ashmem | getAshmemSize(): number; | 新增 | +| ohos.rpc | Ashmem | unmapAshmem(): void; | 新增 | +| ohos.rpc | Ashmem | closeAshmem(): void; | 新增 | +| ohos.rpc | Ashmem | static createAshmemFromExisting(ashmem: Ashmem): Ashmem; | 新增 | +| ohos.rpc | Ashmem | static createAshmem(name: string, size: number): Ashmem; | 新增 | +| ohos.rpc | Ashmem | PROT_WRITE = 2; | 新增 | +| ohos.rpc | Ashmem | PROT_READ = 1; | 新增 | +| ohos.rpc | Ashmem | PROT_NONE = 0; | 新增 | +| ohos.rpc | Ashmem | PROT_EXEC = 4; | 新增 | +| ohos.rpc | IPCSkeleton | static getCallingTokenId(): number; | 新增 | +| ohos.rpc | SendRequestResult | reply: MessageParcel; | 新增 | +| ohos.rpc | SendRequestResult | data: MessageParcel; | 新增 | +| ohos.rpc | SendRequestResult | code: number; | 新增 | +| ohos.rpc | SendRequestResult | errCode: number; | 新增 | +| ohos.rpc | MessageParcel | readRawData(size: number): number[]; | 新增 | +| ohos.rpc | MessageParcel | writeRawData(rawData: number[], size: number): boolean; | 新增 | +| ohos.rpc | MessageParcel | getRawDataCapacity(): number; | 新增 | +| ohos.rpc | MessageParcel | readAshmem(): Ashmem; | 新增 | +| ohos.rpc | MessageParcel | writeAshmem(ashmem: Ashmem): boolean; | 新增 | +| ohos.rpc | MessageParcel | readFileDescriptor(): number; | 新增 | +| ohos.rpc | MessageParcel | writeFileDescriptor(fd: number): boolean; | 新增 | +| ohos.rpc | MessageParcel | containFileDescriptors(): boolean; | 新增 | +| ohos.rpc | MessageParcel | static dupFileDescriptor(fd: number) :number; | 新增 | +| ohos.rpc | MessageParcel | static closeFileDescriptor(fd: number): void; | 新增 | +| ohos.rpc | MessageParcel | readRemoteObjectArray(objects: IRemoteObject[]): void;
readRemoteObjectArray(): IRemoteObject[]; | 新增 | +| ohos.rpc | MessageParcel | readSequenceableArray(sequenceableArray: Sequenceable[]): void; | 新增 | +| ohos.rpc | MessageParcel | writeRemoteObjectArray(objectArray: IRemoteObject[]): boolean; | 新增 | +| ohos.rpc | MessageParcel | readException(): void; | 新增 | +| ohos.rpc | MessageParcel | writeNoException(): void; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md index dce4c7f9e0..7e206375dc 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md @@ -1,14 +1,230 @@ -# xxx子系统JS API变更 +# 电话服务子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,电话服务子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.telephony.sms | sms | function hasSmsCapability(): boolean; | 新增 | +| ohos.telephony.sim | CardType | SINGLE_MODE_ISIM_CARD = 60 | 新增 | +| ohos.telephony.sim | CardType | DUAL_MODE_UG_CARD = 50 | 新增 | +| ohos.telephony.sim | CardType | DUAL_MODE_TELECOM_LTE_CARD = 43 | 新增 | +| ohos.telephony.sim | CardType | CU_DUAL_MODE_CARD = 42 | 新增 | +| ohos.telephony.sim | CardType | CT_NATIONAL_ROAMING_CARD = 41 | 新增 | +| ohos.telephony.sim | CardType | DUAL_MODE_CG_CARD = 40 | 新增 | +| ohos.telephony.sim | CardType | SINGLE_MODE_RUIM_CARD = 30 | 新增 | +| ohos.telephony.sim | CardType | SINGLE_MODE_USIM_CARD = 20 | 新增 | +| ohos.telephony.sim | CardType | SINGLE_MODE_SIM_CARD = 10 | 新增 | +| ohos.telephony.sim | CardType | UNKNOWN_CARD = -1 | 新增 | +| ohos.telephony.sim | sim | function hasSimCard(slotId: number, callback: AsyncCallback): void;
function hasSimCard(slotId: number): Promise; | 新增 | +| ohos.telephony.sim | sim | function getMaxSimCount(): number; | 新增 | +| ohos.telephony.sim | sim | function getCardType(slotId: number, callback: AsyncCallback): void;
function getCardType(slotId: number): Promise; | 新增 | +| ohos.telephony.sim | sim | function hasOperatorPrivileges(slotId: number, callback: AsyncCallback): void;
function hasOperatorPrivileges(slotId: number): Promise; | 新增 | +| ohos.telephony.sim | sim | function isSimActive(slotId: number, callback: AsyncCallback): void;
function isSimActive(slotId: number): Promise; | 新增 | +| ohos.telephony.radio | NetworkState | cfgTech: RadioTechnology; | 新增 | +| ohos.telephony.radio | radio | function getOperatorName(slotId: number, callback: AsyncCallback): void;
function getOperatorName(slotId: number): Promise; | 新增 | +| ohos.telephony.radio | radio | function isNrSupported(): boolean;
function isNrSupported(slotId: number): boolean; | 新增 | +| ohos.telephony.radio | radio | function getPrimarySlotId(callback: AsyncCallback): void;
function getPrimarySlotId(): Promise; | 新增 | +| ohos.telephony.observer | LockReason | SIM_SIM_PUK | 新增 | +| ohos.telephony.observer | LockReason | SIM_SIM_PIN | 新增 | +| ohos.telephony.observer | LockReason | SIM_PC_PUK | 新增 | +| ohos.telephony.observer | LockReason | SIM_PC_PIN | 新增 | +| ohos.telephony.observer | LockReason | SIM_PP_PUK | 新增 | +| ohos.telephony.observer | LockReason | SIM_PP_PIN | 新增 | +| ohos.telephony.observer | LockReason | SIM_PU_PUK | 新增 | +| ohos.telephony.observer | LockReason | SIM_PU_PIN | 新增 | +| ohos.telephony.observer | LockReason | SIM_PN_PUK | 新增 | +| ohos.telephony.observer | LockReason | SIM_PN_PIN | 新增 | +| ohos.telephony.observer | LockReason | SIM_PUK | 新增 | +| ohos.telephony.observer | LockReason | SIM_PIN | 新增 | +| ohos.telephony.observer | LockReason | SIM_NONE | 新增 | +| ohos.telephony.observer | SimStateData | reason: LockReason; | 新增 | +| ohos.telephony.observer | SimStateData | state: SimState; | 新增 | +| ohos.telephony.observer | SimStateData | type: CardType; | 新增 | +| ohos.telephony.observer | observer | function off(type: 'simStateChange', callback?: Callback): void; | 新增 | +| ohos.telephony.observer | observer | function on(type: 'simStateChange', callback: Callback): void;
function on(type: 'simStateChange', options: { slotId: number }, callback: Callback): void; | 新增 | +| ohos.telephony.observer | observer | function off(type: 'cellularDataFlowChange', callback?: Callback): void; | 新增 | +| ohos.telephony.observer | observer | function on(type: 'cellularDataFlowChange', callback: Callback): void;
function on(type: 'cellularDataFlowChange', options: { slotId: number },callback: Callback): void;| 新增 | +| ohos.telephony.observer | observer | function off(type: 'cellularDataConnectionStateChange',callback?: Callback<{ state: DataConnectState, network: RatType }>): void;| 新增 | +| 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; | 新增 | +| ohos.telephony.data | DataConnectState | DATA_STATE_SUSPENDED = 3 | 新增 | +| ohos.telephony.data | DataConnectState | DATA_STATE_CONNECTED = 2 | 新增 | +| ohos.telephony.data | DataConnectState | DATA_STATE_CONNECTING = 1 | 新增 | +| ohos.telephony.data | DataConnectState | DATA_STATE_DISCONNECTED = 0 | 新增 | +| ohos.telephony.data | DataConnectState | DATA_STATE_UNKNOWN = -1 | 新增 | +| ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_DORMANT = 4 | 新增 | +| ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_UP_DOWN = 3 | 新增 | +| ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_UP = 2 | 新增 | +| ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_DOWN = 1 | 新增 | +| ohos.telephony.data | DataFlowType | DATA_FLOW_TYPE_NONE = 0 | 新增 | +| ohos.telephony.data | data | function isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback): void;
function isCellularDataRoamingEnabled(slotId: number): Promise; | 新增 | +| ohos.telephony.data | data | function isCellularDataEnabled(callback: AsyncCallback): void;
function isCellularDataEnabled(): Promise; | 新增 | +| ohos.telephony.data | data | function getCellularDataState(callback: AsyncCallback): void;
function getCellularDataState(): Promise; | 新增 | +| ohos.telephony.data | data | function getCellularDataFlowType(callback: AsyncCallback): void;
function getCellularDataFlowType(): Promise; | 新增 | +| ohos.telephony.data | data | function getDefaultCellularDataSlotId(callback: AsyncCallback): void;
function getDefaultCellularDataSlotId(): Promise; | 新增 | +| ohos.telephony.call | call | function hasVoiceCapability(): boolean; | 新增 | +| ohos.telephony.call | call | function makeCall(phoneNumber: string, callback: AsyncCallback): void;
function makeCall(phoneNumber: string): Promise; | 新增 | +| ohos.contact | Website | website: string | 新增 | +| ohos.contact | SipAddress | labelId: number | 新增 | +| ohos.contact | SipAddress | sipAddress: string | 新增 | +| ohos.contact | SipAddress | labelName: string | 新增 | +| ohos.contact | SipAddress | static readonly INVALID_LABEL_ID: -1 | 新增 | +| ohos.contact | SipAddress | static readonly SIP_OTHER: 3 | 新增 | +| ohos.contact | SipAddress | static readonly SIP_WORK: 2 | 新增 | +| ohos.contact | SipAddress | static readonly SIP_HOME: 1 | 新增 | +| ohos.contact | SipAddress | static readonly CUSTOM_LABEL: 0 | 新增 | +| ohos.contact | Relation | labelId: number | 新增 | +| ohos.contact | Relation | relationName: string | 新增 | +| ohos.contact | Relation | labelName: string | 新增 | +| ohos.contact | Relation | static readonly INVALID_LABEL_ID: -1 | 新增 | +| ohos.contact | Relation | static readonly RELATION_SPOUSE: 14 | 新增 | +| ohos.contact | Relation | static readonly RELATION_SISTER: 13 | 新增 | +| ohos.contact | Relation | static readonly RELATION_RELATIVE: 12 | 新增 | +| ohos.contact | Relation | static readonly RELATION_REFERRED_BY: 11 | 新增 | +| ohos.contact | Relation | static readonly RELATION_PARTNER: 10 | 新增 | +| ohos.contact | Relation | static readonly RELATION_PARENT: 9 | 新增 | +| ohos.contact | Relation | static readonly RELATION_MOTHER: 8 | 新增 | +| ohos.contact | Relation | static readonly RELATION_MANAGER: 7 | 新增 | +| ohos.contact | Relation | static readonly RELATION_FRIEND: 6 | 新增 | +| ohos.contact | Relation | static readonly RELATION_FATHER: 5 | 新增 | +| ohos.contact | Relation | static readonly RELATION_DOMESTIC_PARTNER: 4 | 新增 | +| ohos.contact | Relation | static readonly RELATION_CHILD: 3 | 新增 | +| ohos.contact | Relation | static readonly RELATION_BROTHER: 2 | 新增 | +| ohos.contact | Relation | static readonly RELATION_ASSISTANT: 1 | 新增 | +| ohos.contact | Relation | static readonly CUSTOM_LABEL: 0 | 新增 | +| ohos.contact | PostalAddress | labelId: number | 新增 | +| ohos.contact | PostalAddress | street: string | 新增 | +| ohos.contact | PostalAddress | region: string | 新增 | +| ohos.contact | PostalAddress | postcode: string | 新增 | +| ohos.contact | PostalAddress | postalAddress: string | 新增 | +| ohos.contact | PostalAddress | pobox: string | 新增 | +| ohos.contact | PostalAddress | neighborhood: string | 新增 | +| ohos.contact | PostalAddress | labelName: string | 新增 | +| ohos.contact | PostalAddress | country: string | 新增 | +| ohos.contact | PostalAddress | city: string | 新增 | +| ohos.contact | PostalAddress | static readonly INVALID_LABEL_ID: -1 | 新增 | +| ohos.contact | PostalAddress | static readonly ADDR_OTHER: 3 | 新增 | +| ohos.contact | PostalAddress | static readonly ADDR_WORK: 2 | 新增 | +| ohos.contact | PostalAddress | static readonly ADDR_HOME: 1 | 新增 | +| ohos.contact | PostalAddress | static readonly CUSTOM_LABEL: 0 | 新增 | +| ohos.contact | Portrait | uri: string | 新增 | +| ohos.contact | PhoneNumber | labelId: number | 新增 | +| ohos.contact | PhoneNumber | phoneNumber: string | 新增 | +| ohos.contact | PhoneNumber | labelName: string | 新增 | +| ohos.contact | PhoneNumber | static readonly INVALID_LABEL_ID: -1 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_MMS: 20 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_ASSISTANT: 19 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_WORK_PAGER: 18 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_WORK_MOBILE: 17 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_TTY_TDD: 16 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_TELEX: 15 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_RADIO: 14 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_OTHER_FAX: 13 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_MAIN: 12 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_ISDN: 11 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_COMPANY_MAIN: 10 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_CAR: 9 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_CALLBACK: 8 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_OTHER: 7 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_PAGER: 6 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_FAX_HOME: 5 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_FAX_WORK: 4 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_WORK: 3 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_MOBILE: 2 | 新增 | +| ohos.contact | PhoneNumber | static readonly NUM_HOME: 1 | 新增 | +| ohos.contact | PhoneNumber | static readonly CUSTOM_LABEL: 0 | 新增 | +| ohos.contact | Organization | title: string | 新增 | +| ohos.contact | Organization | name: string | 新增 | +| ohos.contact | Note | noteContent: string | 新增 | +| ohos.contact | NickName | nickName: string | 新增 | +| ohos.contact | Name | nameSuffix: string | 新增 | +| ohos.contact | Name | namePrefix: string | 新增 | +| ohos.contact | Name | middleNamePhonetic: string | 新增 | +| ohos.contact | Name | middleName: string | 新增 | +| ohos.contact | Name | givenNamePhonetic: string | 新增 | +| ohos.contact | Name | givenName: string | 新增 | +| ohos.contact | Name | fullName: string | 新增 | +| ohos.contact | Name | familyNamePhonetic: string | 新增 | +| ohos.contact | Name | familyName: string | 新增 | +| ohos.contact | ImAddress | labelId: number | 新增 | +| ohos.contact | ImAddress | labelName: string | 新增 | +| ohos.contact | ImAddress | imAddress: string | 新增 | +| ohos.contact | ImAddress | static readonly INVALID_LABEL_ID: -2 | 新增 | +| ohos.contact | ImAddress | static readonly IM_JABBER: 7 | 新增 | +| ohos.contact | ImAddress | static readonly IM_ICQ: 6 | 新增 | +| ohos.contact | ImAddress | static readonly IM_QQ: 4 | 新增 | +| ohos.contact | ImAddress | static readonly IM_SKYPE: 3 | 新增 | +| ohos.contact | ImAddress | static readonly IM_YAHOO: 2 | 新增 | +| ohos.contact | ImAddress | static readonly IM_MSN: 1 | 新增 | +| ohos.contact | ImAddress | static readonly IM_AIM: 0 | 新增 | +| ohos.contact | ImAddress | static readonly CUSTOM_LABEL: -1 | 新增 | +| ohos.contact | Holder | holderId: number | 新增 | +| ohos.contact | Holder | readonly displayName: string | 新增 | +| ohos.contact | Holder | readonly bundleName: string | 新增 | +| ohos.contact | Group | title: string | 新增 | +| ohos.contact | Group | groupId: number | 新增 | +| ohos.contact | Event | labelId: number | 新增 | +| ohos.contact | Event | labelName: string | 新增 | +| ohos.contact | Event | eventDate: string | 新增 | +| ohos.contact | Event | static readonly INVALID_LABEL_ID: -1 | 新增 | +| ohos.contact | Event | static readonly EVENT_BIRTHDAY: 3 | 新增 | +| ohos.contact | Event | static readonly EVENT_OTHER: 2 | 新增 | +| ohos.contact | Event | static readonly EVENT_ANNIVERSARY: 1 | 新增 | +| ohos.contact | Event | static readonly CUSTOM_LABEL: 0 | 新增 | +| ohos.contact | Email | labelId: number | 新增 | +| ohos.contact | Email | displayName: string | 新增 | +| ohos.contact | Email | labelName: string | 新增 | +| ohos.contact | Email | email: string | 新增 | +| ohos.contact | Email | static readonly INVALID_LABEL_ID: -1 | 新增 | +| ohos.contact | Email | static readonly EMAIL_OTHER: 3 | 新增 | +| ohos.contact | Email | static readonly EMAIL_WORK: 2 | 新增 | +| ohos.contact | Email | static readonly EMAIL_HOME: 1 | 新增 | +| ohos.contact | Email | static readonly CUSTOM_LABEL: 0 | 新增 | +| ohos.contact | Attribute | ATTR_WEBSITE | 新增 | +| ohos.contact | Attribute | ATTR_SIP_ADDRESS | 新增 | +| ohos.contact | Attribute | ATTR_RELATION | 新增 | +| ohos.contact | Attribute | ATTR_POSTAL_ADDRESS | 新增 | +| ohos.contact | Attribute | ATTR_PORTRAIT | 新增 | +| ohos.contact | Attribute | ATTR_PHONE | 新增 | +| ohos.contact | Attribute | ATTR_ORGANIZATION | 新增 | +| ohos.contact | Attribute | ATTR_NOTE | 新增 | +| ohos.contact | Attribute | ATTR_NICKNAME | 新增 | +| ohos.contact | Attribute | ATTR_NAME | 新增 | +| ohos.contact | Attribute | ATTR_IM | 新增 | +| ohos.contact | Attribute | ATTR_GROUP_MEMBERSHIP | 新增 | +| ohos.contact | Attribute | ATTR_EMAIL | 新增 | +| ohos.contact | Attribute | ATTR_CONTACT_EVENT | 新增 | +| ohos.contact | ContactAttributes | attributes: Attribute[] | 新增 | +| ohos.contact | Contact | organization: Organization | 新增 | +| ohos.contact | Contact | note: Note | 新增 | +| ohos.contact | Contact | nickName: NickName | 新增 | +| ohos.contact | Contact | name: Name | 新增 | +| ohos.contact | Contact | websites: Website[] | 新增 | +| ohos.contact | Contact | sipAddresses: SipAddress[] | 新增 | +| ohos.contact | Contact | relations: Relation[] | 新增 | +| ohos.contact | Contact | postalAddresses: PostalAddress[] | 新增 | +| ohos.contact | Contact | portrait: Portrait | 新增 | +| ohos.contact | Contact | phoneNumbers: PhoneNumber[] | 新增 | +| ohos.contact | Contact | imAddresses: ImAddress[] | 新增 | +| ohos.contact | Contact | groups: Group[] | 新增 | +| ohos.contact | Contact | events: Event[] | 新增 | +| ohos.contact | Contact | emails: Email[] | 新增 | +| ohos.contact | Contact | contactAttributes: ContactAttributes | 新增 | +| ohos.contact | Contact | readonly key: string | 新增 | +| ohos.contact | Contact | readonly id: number | 新增 | +| ohos.contact | Contact | static readonly INVALID_CONTACT_ID: -1 | 新增 | +| ohos.contact | contact | function isMyCard(id: number, callback: AsyncCallback): void;
function isMyCard(id: number): Promise; | 新增 | +| ohos.contact | contact | function isLocalContact(id: number, callback: AsyncCallback): void;
function isLocalContact(id: number): Promise; | 新增 | +| 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; | 新增 | +| ohos.contact | contact | function queryMyCard(callback: AsyncCallback): void;
function queryMyCard(attrs: ContactAttributes, callback: AsyncCallback): void;
function queryMyCard(attrs?: ContactAttributes): Promise; | 新增 | +| 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; | 新增 | +| ohos.contact | contact | function queryHolders(callback: AsyncCallback>): void;
function queryHolders(): Promise>; | 新增 | +| ohos.contact | contact | function queryGroups(callback: AsyncCallback>): void;
function queryGroups(holder: Holder, callback: AsyncCallback>): void;
function queryGroups(holder?: Holder): Promise>; | 新增 | +| 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>; | 新增 | +| 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>; | 新增 | +| 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>; | 新增 | +| 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; | 新增 | +| ohos.contact | contact | function deleteContact(key: string, callback: AsyncCallback): void;
function deleteContact(key: string): Promise; | 新增 | +| ohos.contact | contact | function selectContact(callback: AsyncCallback>): void;
function selectContact(): Promise>; | 新增 | +| ohos.contact | contact | function addContact(contact: Contact, callback: AsyncCallback): void;
function addContact(contact: Contact): Promise; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md new file mode 100644 index 0000000000..8f52e684d2 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md @@ -0,0 +1,49 @@ +# 测试框架子系统JS API变更 + +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,测试框架子系统的API变更如下: + +## 接口变更 + +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.uitest | UiDriver | screenCap(savePath:string):Promise; | 新增 | +| ohos.uitest | UiDriver | swipe(startx:number,starty:number,endx:number,endy:number):Promise; | 新增 | +| ohos.uitest | UiDriver | longClick(x:number,y:number):Promise; | 新增 | +| ohos.uitest | UiDriver | doubleClick(x:number,y:number):Promise; | 新增 | +| ohos.uitest | UiDriver | click(x:number,y:number):Promise; | 新增 | +| ohos.uitest | UiDriver | triggerKey(keyCode:number):Promise; | 新增 | +| ohos.uitest | UiDriver | pressBack():Promise; | 新增 | +| ohos.uitest | UiDriver | assertComponentExist(by:By):Promise; | 新增 | +| ohos.uitest | UiDriver | findComponents(by:By):Promise>; | 新增 | +| ohos.uitest | UiDriver | findComponent(by:By):Promise; | 新增 | +| ohos.uitest | UiDriver | delayMs(duration:number):Promise; | 新增 | +| ohos.uitest | UiDriver | static create():UiDriver; | 新增 | +| ohos.uitest | UiComponent | scrollSearch(by:By):Promise; | 新增 | +| ohos.uitest | UiComponent | inputText(text: string):Promise; | 新增 | +| ohos.uitest | UiComponent | isSelected():Promise; | 新增 | +| ohos.uitest | UiComponent | isFocused():Promise; | 新增 | +| ohos.uitest | UiComponent | isEnabled():Promise; | 新增 | +| ohos.uitest | UiComponent | isScrollable():Promise; | 新增 | +| ohos.uitest | UiComponent | isClickable():Promise; | 新增 | +| ohos.uitest | UiComponent | getType():Promise; | 新增 | +| ohos.uitest | UiComponent | getText():Promise; | 新增 | +| ohos.uitest | UiComponent | getKey():Promise; | 新增 | +| ohos.uitest | UiComponent | getId():Promise; | 新增 | +| ohos.uitest | UiComponent | longClick():Promise; | 新增 | +| ohos.uitest | UiComponent | doubleClick():Promise; | 新增 | +| ohos.uitest | UiComponent | click():Promise; | 新增 | +| ohos.uitest | By | isAfter(by:By):By; | 新增 | +| ohos.uitest | By | isBefore(by:By):By; | 新增 | +| ohos.uitest | By | selected(b?:bool):By; | 新增 | +| ohos.uitest | By | focused(b?:bool):By; | 新增 | +| ohos.uitest | By | enabled(b?:bool):By; | 新增 | +| ohos.uitest | By | scrollable(b?:bool):By; | 新增 | +| ohos.uitest | By | clickable(b?:bool):By; | 新增 | +| ohos.uitest | By | type(tp:string):By; | 新增 | +| ohos.uitest | By | id(id:number):By; | 新增 | +| ohos.uitest | By | key(key:string):By; | 新增 | +| ohos.uitest | By | text(txt:string,pattern?:MatchPattern):By; | 新增 | +| ohos.uitest | MatchPattern | ENDS_WITH = 3 | 新增 | +| ohos.uitest | MatchPattern | STARTS_WITH = 2 | 新增 | +| ohos.uitest | MatchPattern | CONTAINS = 1 | 新增 | +| ohos.uitest | MatchPattern | EQUALS = 0 | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-usb.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-usb.md index dce4c7f9e0..b10c55c50a 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-usb.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-usb.md @@ -1,14 +1,73 @@ -# xxx子系统JS API变更 +# USB服务子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,USB服务子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.usb | USBRequestDirection | USB_REQUEST_DIR_FROM_DEVICE = 0x80 | 新增 | +| ohos.usb | USBRequestDirection | USB_REQUEST_DIR_TO_DEVICE = 0 | 新增 | +| ohos.usb | USBControlRequestType | USB_REQUEST_TYPE_VENDOR | 新增 | +| ohos.usb | USBControlRequestType | USB_REQUEST_TYPE_CLASS | 新增 | +| ohos.usb | USBControlRequestType | USB_REQUEST_TYPE_STANDARD = 0 | 新增 | +| ohos.usb | USBRequestTargetType | USB_REQUEST_TARGET_OTHER | 新增 | +| ohos.usb | USBRequestTargetType | USB_REQUEST_TARGET_ENDPOINT | 新增 | +| ohos.usb | USBRequestTargetType | USB_REQUEST_TARGET_INTERFACE | 新增 | +| ohos.usb | USBRequestTargetType | USB_REQUEST_TARGET_DEVICE = 0 | 新增 | +| ohos.usb | USBControlParams | data: Uint8Array; | 新增 | +| ohos.usb | USBControlParams | index: number; | 新增 | +| ohos.usb | USBControlParams | value: number; | 新增 | +| ohos.usb | USBControlParams | reqType: USBControlRequestType; | 新增 | +| ohos.usb | USBControlParams | target: USBRequestTargetType; | 新增 | +| ohos.usb | USBControlParams | request: number; | 新增 | +| ohos.usb | USBDevicePipe | devAddress: number; | 新增 | +| ohos.usb | USBDevicePipe | busNum: number; | 新增 | +| ohos.usb | USBDevice | configs: Array; | 新增 | +| ohos.usb | USBDevice | protocol: number; | 新增 | +| ohos.usb | USBDevice | subClass: number; | 新增 | +| ohos.usb | USBDevice | clazz: number; | 新增 | +| ohos.usb | USBDevice | productId: number; | 新增 | +| ohos.usb | USBDevice | vendorId: number; | 新增 | +| ohos.usb | USBDevice | version: string; | 新增 | +| ohos.usb | USBDevice | productName: string; | 新增 | +| ohos.usb | USBDevice | manufacturerName: string; | 新增 | +| ohos.usb | USBDevice | name: string; | 新增 | +| ohos.usb | USBDevice | serial: string; | 新增 | +| ohos.usb | USBDevice | devAddress: number; | 新增 | +| ohos.usb | USBDevice | busNum: number; | 新增 | +| ohos.usb | USBConfig | interfaces: Array; | 新增 | +| ohos.usb | USBConfig | isSelfPowered: boolean; | 新增 | +| ohos.usb | USBConfig | isRemoteWakeup: boolean; | 新增 | +| ohos.usb | USBConfig | name: string; | 新增 | +| ohos.usb | USBConfig | maxPower: number; | 新增 | +| ohos.usb | USBConfig | attributes: number; | 新增 | +| ohos.usb | USBConfig | id: number; | 新增 | +| ohos.usb | USBInterface | endpoints: Array; | 新增 | +| ohos.usb | USBInterface | name: string; | 新增 | +| ohos.usb | USBInterface | alternateSetting: number; | 新增 | +| ohos.usb | USBInterface | subClass: number; | 新增 | +| ohos.usb | USBInterface | clazz: number; | 新增 | +| ohos.usb | USBInterface | protocol: number; | 新增 | +| ohos.usb | USBInterface | id: number; | 新增 | +| ohos.usb | USBEndpoint | interfaceId: number; | 新增 | +| ohos.usb | USBEndpoint | type: number; | 新增 | +| ohos.usb | USBEndpoint | number: number; | 新增 | +| ohos.usb | USBEndpoint | direction: USBRequestDirection; | 新增 | +| ohos.usb | USBEndpoint | maxPacketSize: number; | 新增 | +| ohos.usb | USBEndpoint | interval: number; | 新增 | +| ohos.usb | USBEndpoint | attributes: number; | 新增 | +| ohos.usb | USBEndpoint | address: number; | 新增 | +| ohos.usb | usb | function closePipe(pipe: USBDevicePipe): number; | 新增 | +| ohos.usb | usb | function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,timeout?: number): Promise; | 新增 | +| ohos.usb | usb | function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise; | 新增 | +| ohos.usb | usb | function getFileDescriptor(pipe: USBDevicePipe): number; | 新增 | +| ohos.usb | usb | function getRawDescriptor(pipe: USBDevicePipe): Uint8Array; | 新增 | +| ohos.usb | usb | function setInterface(pipe: USBDevicePipe, iface: USBInterface): number; | 新增 | +| ohos.usb | usb | function setConfiguration(pipe: USBDevicePipe, config: USBConfig): number; | 新增 | +| ohos.usb | usb | function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number; | 新增 | +| ohos.usb | usb | function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number; | 新增 | +| ohos.usb | usb | function requestRight(deviceName: string): Promise; | 新增 | +| ohos.usb | usb | function hasRight(deviceName: string): boolean; | 新增 | +| ohos.usb | usb | function connectDevice(device: USBDevice): Readonly; | 新增 | +| ohos.usb | usb | function getDevices(): Array>; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md index dce4c7f9e0..0d349c07d0 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md @@ -1,14 +1,65 @@ -# xxx子系统JS API变更 +# 用户身份认证子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,用户身份认证子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.userIAM.userAuth | AuthTrustLevel | ATL4 = 40000 | 新增 | +| ohos.userIAM.userAuth | AuthTrustLevel | ATL3 = 30000 | 新增 | +| ohos.userIAM.userAuth | AuthTrustLevel | ATL2 = 20000 | 新增 | +| ohos.userIAM.userAuth | AuthTrustLevel | ATL1 = 10000 | 新增 | +| ohos.userIAM.userAuth | UserAuthType | FINGERPRINT = 4 | 新增 | +| ohos.userIAM.userAuth | UserAuthType | FACE = 2 | 新增 | +| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_TOO_SLOW = 5 | 新增 | +| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_TOO_FAST = 4 | 新增 | +| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_PARTIAL = 3 | 新增 | +| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_INSUFFICIENT = 2 | 新增 | +| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_DIRTY = 1 | 新增 | +| ohos.userIAM.userAuth | FingerprintTips | FINGERPRINT_AUTH_TIP_GOOD = 0 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_NOT_DETECTED = 11 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_POOR_GAZE = 10 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_MUCH_MOTION = 9 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_LEFT = 8 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_RIGHT = 7 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_LOW = 6 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_HIGH = 5 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_FAR = 4 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_CLOSE = 3 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_DARK = 2 | 新增 | +| ohos.userIAM.userAuth | FaceTips | FACE_AUTH_TIP_TOO_BRIGHT = 1 | 新增 | +| ohos.userIAM.userAuth | ResultCode | NOT_ENROLLED = 10 | 新增 | +| ohos.userIAM.userAuth | ResultCode | LOCKED = 9 | 新增 | +| ohos.userIAM.userAuth | ResultCode | INVALID_PARAMETERS = 8 | 新增 | +| ohos.userIAM.userAuth | ResultCode | BUSY = 7 | 新增 | +| ohos.userIAM.userAuth | ResultCode | TRUST_LEVEL_NOT_SUPPORT = 6 | 新增 | +| ohos.userIAM.userAuth | ResultCode | TYPE_NOT_SUPPORT = 5 | 新增 | +| ohos.userIAM.userAuth | ResultCode | TIMEOUT = 4 | 新增 | +| ohos.userIAM.userAuth | ResultCode | CANCELED = 3 | 新增 | +| ohos.userIAM.userAuth | ResultCode | GENERAL_ERROR = 2 | 新增 | +| ohos.userIAM.userAuth | ResultCode | FAIL = 1 | 新增 | +| ohos.userIAM.userAuth | ResultCode | SUCCESS = 0 | 新增 | +| ohos.userIAM.userAuth | AuthResult | freezingTime ?: number; | 新增 | +| ohos.userIAM.userAuth | AuthResult | remainTimes ?: number; | 新增 | +| ohos.userIAM.userAuth | AuthResult | token ?: Uint8Array; | 新增 | +| ohos.userIAM.userAuth | IUserAuthCallback | onAcquireInfo ?: (module : number, acquire : number, extraInfo : any) => void; | 新增 | +| ohos.userIAM.userAuth | IUserAuthCallback | onResult: (result : number, extraInfo : AuthResult) => void; | 新增 | +| ohos.userIAM.userAuth | UserAuth | cancelAuth(contextID : Uint8Array) : number; | 新增 | +| ohos.userIAM.userAuth | UserAuth | auth(challenge: Uint8Array, authType: UserAuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array; | 新增 | +| ohos.userIAM.userAuth | UserAuth | getAvailableStatus(authType : UserAuthType, authTrustLevel : AuthTrustLevel) : number; | 新增 | +| ohos.userIAM.userAuth | UserAuth | getVersion() : number; | 新增 | +| ohos.userIAM.userAuth | UserAuth | constructor(); | 新增 | +| ohos.userIAM.userAuth | userAuth | function getAuthenticator(): Authenticator; | 新增 | +| ohos.userIAM.userAuth | Authenticator | execute(type: AuthType, level: SecureLevel, callback: AsyncCallback): void;
execute(type: AuthType, level: SecureLevel): Promise; | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | GENERAL_ERROR = 100 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | NOT_ENROLLED = 8 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | LOCKED = 7 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | INVALID_PARAMETERS = 6 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | BUSY = 5 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | CAMERA_FAIL = 4 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | TIMEOUT = 3 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | CANCELED = 2 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | COMPARE_FAILURE = 1 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | SUCCESS = 0 | 新增 | +| ohos.userIAM.userAuth | AuthenticationResult | NO_SUPPORT = -1 | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window.md b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window.md index dce4c7f9e0..b1d4d42814 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/js-apidiff-window.md @@ -1,14 +1,97 @@ -# xxx子系统JS API变更 +# 窗口管理子系统JS API变更 -OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下: +OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,窗口管理子系统的API变更如下: ## 接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|---|---|---|---| +| ohos.window | Window | setTouchable(isTouchable: boolean): Promise;
setTouchable(isTouchable: boolean, callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | setPrivacyMode(isPrivacyMode: boolean): Promise;
setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | setOutsideTouchable(touchable: boolean): Promise;
setOutsideTouchable(touchable: boolean, callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | setKeepScreenOn(isKeepScreenOn: boolean): Promise;
setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | setFocusable(isFocusable: boolean): Promise;
setFocusable(isFocusable: boolean, callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | setDimBehind(dimBehindValue: number, callback: AsyncCallback): void;
setDimBehind(dimBehindValue: number): Promise; | 新增 | +| ohos.window | Window | setBrightness(brightness: number): Promise;
setBrightness(brightness: number, callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | setBackgroundColor(color: string): Promise;
setBackgroundColor(color: string, callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | getColorSpace(): Promise;
getColorSpace(callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | setColorSpace(colorSpace:ColorSpace): Promise;
setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | isSupportWideGamut(): Promise;
isSupportWideGamut(callback: AsyncCallback): void; | 新增 | +| ohos.window | Window | off(type: 'keyboardHeightChange', callback?: Callback): void; | 新增 | +| ohos.window | Window | on(type: 'keyboardHeightChange', callback: Callback): void; | 新增 | +| ohos.window | Window | off(type: 'systemAvoidAreaChange', callback?: Callback): void; | 新增 | +| ohos.window | Window | on(type: 'systemAvoidAreaChange', callback: Callback): void; | 新增 | +| ohos.window | Window | off(type: 'windowSizeChange', callback?: Callback): void; | 新增 | +| ohos.window | Window | on(type: 'windowSizeChange', callback: Callback): void; | 新增 | +| ohos.window | Window | isShowing(callback: AsyncCallback): void;
isShowing(): Promise; | 新增 | +| ohos.window | Window | loadContent(path: string, callback: AsyncCallback): void;
loadContent(path: string): Promise; | 新增 | +| ohos.window | Window | setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback): void;
setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise; | 新增 | +| ohos.window | Window | setSystemBarEnable(names: Array<'status'\|'navigation'>, callback: AsyncCallback): void;
setSystemBarEnable(names: Array<'status'\|'navigation'>): Promise; | 新增 | +| ohos.window | Window | setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback): void;
setLayoutFullScreen(isLayoutFullScreen: boolean): Promise; | 新增 | +| ohos.window | Window | setFullScreen(isFullScreen: boolean, callback: AsyncCallback): void;
setFullScreen(isFullScreen: boolean): Promise; | 新增 | +| ohos.window | Window | getAvoidArea(type: AvoidAreaType, callback: AsyncCallback): void;
getAvoidArea(type: AvoidAreaType): Promise; | 新增 | +| ohos.window | Window | getProperties(callback: AsyncCallback): void;
getProperties(): Promise; | 新增 | +| ohos.window | Window | destroy(callback: AsyncCallback): void;
destroy(): Promise; | 新增 | +| ohos.window | Window | show(callback: AsyncCallback): void;
show(): Promise; | 新增 | +| ohos.window | window | function find(id: string, callback: AsyncCallback): void;
function find(id: string): Promise; | 新增 | +| 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; | 新增 | +| ohos.window | ColorSpace | WIDE_GAMUT | 新增 | +| ohos.window | ColorSpace | DEFAULT | 新增 | +| ohos.window | WindowProperties | isTransparent: boolean | 新增 | +| ohos.window | WindowProperties | isRoundCorner: boolean | 新增 | +| ohos.window | WindowProperties | isPrivacyMode: boolean | 新增 | +| ohos.window | WindowProperties | isKeepScreenOn: boolean | 新增 | +| ohos.window | WindowProperties | dimBehindValue: number | 新增 | +| ohos.window | WindowProperties | brightness: number | 新增 | +| ohos.window | WindowProperties | touchable: boolean | 新增 | +| ohos.window | WindowProperties | focusable: boolean | 新增 | +| ohos.window | WindowProperties | isLayoutFullScreen: boolean | 新增 | +| ohos.window | WindowProperties | isFullScreen: boolean | 新增 | +| ohos.window | WindowProperties | type: WindowType; | 新增 | +| ohos.window | WindowProperties | windowRect: Rect; | 新增 | +| ohos.window | Size | height: number; | 新增 | +| ohos.window | Size | width: number; | 新增 | +| ohos.window | AvoidArea | bottomRect: Rect; | 新增 | +| ohos.window | AvoidArea | rightRect: Rect; | 新增 | +| ohos.window | AvoidArea | topRect: Rect; | 新增 | +| ohos.window | AvoidArea | leftRect: Rect; | 新增 | +| ohos.window | Rect | height: number; | 新增 | +| ohos.window | Rect | width: number; | 新增 | +| ohos.window | Rect | top: number; | 新增 | +| ohos.window | Rect | left: number; | 新增 | +| ohos.window | SystemBarProperties | navigationBarContentColor?: string; | 新增 | +| ohos.window | SystemBarProperties | isNavigationBarLightIcon?: boolean; | 新增 | +| ohos.window | SystemBarProperties | navigationBarColor?: string; | 新增 | +| ohos.window | SystemBarProperties | statusBarContentColor?: string; | 新增 | +| ohos.window | SystemBarProperties | isStatusBarLightIcon?: boolean; | 新增 | +| ohos.window | SystemBarProperties | statusBarColor?: string; | 新增 | +| ohos.window | AvoidAreaType | TYPE_CUTOUT | 新增 | +| ohos.window | AvoidAreaType | TYPE_SYSTEM | 新增 | +| ohos.display | Display | yDPI: number; | 新增 | +| ohos.display | Display | xDPI: number; | 新增 | +| ohos.display | Display | scaledDensity: number; | 新增 | +| ohos.display | Display | densityPixels: number; | 新增 | +| ohos.display | Display | densityDPI: number; | 新增 | +| ohos.display | Display | height: number; | 新增 | +| ohos.display | Display | width: number; | 新增 | +| ohos.display | Display | rotation: number; | 新增 | +| ohos.display | Display | refreshRate: number; | 新增 | +| ohos.display | Display | state: DisplayState; | 新增 | +| ohos.display | Display | alive: boolean; | 新增 | +| ohos.display | Display | name: string; | 新增 | +| ohos.display | Display | id: number; | 新增 | +| ohos.display | DisplayState | STATE_ON_SUSPEND | 新增 | +| ohos.display | DisplayState | STATE_VR | 新增 | +| ohos.display | DisplayState | STATE_DOZE_SUSPEND | 新增 | +| ohos.display | DisplayState | STATE_DOZE | 新增 | +| ohos.display | DisplayState | STATE_ON | 新增 | +| ohos.display | DisplayState | STATE_OFF | 新增 | +| ohos.display | DisplayState | STATE_UNKNOWN = 0 | 新增 | +| ohos.display | display | function off(type: 'add' \| 'remove' \| 'change', callback?: Callback): void; | 新增 | +| ohos.display | display | function off(type: 'add' \| 'remove' \| 'change', callback?: Callback): void; | 新增 | +| ohos.display | display | function off(type: 'add' \| 'remove' \| 'change', callback?: Callback): void; | 新增 | +| ohos.display | display | function on(type: 'add' \| 'remove' \| 'change', callback: Callback): void; | 新增 | +| ohos.display | display | function on(type: 'add' \| 'remove' \| 'change', callback: Callback): void; | 新增 | +| ohos.display | display | function on(type: 'add' \| 'remove' \| 'change', callback: Callback): void; | 新增 | +| ohos.display | display | function getAllDisplay(callback: AsyncCallback>): void;
function getAllDisplay(): Promise>; | 新增 | +| ohos.display | display | function getDefaultDisplay(callback: AsyncCallback): void;
function getDefaultDisplay(): Promise; | 新增 | diff --git a/zh-cn/release-notes/api-change/v3.1-Release/native-apidiff-v3.1-release.md b/zh-cn/release-notes/api-change/v3.1-Release/native-apidiff-v3.1-release.md index a9dcb0efdc..058414a7b7 100644 --- a/zh-cn/release-notes/api-change/v3.1-Release/native-apidiff-v3.1-release.md +++ b/zh-cn/release-notes/api-change/v3.1-Release/native-apidiff-v3.1-release.md @@ -4,13 +4,207 @@ OpenHarmony 3.1 Release相较于OpenHarmony 3.0 LTS版本的API变更如下: ## 标准系统接口变更 -| 模块名称 | 接口名称 | 变更类型 | 变更说明 | -| -------- | -------- | -------- | -------- | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | -| | | | | \ No newline at end of file +- [ ] | 模块名称 | 接口名称 | 变更类型 | 变更说明 | + | -------- | ------------------------------------------------------------ | -------- | ----------------------------------------------- | + | 图形-drawing | OH_Drawing_FontCollection* OH_Drawing_CreateFontCollection(void) | 新增 | 创建OH_Drawing_FontCollection | + | 图形-drawing | void OH_Drawing_DestroyFontCollection(OH_Drawing_FontCollection*) | 新增 | 释放被OH_Drawing_FontCollection对象占据的内存 | + | 图形-drawing | OH_Drawing_TypographyStyle* OH_Drawing_CreateTypographyStyle(void) | 新增 | 创建OH_Drawing_TypographyStyle | + | 图形-drawing | void OH_Drawing_DestroyTypographyStyle(OH_Drawing_TypographyStyle*) | 新增 | 释放被OH_Drawing_TypographyStyle对象占据的内存 | + | 图形-drawing | void OH_Drawing_SetTypographyTextDirection(OH_Drawing_TypographyStyle*, int /* OH_Drawing_TextDirection */) | 新增 | 设置文本方向 | + | 图形-drawing | void OH_Drawing_SetTypographyTextAlign(OH_Drawing_TypographyStyle*, int /* OH_Drawing_TextAlign */) | 新增 | 设置文本对齐方式 | + | 图形-drawing | void OH_Drawing_SetTypographyTextMaxLines(OH_Drawing_TypographyStyle*, int /* maxLines */) | 新增 | 设置文本最大行数 | + | 图形-drawing | OH_Drawing_TextStyle* OH_Drawing_CreateTextStyle(void) | 新增 | 创建OH_Drawing_TextStyle | + | 图形-drawing | void OH_Drawing_DestroyTextStyle(OH_Drawing_TextStyle*) | 新增 | 释放被OH_Drawing_TextStyle对象占据的内存 | + | 图形-drawing | void OH_Drawing_SetTextStyleColor(OH_Drawing_TextStyle*, uint32_t /* color */) | 新增 | 设置文本颜色 | + | 图形-drawing | void OH_Drawing_SetTextStyleFontSize(OH_Drawing_TextStyle*, double /* fontSize */); | 新增 | 设置字号 | + | 图形-drawing | void OH_Drawing_SetTextStyleFontWeight(OH_Drawing_TextStyle*, int /* OH_Drawing_FontWeight */) | 新增 | 设置字重 | + | 图形-drawing | void OH_Drawing_SetTextStyleBaseLine(OH_Drawing_TextStyle*, int /* OH_Drawing_TextBaseline */) | 新增 | 设置字体基线位置 | + | 图形-drawing | void OH_Drawing_SetTextStyleDecoration(OH_Drawing_TextStyle*, int /* OH_Drawing_TextDecoration */) | 新增 | 设置装饰 | + | 图形-drawing | void OH_Drawing_SetTextStyleDecorationColor(OH_Drawing_TextStyle*, uint32_t /* color */) | 新增 | 设置装饰颜色 | + | 图形-drawing | void OH_Drawing_SetTextStyleFontHeight(OH_Drawing_TextStyle*, double /* fontHeight */) | 新增 | 设置字体高度 | + | 图形-drawing | void OH_Drawing_SetTextStyleFontFamilies(OH_Drawing_TextStyle*,int /* fontFamiliesNumber \*/, const char* fontFamilies[]); | 新增 | 设置字体类型 | + | 图形-drawing | void OH_Drawing_SetTextStyleFontStyle(OH_Drawing_TextStyle*, int /* OH_Drawing_FontStyle */) | 新增 | 设置字体风格 | + | 图形-drawing | void OH_Drawing_SetTextStyleLocale(OH_Drawing_TextStyle*, const char*) | 新增 | 设置语言区域 | + | 图形-drawing | OH_Drawing_TypographyCreate* OH_Drawing_CreateTypographyHandler(OH_Drawing_TypographyStyle*, OH_Drawing_FontCollection*) | 新增 | 创建指向OH_Drawing_TypographyCreate对象的指针 | + | 图形-drawing | void OH_Drawing_DestroyTypographyHandler(OH_Drawing_TypographyCreate*) | 新增 | 释放被OH_Drawing_TypographyCreate对象占据的内存 | + | 图形-drawing | void OH_Drawing_TypographyHandlerPushTextStyle(OH_Drawing_TypographyCreate*, OH_Drawing_TextStyle*) | 新增 | 排版风格入栈 | + | 图形-drawing | void OH_Drawing_TypographyHandlerAddText(OH_Drawing_TypographyCreate*, const char*) | 新增 | 设置文本内容 | + | 图形-drawing | void OH_Drawing_TypographyHandlerPopTextStyle(OH_Drawing_TypographyCreate*) | 新增 | 排版风格出栈 | + | 图形-drawing | OH_Drawing_Typography* OH_Drawing_CreateTypography(OH_Drawing_TypographyCreate*) | 新增 | 创建OH_Drawing_Typography | + | 图形-drawing | void OH_Drawing_DestroyTypography(OH_Drawing_Typography*) | 新增 | 释放OH_Drawing_Typography对象占据的内存 | + | 图形-drawing | void OH_Drawing_TypographyLayout(OH_Drawing_Typography*, double /* maxWidth */) | 新增 | 排版布局 | + | 图形-drawing | void OH_Drawing_TypographyPaint(OH_Drawing_Typography*, OH_Drawing_Canvas*, double /* potisionX */, double /\* potisionY */) | 新增 | 显示文本 | +| 图形-drawing |OH_Drawing_Bitmap* OH_Drawing_BitmapCreate(void)|新增|函数用于创建一个位图对象| +| 图形-drawing |void OH_Drawing_BitmapDestroy(OH_Drawing_Bitmap*)|新增|函数用于销毁位图对象并回收该对象占有内存| +| 图形-drawing |void OH_Drawing_BitmapBuild(OH_Drawing_Bitmap*, const uint32_t width, const uint32_t height, const OH_Drawing_BitmapFormat*)|新增|函数用于初始化位图对象的宽度和高度,并且为该位图设置像素格式| +| 图形-drawing |uint32_t OH_Drawing_BitmapGetWidth(OH_Drawing_Bitmap*)|新增|该函数用于获取指定位图的宽度| +| 图形-drawing |uint32_t OH_Drawing_BitmapGetHeight(OH_Drawing_Bitmap*)|新增|函数用于获取指定位图的高度| +| 图形-drawing |void* OH_Drawing_BitmapGetPixels(OH_Drawing_Bitmap*)|新增|函数用于获取指定位图的像素地址,可以通过像素地址获取到位图的像素数据| +| 图形-drawing |OH_Drawing_Brush* OH_Drawing_BrushCreate(void)|新增|函数用于创建一个画刷对象| +| 图形-drawing |void OH_Drawing_BrushDestroy(OH_Drawing_Brush*)|新增|函数用于销毁画刷对象并回收该对象占有的内存| +| 图形-drawing |bool OH_Drawing_BrushIsAntiAlias(const OH_Drawing_Brush*)|新增|函数用于获取画刷是否设置抗锯齿属性,如果为真则说明画刷会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理| +| 图形-drawing |void OH_Drawing_BrushSetAntiAlias(OH_Drawing_Brush*, bool)|新增|函数用于设置画刷的抗锯齿属性,设置为真则画刷在绘制图形时会对图形的边缘像素进行半透明的模糊处理| +| 图形-drawing |uint32_t OH_Drawing_BrushGetColor(const OH_Drawing_Brush*)|新增|函数用于获取画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示| +| 图形-drawing |void OH_Drawing_BrushSetColor(OH_Drawing_Brush*, uint32_t color)|新增|函数用于设置画刷的颜色属性,颜色属性描述了画刷填充图形时使用的颜色,用一个32位(ARGB)的变量表示| +| 图形-drawing |OH_Drawing_Canvas* OH_Drawing_CanvasCreate(void)|新增|函数用于创建一个画布对象| +| 图形-drawing |void OH_Drawing_CanvasDestroy(OH_Drawing_Canvas*)|新增|函数用于销毁画布对象并回收该对象占有的内存| +| 图形-drawing |void OH_Drawing_CanvasBind(OH_Drawing_Canvas*, OH_Drawing_Bitmap*)|新增|函数用于将一个位图对象绑定到画布中,使得画布绘制的内容输出到位图中(即CPU渲染)| +| 图形-drawing |void OH_Drawing_CanvasAttachPen(OH_Drawing_Canvas*, const OH_Drawing_Pen*)|新增|函数用于设置画笔给画布,画布将会使用设置画笔的样式和颜色去绘制图形形状的轮廓| +| 图形-drawing |void OH_Drawing_CanvasDetachPen(OH_Drawing_Canvas*)|新增|函数用于去除掉画布中的画笔,使用后画布将不去绘制图形形状的轮廓| +| 图形-drawing |void OH_Drawing_CanvasAttachBrush(OH_Drawing_Canvas*, const OH_Drawing_Brush*)|新增|函数用于设置画刷给画布,画布将会使用设置的画刷样式和颜色去填充绘制的图形形状| +| 图形-drawing |void OH_Drawing_CanvasDetachBrush(OH_Drawing_Canvas*)|新增|函数用于去除掉画布中的画刷,使用后画布将不去填充图形形状| +| 图形-drawing |void OH_Drawing_CanvasSave(OH_Drawing_Canvas*)|新增|函数用于保存当前画布的状态(画布矩阵)到一个栈顶| +| 图形-drawing |void OH_Drawing_CanvasRestore(OH_Drawing_Canvas*)|新增|函数用于恢复保存在栈顶的画布状态(画布矩阵)| +| 图形-drawing |void OH_Drawing_CanvasDrawLine(OH_Drawing_Canvas*, float x1, float y1, float x2, float y2)|新增|函数用于画一条直线段| +| 图形-drawing |void OH_Drawing_CanvasDrawPath(OH_Drawing_Canvas*, const OH_Drawing_Path*)|新增|函数用于画一个自定义路径| +| 图形-drawing |void OH_Drawing_CanvasClear(OH_Drawing_Canvas*, uint32_t color)|新增|函数用于使用指定颜色去清空画布| +| 图形-drawing |uint32_t OH_Drawing_ColorSetArgb(uint32_t alpha, uint32_t red, uint32_t green, uint32_t blue)|新增|函数用于将4个变量(分别描述透明度、红色、绿色和蓝色)转化为一个描述颜色的32位(ARGB)变量| +| 图形-drawing |OH_Drawing_Path* OH_Drawing_PathCreate(void)|新增|函数用于创建一个路径对象| +| 图形-drawing |void OH_Drawing_PathDestroy(OH_Drawing_Path*)|新增|函数用于销毁路径对象并回收该对象占有的内存| +| 图形-drawing |void OH_Drawing_PathMoveTo(OH_Drawing_Path*, float x, float y)|新增|函数用于设置自定义路径的起始点位置| +| 图形-drawing |void OH_Drawing_PathLineTo(OH_Drawing_Path*, float x, float y)|新增|函数用于添加一条从路径的最后点位置到目标点位置的线段| +| 图形-drawing |void OH_Drawing_PathArcTo(OH_Drawing_Path*, float x1, float y1, float x2, float y2, float startDeg, float sweepDeg)|新增|函数用于给路径添加一段弧线,绘制弧线的方式为角度弧,该方式首先会指定一个矩形边框,矩形边框会包裹椭圆,然后会指定一个起始角度和扫描度数,从起始角度扫描截取的椭圆周长一部分即为绘制的弧线。另外会默认添加一条从路径的最后点位置到弧线起始点位置的线段| +| 图形-drawing |void OH_Drawing_PathQuadTo(OH_Drawing_Path*, float ctrlX, float ctrlY, float endX, float endY)|新增|函数用于添加一条从路径最后点位置到目标点位置的二阶贝塞尔圆滑曲线| +| 图形-drawing |void OH_Drawing_PathCubicTo(OH_Drawing_Path*, float ctrlX1, float ctrlY1, float ctrlX2, float ctrlY2, float endX, float endY)|新增|函数用于添加一条从路径最后点位置到目标点位置的三阶贝塞尔圆滑曲线| +| 图形-drawing |void OH_Drawing_PathClose(OH_Drawing_Path*)|新增|函数用于闭合路径,会添加一条从路径起点位置到最后点位置的线段| +| 图形-drawing |void OH_Drawing_PathReset(OH_Drawing_Path*)|新增|函数用于重置自定义路径数据| +| 图形-drawing |OH_Drawing_Pen* OH_Drawing_PenCreate(void)|新增|函数用于创建一个画笔对象| +| 图形-drawing |void OH_Drawing_PenDestroy(OH_Drawing_Pen*)|新增|函数用于销毁画笔对象并回收该对象占有的内存| +| 图形-drawing |bool OH_Drawing_PenIsAntiAlias(const OH_Drawing_Pen*)|新增|函数用于获取画笔是否设置抗锯齿属性,如果为真则说明画笔会启用抗锯齿功能,在绘制图形时会对图形的边缘像素进行半透明的模糊处理| +| 图形-drawing |void OH_Drawing_PenSetAntiAlias(OH_Drawing_Pen*, bool)|新增|函数用于设置画笔的抗锯齿属性,设置为真则画笔在绘制图形时会对图形的边缘像素进行半透明的模糊处理| +| 图形-drawing |uint32_t OH_Drawing_PenGetColor(const OH_Drawing_Pen*)|新增|函数用于获取画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示| +| 图形-drawing |void OH_Drawing_PenSetColor(OH_Drawing_Pen*, uint32_t color)|新增|函数用于设置画笔的颜色属性,颜色属性描述了画笔绘制图形轮廓时使用的颜色,用一个32位(ARGB)的变量表示| +| 图形-drawing |float OH_Drawing_PenGetWidth(const OH_Drawing_Pen*)|新增|函数用于获取画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度| +| 图形-drawing |void OH_Drawing_PenSetWidth(OH_Drawing_Pen*, float width)|新增|函数用于设置画笔的厚度属性,厚度属性描述了画笔绘制图形轮廓的宽度| +| 图形-drawing |float OH_Drawing_PenGetMiterLimit(const OH_Drawing_Pen*)|新增|函数用于获取折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角| +| 图形-drawing |void OH_Drawing_PenSetMiterLimit(OH_Drawing_Pen*, float miter)|新增|函数用于设置折线尖角的限制值,当画笔绘制一条折线,转角类型设置为尖角时,那么此时该属性用于限制出现尖角的长度范围,如果超出则平角显示,不超出依然为尖角| +| 图形-drawing |OH_Drawing_PenLineCapStyle OH_Drawing_PenGetCap(const OH_Drawing_Pen*)|新增|函数用于获取画笔笔帽的样式| +| 图形-drawing |void OH_Drawing_PenSetCap(OH_Drawing_Pen*, OH_Drawing_PenLineCapStyle)|新增|函数用于设置画笔笔帽样式| +| 图形-drawing |OH_Drawing_PenLineJoinStyle OH_Drawing_PenGetJoin(const OH_Drawing_Pen*)|新增|函数用于获取画笔绘制折线转角的样式| +| 图形-drawing |void OH_Drawing_PenSetJoin(OH_Drawing_Pen*, OH_Drawing_PenLineJoinStyle)|新增|函数用于设置画笔绘制转角的样式| +| 图形-NativeWindow | struct NativeWindow* OH_NativeWindow_CreateNativeWindow(void* pSurface) | 新增 | 新增创建NativeWindow实例接口 | +| 图形-NativeWindow | void OH_NativeWindow_DestroyNativeWindow(struct NativeWindow* window) | 新增 | 新增NativeWindow对象的引用计数减1接口 | +| 图形-NativeWindow | struct NativeWindowBuffer* OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(void* pSurfaceBuffer) | 新增 | 新增创建NativeWindowBuffer实例接口 | +| 图形-NativeWindow | void OH_NativeWindow_DestroyNativeWindowBuffer(struct NativeWindowBuffer* buffer) | 新增 | 新增NativeWindowBuffer对象的引用计数减1接口 | +| 图形-NativeWindow | int32_t OH_NativeWindow_NativeWindowRequestBuffer(struct NativeWindow *window, struct NativeWindowBuffer **buffer, int *fenceFd) | 新增 | 新增通过NativeWindow对象申请一块NativeWindowBuffer接口 | +| 图形-NativeWindow | int32_t OH_NativeWindow_NativeWindowFlushBuffer(struct NativeWindow *window, struct NativeWindowBuffer *buffer, int fenceFd, Region region) | 新增 | 新增通过NativeWindow将生产好内容的NativeWindowBuffer放回到Buffer队列中接口 | +| 图形-NativeWindow | int32_t OH_NativeWindow_NativeWindowAbortBuffer(struct NativeWindow *window, struct NativeWindowBuffer *buffer) | 新增 | 新增通过NativeWindow将之前申请出来的NativeWindowBuffer返还到Buffer队列中接口 | +| 图形-NativeWindow | int32_t OH_NativeWindow_NativeWindowHandleOpt(struct NativeWindow *window, int code, ...) | 新增 | 新增设置/获取NativeWindow的属性,包括设置/获取宽高、内容格式等接口 | +| 图形-NativeWindow | BufferHandle *OH_NativeWindow_GetBufferHandleFromNative(struct NativeWindowBuffer *buffer) | 新增 | 新增通过NativeWindowBuffer获取该buffer的BufferHandle指针接口 | +| 图形-NativeWindow | int32_t OH_NativeWindow_NativeObjectReference(void *obj) | 新增 | 新增增加一个NativeObject的引用计数接口 | +| 图形-NativeWindow | int32_t OH_NativeWindow_NativeObjectUnreference(void *obj) | 新增 | 新增减少一个NativeObject的引用计数接口 | +| 图形-NativeWindow | int32_t OH_NativeWindow_GetNativeObjectMagic(void *obj) | 新增 | 新增获取NativeObject的MagicId接口 | +| DFX-hilog | LOG_DOMAIN | 新增 | 十六进制整数宏,标识日志所对应的业务领域。 | +| DFX-hilog | LOG_TAG | 新增 | 字符串宏,标识调用所在的类或者业务。 | +| DFX-hilog | LOG_APP | 新增 | 日志类型枚举,标识应用日志类型。 | +| DFX-hilog | LOG_DEBUG | 新增 | 日志级别枚举,标识DEBUG日志级别。 | +| DFX-hilog | LOG_INFO | 新增 | 日志级别枚举,标识INFO日志级别。 | +| DFX-hilog | LOG_WARN | 新增 | 日志级别枚举,标识WARN日志级别。 | +| DFX-hilog | LOG_ERROR | 新增 | 日志级别枚举,标识ERROR日志级别。 | +| DFX-hilog | LOG_FATAL | 新增 | 日志级别枚举,标识FATAL日志级别。 | +| DFX-hilog | bool OH_LOG_IsLoggable(unsigned int domain, const char *tag, LogLevel level) | 新增 | 普通接口,用于检查指定业务领域、TAG、级别的日志是否可以打印。 | +| DFX-hilog | int OH_LOG_Print(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) | 新增 | 普通接口,用于写日志。 | +| DFX-hilog | OH_LOG_DEBUG(type, ...) | 新增 | 宏封装接口,用于写DEBUG级别日志。 | +| DFX-hilog | OH_LOG_INFO(type, ...) | 新增 | 宏封装接口,用于写INFO级别日志。 | +| DFX-hilog | OH_LOG_WARN(type, ...) | 新增 | 宏封装接口,用于写WARN级别日志。 | +| DFX-hilog | OH_LOG_ERROR(type, ...) | 新增 | 宏封装接口,用于写ERROR级别日志。 | +| DFX-hilog | OH_LOG_FATAL(type, ...) | 新增 | 宏封装接口,用于写FATAL级别日志。 | +| zlib | ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
ZEXTERN uLong ZEXPORT adler32_z OF((uLong adler, const Bytef *buf, z_size_t len)); | 新增 | 使用buf更新adler32 | +| zlib | ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); | 新增 | 合并两个adler32 | +| zlib | ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level));
ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)); | 新增 | 将源缓冲区压缩到目标缓冲区 | +| zlib | ZEXTERN uLong ZEXPORT compressBound OF((uLong sourceLen)); | 新增 | 返回压缩大小的上限。在compress2/compress调用之前使用,以分配目标缓冲区 | +| zlib | ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
ZEXTERN uLong ZEXPORT crc32_z OF((uLong adler, const Bytef *buf, z_size_t len)); | 新增 | 使用buf更新crc32 | +| zlib | ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t)); | 新增 | 合并两个crc32 | +| zlib | ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush)); | 新增 | 压缩函数 | +| zlib | ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm, uLong sourceLen)); | 新增 | 返回压缩大小的上限。在deflateInit/deflateInit2调用之后使用,以分配目标缓冲区 | +| zlib | ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest, z_streamp source)); | 新增 | 将目标流设置为源流的完整副本 | +| zlib | ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm)); | 新增 | 压缩完成以后,释放空间 | +| zlib | ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm, Bytef *dictionary, uInt *dictLength)); | 新增 | 返回由deflate维护的滑动字典 | +| zlib | ZEXTERN int ZEXPORT deflateInit_ OF((z_streamp strm, int level, const char *version, int stream_size));
ZEXTERN int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)); | 新增 | 压缩初始化的基础函数 | +| zlib | ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, int level, int strategy)); | 新增 | 动态更新压缩级别和压缩策略 | +| zlib | ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm, unsigned *pending, int *bits)); | 新增 | 返回已生成但尚未在可用输出中提供的输出的字节数和位数 | +| zlib | ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm, int bits, int value)); | 新增 | 在压缩输出流中插入bit | +| zlib | ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm)); | 新增 | 等价于 deflateEnd 后跟 deflateInit,但是不释放和重新分配内部压缩状态 | +| zlib | ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, const Bytef *dictionary, uInt dictLength)); | 新增 | 从给定的字节序列初始化压缩字典,而不产生任何压缩输出 | +| zlib | ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm, gz_headerp head)); | 新增 | 当delateInit2()请求gzip流时,delateSetHeader()提供gzip头信息 | +| zlib | ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)); | 新增 | 微调压缩的内部压缩参数 | +| zlib | ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size)); | 新增 | 设置此库函数使用的内部缓冲区大小。默认缓冲区大小为8192字节 | +| zlib | ZEXTERN void ZEXPORT gzclearerr OF((gzFile file)); | 新增 | 清除文件的错误和文件结束标志 | +| zlib | ZEXTERN int ZEXPORT gzclose OF((gzFile file));
ZEXTERN int ZEXPORT gzclose_r OF((gzFile file));
ZEXTERN int ZEXPORT gzclose_w OF((gzFile file)); | 新增 | 刷新所有挂起的输出,关闭压缩文件并解除压缩状态 | +| zlib | ZEXTERN int ZEXPORT gzdirect OF((gzFile file)); | 新增 | 如果在读取时直接复制文件,则返回true (1);如果文件是正在解压缩的gzip流,则返回false (0)。 | +| zlib | ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode)); | 新增 | 将gzFile与文件描述符fd关联。文件描述符从open、dup、create、管道或fileno等调用中获得(如果文件以前已使用fopen打开)。mode参数与gzopen中的一样 | +| zlib | ZEXTERN int ZEXPORT gzeof OF((gzFile file)); | 新增 | 如果在读取时设置了文件结束指示器,则返回true (1),否则返回false (0) | +| zlib | ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum)); | 新增 | 返回给定压缩文件上发生的最后一个错误的错误消息 | +| zlib | ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush)); | 新增 | 将所有挂起的输出刷新到压缩文件中 | +| zlib | ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems, gzFile file)); | 新增 | 从文件读取最多n个大小的item到Buf | +| zlib | ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size, z_size_t nitems, gzFile file)); | 新增 | 将n个大小为Buf的item写入文件,复制stdio的fwrite()的接口,使用size_t请求和返回类型 | +| zlib | ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); | 新增 | 从压缩文件中读取一个字节 | +| zlib | ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); | 新增 | 从压缩文件中读取字节,直到读取len-1字符,或读取换行符并将其传输到Buf,或遇到文件结束条件 | +| zlib | ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); | 新增 | 返回正在读取或写入的文件中的当前偏移量 | +| zlib | ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); | 新增 | 打开gzip (.gz)文件以进行读取或写入 | +| zlib | ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...)); | 新增 | 在格式字符串的控制下转换、格式化和写入参数到压缩文件中 | +| zlib | ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c));
ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s)); | 新增 | 将转换为无符号字符的c写入压缩文件。gzputc返回写入的值,如果出现错误,则返回-1。 | +| zlib | ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len)); | 新增 | 从压缩文件中读取给定数量的未压缩字节 | +| zlib | ZEXTERN int ZEXPORT gzrewind OF((gzFile file)); | 新增 | 重定向给定的文件 | +| zlib | ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int));
ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); | 新增 | 设置给定压缩文件上下一个gzread或gzwrite的起始位置 | +| zlib | ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy)); | 新增 | 动态更新压缩级别或策略 | +| zlib | ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); | 新增 | 返回给定压缩文件上下一个gzread或gzwrite的起始位置 | +| zlib | ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file)); | 新增 | 将一个字符写入流,作为下一次读取时的第一个字符读取 | +| zlib | ZEXTERN int ZEXPORT gzwrite OF((gzFile file, voidpc buf, unsigned len)); | 新增 | 将给定数量的未压缩字节写入压缩文件 | +| zlib | ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush)); | 新增 | 解压缩尽可能多的数据,并在输入缓冲区变空或输出缓冲区变满时停止 | +| zlib | ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc));
ZEXTERN int ZEXPORT inflateBackEnd OF((z_streamp strm));
ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)); | 新增 | 使用回调接口实现解压 | +| zlib | ZEXTERN int ZEXPORT inflateCopy OF((z_streamp dest, z_streamp source)); | 新增 | 将目标流设置为源流的完整副本 | +| zlib | ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm)); | 新增 | 此流的所有动态分配的数据结构都将被释放 | +| zlib | ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm, Bytef *dictionary, uInt *dictLength)); | 新增 | 返回由inflate维护的滑动字典 | +| zlib | ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm, gz_headerp head)); | 新增 | 将gzip头信息存储在提供的gz_header结构中。 | +| zlib | ZEXTERN int ZEXPORT inflateInit_ OF((z_streamp strm, const char *version, int stream_size));
/ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits, const char *version, int stream_size)); | 新增 | 解压初始化函数 | +| zlib | ZEXTERN long ZEXPORT inflateMark OF((z_streamp strm)); | 新增 | 返回两个值,一个在返回值的低16位,另一个在剩余的高位,通过将返回值向下移动16位获得。 | +| zlib | ZEXTERN int ZEXPORT inflatePrime OF((z_streamp strm, int bits, int value)); | 新增 | 在inflate输入流中插入位 | +| zlib | ZEXTERN int ZEXPORT inflateReset OF((z_streamp strm));
ZEXTERN int ZEXPORT inflateReset2 OF((z_streamp strm, int windowBits)); | 新增 | 此函数等效于inflateEnd后跟inflateInit,但不会释放和重新分配内部解压缩状态。流将保留可能已由inflateInit2设置的属性。 | +| zlib | ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, const Bytef *dictionary, uInt dictLength)); | 新增 | 从给定的未压缩字节序列初始化解压缩字典 | +| zlib | ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm)); | 新增 | 跳过无效的压缩数据,直到找到可能的完全刷新点,或直到跳过所有可用输入。没有输出。 | +| zlib | ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen));
ZEXTERN int ZEXPORT uncompress2 OF((Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)); | 新增 | 将源缓冲区解压到目标缓冲区,sourceLen是源缓冲区的字节长度。 | +| zlib | ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void)); | 新增 | 返回指示编译时选项的标志。 | +| zlib | ZEXTERN const char * ZEXPORT zlibVersion OF((void)); | 新增 | 返回zlib版本 | +| 全球化-resmgr | NativeResourceManager *OH_ResourceManager_InitNativeResourceManager(napi_env env, napi_value jsResMgr) | 新增 | 新增初始化native资源管理接口 | +| 全球化-resmgr | void OH_ResourceManager_ReleaseNativeResourceManager(NativeResourceManager *resMgr) | 新增 | 新增释放native资源管理接口 | +| 全球化-resmgr | RawDir *OH_ResourceManager_OpenRawDir(const NativeResourceManager *mgr, const char *dirName) | 新增 | 新增打开指定rawfile目录接口 | +| 全球化-resmgr | RawFile *OH_ResourceManager_OpenRawFile(const NativeResourceManager *mgr, const char *fileName) | 新增 | 新增打开指定rawfile文件接口 | +| 全球化-resmgr | const char *OH_ResourceManager_GetRawFileName(RawDir *rawDir, int index) | 新增 | 新增获取rawfile名字接口 | +| 全球化-resmgr | int OH_ResourceManager_GetRawFileCount(RawDir *rawDir) | 新增 | 新增获取指定rawfile目录下的rawfile文件数量接口 | +| 全球化-resmgr | void OH_ResourceManager_CloseRawDir(RawDir *rawDir) | 新增 | 新增释放rawfile目录相关资源接口 | +| 全球化-resmgr | int OH_ResourceManager_ReadRawFile(const RawFile *rawFile, void *buf, size_t length) | 新增 | 新增读取指定rawfile文件接口 | +| 全球化-resmgr | int OH_ResourceManager_SeekRawFile(const RawFile *rawFile, long offset, int whence) | 新增 | 新增根据指定偏移量查询rawfile中的数据接口 | +| 全球化-resmgr | long OH_ResourceManager_GetRawFileSize(RawFile *rawFile) | 新增 | 新增获取rawfile文件size大小接口 | +| 全球化-resmgr | void OH_ResourceManager_CloseRawFile(RawFile *rawFile) | 新增 | 新增释放rawfile文件相关资源接口 | +| 全球化-resmgr | long OH_ResourceManager_GetRawFileOffset(const RawFile *rawFile) | 新增 | 新增获取当前rawfile的偏移量接口 | +| 全球化-resmgr | bool OH_ResourceManager_GetRawFileDescriptor(const RawFile *rawFile, RawFileDescriptor &descriptor) | 新增 | 新增获取rawfile的fd接口 | +| 全球化-resmgr | bool OH_ResourceManager_ReleaseRawFileDescriptor(const RawFileDescriptor &descriptor) | 新增 | 新增释放rawfile的fd接口 | +| 媒体-multimedia | OH_GetImageInfo | 新增 | 通过pixel的数据地址来获取信息 | +| 媒体-multimedia | OH_AccessPixels | 新增 | 锁定给定的pixel的数据地址 | +| 媒体-multimedia | OH_UnAccessPixels | 新增 | 解锁给定的pixel的数据地址 | +| 媒体-audio_standard | SL_API SLresult SLAPIENTRY slCreateEngine(
SLObjectItf *pEngine,
SLuint32 numOptions,
const SLEngineOption *pEngineOptions,
SLuint32 numInterfaces,
const SLInterfaceID *pInterfaceIds,
const SLboolean * pInterfaceRequired
); | 新增 | 创建并返回Engine对象 | +| 媒体-audio_standard | SLObjectItf_
SLresult (*Realize) (
SLObjectItf self,
SLboolean async
); | 新增 | 初始化Object对象 | +| 媒体-audio_standard | SLObjectItf_
SLresult (*Resume) (
SLObjectItf self,
SLboolean async
); | 新增 | 恢复Object对象 | +| 媒体-audio_standard | SLObjectItf_
SLresult (*GetState) (
SLObjectItf self,
SLuint32 * pState
); | 新增 | 获取对象的状态 | +| 媒体-audio_standard | SLObjectItf_
SLresult (*GetInterface) (
SLObjectItf self,
const SLInterfaceID iid,
void * pInterface
); | 新增 | 根据接口iid获取对象的接口 | +| 媒体-audio_standard | SLObjectItf_
SLresult (*RegisterCallback) (
SLObjectItf self,
slObjectCallback callback,
void * pContext
); | 新增 | 注册callback | +| 媒体-audio_standard | SLObjectItf_
void (*Destroy) (
SLObjectItf self
); | 新增 | 销毁对象 | +| 媒体-audio_standard | SLresult (*CreateAudioPlayer) (
SLEngineItf self,
SLObjectItf * pPlayer,
SLDataSource *pAudioSrc,
SLDataSink *pAudioSnk,
SLuint32 numInterfaces,
const SLInterfaceID * pInterfaceIds,
const SLboolean * pInterfaceRequired
); | 新增 | 创建AudioPlayer对象 | +| 媒体-audio_standard | SLresult (*CreateOutputMix) (
SLEngineItf self,
SLObjectItf * pMix,
SLuint32 numInterfaces,
const SLInterfaceID * pInterfaceIds,
const SLboolean * pInterfaceRequired
); | 新增 | 创建OutputMix对象 | +| 媒体-audio_standard | SLPlayItf_
SLresult (*SetPlayState) (
SLPlayItf self,
SLuint32 state
); | 新增 | 设置Player的状态 | +| 媒体-audio_standard | SLPlayItf_
SLresult (*GetPlayState) (
SLPlayItf self,
SLuint32 *pState
); | 新增 | 获取Player的状态 | +| 媒体-audio_standard | SLBufferQueueItf_
SLresult (*Enqueue) (
SLBufferQueueItf self,
const void *pBuffer,
SLuint32 size
); | 新增 | 向BufferQueue中填入数据 | +| 媒体-audio_standard | SLBufferQueueItf_
SLresult (*Clear) (
SLBufferQueueItf self
); | 新增 | 清除BufferQueue的数据 | +| 媒体-audio_standard | SLBufferQueueItf_
SLresult (*GetState) (
SLBufferQueueItf self,
SLBufferQueueState *pState
); | 新增 | 获取BufferQueue的状态 | +| 媒体-audio_standard | SLVolumeItf_
SLresult (*SetVolumeLevel) (
SLVolumeItf self,
SLmillibel level
); | 新增 | 设置音量分贝值 | +| 媒体-audio_standard | SLVolumeItf_
SLresult (*GetVolumeLevel) (
SLVolumeItf self,
SLmillibel *pLevel
); | 新增 | 获取音量分贝值 | +| 媒体-audio_standard | SLVolumeItf_
SLresult (*GetMaxVolumeLevel) (
SLVolumeItf self,
SLmillibel *pMaxLevel
); | 新增 | 设置支持的最大分贝值 | + | LIBUV | [LIBUV标准](https://gitee.com/openharmony/docs/tree/2844f08105b08115f6f5694e9f7552e2f1fe3c12/zh-cn/application-dev/reference/native-lib/third_party_libuv) | 新增 | 新增LIBUV接口 | + | Node-API | [Node-API](https://gitee.com/openharmony/docs/blob/2844f08105b08115f6f5694e9f7552e2f1fe3c12/zh-cn/application-dev/reference/native-lib/third_party_napi/napi.md) | 新增 | NAPI组件对Node-API的接口进行了重新实现,新增支持Node-API标准库中的部分接口 | +| EGL | [EGL标准](https://github.com/KhronosGroup/EGL-Registry/tree/main/api/EGL/) | 新增 | 新增EGL接口 | +| GLES3 | [GLES3标准](https://github.com/KhronosGroup/OpenGL-Registry/tree/main/api/GLES3/) | 新增 | 新增OpenGLES3.0接口 | + + + + -- GitLab