未验证 提交 b7601346 编写于 作者: O openharmony_ci 提交者: Gitee

!2866 website修改+RN修改

Merge pull request !2866 from zengyawen/master
# 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 Storage<sup>9+</sup>](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
......@@ -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&nbsp;(fd&nbsp;number)<br>![](figures/zh-cn_image_url.png) <br>The file must be created by the caller and granted with proper permissions.|
| url | string | Yes | Video output URL. Supported: fd://xx&nbsp;(fd&nbsp;number)<br>![](figures/en-us_image_url.png) <br>The file must be created by the caller and granted with proper permissions. |
## AudioSourceType<sup>9+</sup>
......
# Application Development
- [Application Development Overview](application-dev-guide.md)
- Quick Start
- [Directory Structure](quick-start/package-structure.md)
......@@ -467,118 +469,230 @@
- [Built-in Enums](reference/arkui-ts/ts-appendix-enums.md)
- APIs
- Ability Framework
- [FeatureAbility Module](reference/apis/js-apis-featureAbility.md)
- [ParticleAbility Module](reference/apis/js-apis-particleAbility.md)
- [DataAbilityHelper Module](reference/apis/js-apis-dataAbilityHelper.md)
- [DataUriUtils Module](reference/apis/js-apis-DataUriUtils.md)
- [Bundle Module](reference/apis/js-apis-Bundle.md)
- [Context Module](reference/apis/js-apis-Context.md)
- Event Notification
- [CommonEvent Module](reference/apis/js-apis-commonEvent.md)
- [Notification Module](reference/apis/js-apis-notification.md)
- [Reminder Agent](reference/apis/js-apis-reminderAgent.md)
- Resource Management
- [Resource Manager](reference/apis/js-apis-resource-manager.md)
- [Internationalization (intl)](reference/apis/js-apis-intl.md)
- [Internationalization (i18n)](reference/apis/js-apis-i18n.md)
- [@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
- [Audio Management](reference/apis/js-apis-audio.md)
- [Media](reference/apis/js-apis-media.md)
- [Image Processing](reference/apis/js-apis-image.md)
- [Camera](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)
- 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
- [User Authentication](reference/apis/js-apis-useriam-userauth.md)
- [Access Control](reference/apis/js-apis-abilityAccessCtrl.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)
- Data Management
- [Lightweight Storage](reference/apis/js-apis-data-preferences.md)
- [Distributed Data Management](reference/apis/js-apis-distributed-data.md)
- [Relational Database](reference/apis/js-apis-data-rdb.md)
- [Result Set](reference/apis/js-apis-data-resultset.md)
- [DataAbilityPredicates](reference/apis/js-apis-data-ability.md)
- [Settings](reference/apis/js-apis-settings.md)
- [@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
- [File Management](reference/apis/js-apis-fileio.md)
- [Statfs](reference/apis/js-apis-statfs.md)
- [Environment](reference/apis/js-apis-environment.md)
- [Public File Access and Management](reference/apis/js-apis-filemanager.md)
- [App Storage Statistics](reference/apis/js-apis-storage-statistics.md)
- [Volume Management](reference/apis/js-apis-volumemanager.md)
- Account Management
- [OS Account Management](reference/apis/js-apis-osAccount.md)
- [Distributed Account Management](reference/apis/js-apis-distributed-account.md)
- [App Account Management](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](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
- [Call](reference/apis/js-apis-call.md)
- [SMS](reference/apis/js-apis-sms.md)
- [SIM Management](reference/apis/js-apis-sim.md)
- [Radio](reference/apis/js-apis-radio.md)
- [Observer](reference/apis/js-apis-observer.md)
- [Cellular Data](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](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
- [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](reference/apis/js-apis-wifi.md)
- [Bluetooth](reference/apis/js-apis-bluetooth.md)
- [RPC](reference/apis/js-apis-rpc.md)
- Device Management
- [Sensor](reference/apis/js-apis-sensor.md)
- [Vibrator](reference/apis/js-apis-vibrator.md)
- [Brightness](reference/apis/js-apis-brightness.md)
- [Battery Info](reference/apis/js-apis-battery-info.md)
- [Power Management](reference/apis/js-apis-power.md)
- [Thermal Management](reference/apis/js-apis-thermal.md)
- [Running Lock](reference/apis/js-apis-runninglock.md)
- [Device Info](reference/apis/js-apis-device-info.md)
- [systemParameter](reference/apis/js-apis-system-parameter.md)
- [Device Management](reference/apis/js-apis-device-manager.md)
- [Window](reference/apis/js-apis-window.md)
- [Display](reference/apis/js-apis-display.md)
- [Update](reference/apis/js-apis-update.md)
- [USB](reference/apis/js-apis-usb.md)
- [Location](reference/apis/js-apis-geolocation.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](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
- [Application Context](reference/apis/js-apis-system-app.md)
- [Console Logs](reference/apis/js-apis-logs.md)
- [Page Routing](reference/apis/js-apis-system-router.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](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)
- [Setting the System Time](reference/apis/js-apis-system-time.md)
- [Animation](reference/apis/js-apis-animator.md)
- [WebGL](reference/apis/js-apis-webgl.md)
- [WebGL2](reference/apis/js-apis-webgl2.md)
- [Screenshot](reference/apis/js-apis-screenshot.md)
- [Accessibility](reference/apis/js-apis-accessibility.md)
- DFX
- [HiAppEvent](reference/apis/js-apis-hiappevent.md)
- [Performance Tracing](reference/apis/js-apis-hitracemeter.md)
- [Fault Logger](reference/apis/js-apis-faultLogger.md)
- [Distributed Call Chain Tracing](reference/apis/js-apis-hitracechain.md)
- [HiLog](reference/apis/js-apis-hilog.md)
- [HiChecker](reference/apis/js-apis-hichecker.md)
- [HiDebug](reference/apis/js-apis-hidebug.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
- [Obtaining Process Information](reference/apis/js-apis-process.md)
- [URL String Parsing](reference/apis/js-apis-url.md)
- [URI String Parsing](reference/apis/js-apis-uri.md)
- [Util](reference/apis/js-apis-util.md)
- [XML Parsing and Generation](reference/apis/js-apis-xml.md)
- [XML-to-JavaScript Conversion](reference/apis/js-apis-convertxml.md)
- [Worker Startup](reference/apis/js-apis-worker.md)
- [Linear Container ArrayList](reference/apis/js-apis-arraylist.md)
- [Linear Container Deque](reference/apis/js-apis-deque.md)
- [Linear Container List](reference/apis/js-apis-list.md)
- [Linear Container LinkedList](reference/apis/js-apis-linkedlist.md)
- [Linear Container Queue](reference/apis/js-apis-queue.md)
- [Linear Container Stack](reference/apis/js-apis-stack.md)
- [Linear Container Vector](reference/apis/js-apis-vector.md)
- [Nonlinear Container HashSet](reference/apis/js-apis-hashset.md)
- [Nonlinear Container HashMap](reference/apis/js-apis-hashmap.md)
- [Nonlinear Container PlainArray](reference/apis/js-apis-plainarray.md)
- [Nonlinear Container TreeMap](reference/apis/js-apis-treemap.md)
- [Nonlinear Container TreeSet](reference/apis/js-apis-treeset.md)
- [Nonlinear Container LightWeightMap](reference/apis/js-apis-lightweightmap.md)
- [Nonlinear Container LightWeightSet](reference/apis/js-apis-lightweightset.md)
- Custom Management
- [Configuration Policy](reference/apis/js-apis-config-policy.md)
- [@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
......@@ -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
此差异已折叠。
# 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<SendRequestResult>`
#### 变更影响
使用该接口的代码返回值类型为期约`Promise<SendRequestResult>`
#### 关键的接口/组件变更
#### 适配指导
```
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();
});
```
# 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<Result>; | 新增 |
| 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<string, Array<CustomizeData>>; | 新增 |
| applicationInfo | ApplicationInfo | readonly codePath: string; | 新增 |
| applicationInfo | ApplicationInfo | readonly moduleInfos: Array<ModuleInfo>; | 新增 |
| shellCmdResult | ShellCmdResult | exitCode: number; | 新增 |
| shellCmdResult | ShellCmdResult | stdResult: String; | 新增 |
| ProcessRunningInfo | ProcessRunningInfo | bundleNames: Array<string>; | 新增 |
| 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<ShellCmdResult>): void;<br>executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback<ShellCmdResult>): void;<br>executeShellCommand(cmd: string, timeoutSecs?: number): Promise<ShellCmdResult>; | 新增 |
| abilityDelegator | AbilityDelegator | print(msg: string, callback: AsyncCallback<void>): void;<br>print(msg: string): Promise<void>; | 新增 |
| context | Context | printDrawnCompleted(callback: AsyncCallback<void>): void;<br>printDrawnCompleted(): Promise<void>; | 新增 |
| context | Context | isUpdatingConfigurations(callback: AsyncCallback<boolean>): void;<br>isUpdatingConfigurations(): Promise<boolean>; | 新增 |
| context | Context | getAbilityInfo(callback: AsyncCallback<AbilityInfo>): void<br>getAbilityInfo(): Promise<AbilityInfo>; | 新增 |
| context | Context | getApplicationContext(): Context; | 新增 |
| context | Context | getAppVersionInfo(callback: AsyncCallback<AppVersionInfo>): void<br>getAppVersionInfo(): Promise<AppVersionInfo>; | 新增 |
| context | Context | getHapModuleInfo(callback: AsyncCallback<HapModuleInfo>): void<br>getHapModuleInfo(): Promise<HapModuleInfo>; | 新增 |
| context | Context | getAppType(callback: AsyncCallback<string>): void<br>getAppType(): Promise<string>; | 新增 |
| context | Context | getOrCreateDistributedDir(): Promise<string>;<br>getOrCreateDistributedDir(callback: AsyncCallback<string>): void; | 新增 |
| context | Context | getCacheDir(callback: AsyncCallback<string>): void;<br>getCacheDir(): Promise<string>; | 新增 |
| context | Context | getFilesDir(callback: AsyncCallback<string>): void;<br>getFilesDir(): Promise<string>; | 新增 |
| context | Context | setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback<void>): void<br>setWakeUpScreen(wakeUp: boolean): Promise<void>; | 新增 |
| context | Context | setShowOnLockScreen(show: boolean, callback: AsyncCallback<void>): void<br>setShowOnLockScreen(show: boolean): Promise<void>; | 新增 |
| context | Context | setDisplayOrientation(orientation: DisplayOrientation, callback: AsyncCallback<void>): void<br>setDisplayOrientation(orientation: DisplayOrientation): Promise<void>; | 新增 |
| context | Context | getDisplayOrientation(callback: AsyncCallback<DisplayOrientation>): void<br>getDisplayOrientation(): Promise<DisplayOrientation>; | 新增 |
| appVersionInfo | AppVersionInfo | readonly versionName: string; | 新增 |
| appVersionInfo | AppVersionInfo | readonly versionCode: number; | 新增 |
| appVersionInfo | AppVersionInfo | readonly appName: string; | 新增 |
| dataAbilityHelper | PacMap | [key: string]: number \| string \| boolean \| Array<string \| number \| boolean> \| null; | 新增 |
| dataAbilityHelper | DataAbilityHelper | executeBatch(uri: string, operations: Array<DataAbilityOperation>, callback: AsyncCallback<Array<DataAbilityResult>>): void;<br>executeBatch(uri: string, operations: Array<DataAbilityOperation>): Promise<Array<DataAbilityResult>>; | 新增 |
| dataAbilityHelper | DataAbilityHelper | call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback<PacMap>): void;<br>call(uri: string, method: string, arg: string, extras: PacMap): Promise<PacMap>; | 新增 |
| ohos.application.Want | Want | entities?: Array<string>; | 新增 |
| 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>): void;<br>function updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise<void>; | 新增 |
| ohos.application.formProvider | formProvider | function setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback<void>): void;<br>function setFormNextRefreshTime(formId: string, minute: number): Promise<void>; | 新增 |
| 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<number>; | 新增 |
| 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<number>;<br>function getAppMemorySize(callback: AsyncCallback<number>): void; | 新增 |
| ohos.application.appManager | appManager | function isRamConstrainedDevice(): Promise<boolean>;<br>function isRamConstrainedDevice(callback: AsyncCallback<boolean>): void; | 新增 |
| ohos.application.appManager | appManager | function getProcessRunningInfos(): Promise<Array<ProcessRunningInfo>>;<br>function getProcessRunningInfos(callback: AsyncCallback<Array<ProcessRunningInfo>>): void; | 新增 |
| ohos.application.appManager | appManager | function isRunningInStabilityTest(callback: AsyncCallback<boolean>): void;<br>function isRunningInStabilityTest(): Promise<boolean>; | 新增 |
| 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<GrantStatus>; | 新增 |
| 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>): void;<br>function disconnectAbility(connection: number): Promise<void>; | 新增 |
| ohos.ability.particleAbility | particleAbility | function connectAbility(request: Want, options:ConnectOptions): number; | 新增 |
| ohos.ability.particleAbility | particleAbility | function cancelBackgroundRunning(callback: AsyncCallback<void>): void;<br>function cancelBackgroundRunning(): Promise<void>; | 新增 |
| ohos.ability.particleAbility | particleAbility | function startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback<void>): void;<br>function startBackgroundRunning(id: number, request: NotificationRequest): Promise<void>; | 新增 |
| ohos.ability.featureAbility | featureAbility | function getWindow(callback: AsyncCallback<window.Window>): void;<br>function getWindow(): Promise<window.Window>; | 新增 |
| 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<PacMap>): void; | 新增 |
| lifecycle | LifecycleData | executeBatch?(ops: Array<DataAbilityOperation>, callback: AsyncCallback<Array<DataAbilityResult>>): 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; | 新增 |
# xxx子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
# 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<string>; | 新增 |
| 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<EventType>; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly description: string; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly capabilities: Array<Capability>; | 新增 |
| ohos.accessibility | AccessibilityAbilityInfo | readonly abilityTypes: Array<AbilityType>; | 新增 |
| 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<CaptionsStyle>): void; | 新增 |
| ohos.accessibility | CaptionsManager | off(type: 'enableChange', callback?: Callback<boolean>): void; | 新增 |
| ohos.accessibility | CaptionsManager | on(type: 'styleChange', callback: Callback<CaptionsStyle>): void; | 新增 |
| ohos.accessibility | CaptionsManager | on(type: 'enableChange', callback: Callback<boolean>): 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<boolean>): void; | 新增 |
| ohos.accessibility | accessibility | function off(type: 'accessibilityStateChange', callback?: Callback<boolean>): void; | 新增 |
| ohos.accessibility | accessibility | function on(type: 'touchGuideStateChange', callback: Callback<boolean>): void; | 新增 |
| ohos.accessibility | accessibility | function on(type: 'accessibilityStateChange', callback: Callback<boolean>): void; | 新增 |
| ohos.accessibility | accessibility | function sendEvent(event: EventInfo, callback: AsyncCallback<void>): void;<br>function sendEvent(event: EventInfo): Promise<void>; | 新增 |
| ohos.accessibility | accessibility | function getAbilityLists(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback<Array<AccessibilityAbilityInfo>>): void;<br>function getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise<Array<AccessibilityAbilityInfo>>; | 新增 |
| ohos.accessibility | accessibility | function isOpenTouchGuide(callback: AsyncCallback<boolean>): void;<br>function isOpenTouchGuide(): Promise<boolean>; | 新增 |
| ohos.accessibility | accessibility | function isOpenAccessibility(callback: AsyncCallback<boolean>): void;<br>function isOpenAccessibility(): Promise<boolean>; | 新增 |
# 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<string>; | 新增 |
| 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<number>): void;<br>getSerialNumberByOsAccountLocalId(localId: number): Promise<number>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback<number>): void;<br>getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise<number>; | 新增 |
| ohos.account.osAccount | AccountManager | getDistributedVirtualDeviceId(callback: AsyncCallback<string>): void;<br>getDistributedVirtualDeviceId(): Promise<string>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountTypeFromProcess(callback: AsyncCallback<OsAccountType>): void;<br>getOsAccountTypeFromProcess(): Promise<OsAccountType>; | 新增 |
| ohos.account.osAccount | AccountManager | queryCurrentOsAccount(callback: AsyncCallback<OsAccountInfo>): void;<br>queryCurrentOsAccount(): Promise<OsAccountInfo>; | 新增 |
| ohos.account.osAccount | AccountManager | queryActivatedOsAccountIds(callback: AsyncCallback<Array<number>>): void;<br>queryActivatedOsAccountIds(): Promise<Array<number>>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountAllConstraints(localId: number, callback: AsyncCallback<Array<string>>): void;<br>getOsAccountAllConstraints(localId: number): Promise<Array<string>>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback<number>): void;<br>getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise<number>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback<number>): void;<br>getOsAccountLocalIdFromUid(uid: number): Promise<number>; | 新增 |
| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromProcess(callback: AsyncCallback<number>): void;<br>getOsAccountLocalIdFromProcess(): Promise<number>; | 新增 |
| ohos.account.osAccount | AccountManager | getCreatedOsAccountsCount(callback: AsyncCallback<number>): void;<br>getCreatedOsAccountsCount(): Promise<number>; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountVerified(callback: AsyncCallback<boolean>): void;<br>isOsAccountVerified(localId: number, callback: AsyncCallback<boolean>): void;<br>isOsAccountVerified(localId?: number): Promise<boolean>; | 新增 |
| ohos.account.osAccount | AccountManager | isTestOsAccount(callback: AsyncCallback<boolean>): void;<br>isTestOsAccount(): Promise<boolean>; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback<boolean>): void;<br>isOsAccountConstraintEnable(localId: number, constraint: string): Promise<boolean>; | 新增 |
| ohos.account.osAccount | AccountManager | isOsAccountActived(localId: number, callback: AsyncCallback<boolean>): void;<br>isOsAccountActived(localId: number): Promise<boolean>; | 新增 |
| ohos.account.osAccount | AccountManager | isMultiOsAccountEnable(callback: AsyncCallback<boolean>): void;<br>isMultiOsAccountEnable(): Promise<boolean>; | 新增 |
| 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<AuthenticatorInfo>): void;<br>getAuthenticatorInfo(owner: string): Promise<AuthenticatorInfo>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAuthenticatorCallback(sessionId: string, callback: AsyncCallback<AuthenticatorCallback>): void;<br>getAuthenticatorCallback(sessionId: string): Promise<AuthenticatorCallback>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getOAuthList(name: string, authType: string, callback: AsyncCallback<Array<string>>): void;<br>getOAuthList(name: string, authType: string): Promise<Array<string>>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback<Array<OAuthTokenInfo>>): void;<br>getAllOAuthTokens(name: string, owner: string): Promise<Array<OAuthTokenInfo>>; | 新增 |
| ohos.account.appAccount | AppAccountManager | checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback<boolean>): void;<br>checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise<boolean>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback<void>): void;<br>setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise<void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback<void>): void;<br>deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise<void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback<void>): void;<br>setOAuthToken(name: string, authType: string, token: string): Promise<void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback<string>): void;<br>getOAuthToken(name: string, owner: string, authType: string): Promise<string>; | 新增 |
| 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<Array<AppAccountInfo>>): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | on(type: 'change', owners: Array<string>, callback: Callback<Array<AppAccountInfo>>): void; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAssociatedData(name: string, key: string, callback: AsyncCallback<string>): void;<br>getAssociatedData(name: string, key: string): Promise<string>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAccountExtraInfo(name: string, callback: AsyncCallback<string>): void;<br>getAccountExtraInfo(name: string): Promise<string>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback<string>): void;<br>getAccountCredential(name: string, credentialType: string): Promise<string>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllAccounts(owner: string, callback: AsyncCallback<Array<AppAccountInfo>>): void;<br>getAllAccounts(owner: string): Promise<Array<AppAccountInfo>>; | 新增 |
| ohos.account.appAccount | AppAccountManager | getAllAccessibleAccounts(callback: AsyncCallback<Array<AppAccountInfo>>): void;<br>getAllAccessibleAccounts(): Promise<Array<AppAccountInfo>>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback<void>): void;<br>setAssociatedData(name: string, key: string, value: string): Promise<void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback<void>): void;<br>setAppAccountSyncEnable(name: string, isEnable: boolean): Promise<void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback<void>): void;<br>setAccountExtraInfo(name: string, extraInfo: string): Promise<void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback<void>): void;<br>setAccountCredential(name: string, credentialType: string, credential: string): Promise<void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | checkAppAccountSyncEnable(name: string, callback: AsyncCallback<boolean>): void;<br>checkAppAccountSyncEnable(name: string): Promise<boolean>; | 新增 |
| ohos.account.appAccount | AppAccountManager | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void;<br>enableAppAccess(name: string, bundleName: string): Promise<void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void;<br>disableAppAccess(name: string, bundleName: string): Promise<void>; | 新增 |
| ohos.account.appAccount | AppAccountManager | deleteAccount(name: string, callback: AsyncCallback<void>): void;<br>deleteAccount(name: string): Promise<void>; | 新增 |
| 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>): void;<br>addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>): void;<br>addAccount(name: string, extraInfo?: string): Promise<void>; | 新增 |
| ohos.account.appAccount | appAccount | function createAppAccountManager(): AppAccountManager; | 新增 |
# 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 | 新增 | 新增日期滑动选择器弹窗。 |
# 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>): void; | 新增 |
| ohos.thermal | thermal | function subscribeThermalLevel(callback: AsyncCallback<ThermalLevel>): 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<RunningLock>): void;<br>function createRunningLock(name: string, type: RunningLockType): Promise<RunningLock>; | 新增 |
| ohos.runninglock | runningLock | function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback<boolean>): void;<br>function isRunningLockTypeSupported(type: RunningLockType): Promise<boolean>; | 新增 |
# 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<number>; | 新增 |
| bundleInfo | BundleInfo | readonly hapModuleInfos: Array<HapModuleInfo>; | 新增 |
| bundleInfo | BundleInfo | readonly abilityInfos: Array<AbilityInfo>; | 新增 |
| abilityInfo | AbilityInfo | readonly enabled: boolean; | 新增 |
| abilityInfo | AbilityInfo | readonly metaData: Array<CustomizeData>; | 新增 |
| ohos.zlib | zlib | function unzipFile(inFile:string, outFile:string, options: Options): Promise<void>; | 新增 |
| ohos.zlib | zlib | function zipFile(inFile:string, outFile:string, options: Options): Promise<void>; | 新增 |
| 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<boolean>): void;<br>function isApplicationEnabled(bundleName: string): Promise<boolean>; | 新增 |
| ohos.bundle | bundle | function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback<boolean>): void;<br>function isAbilityEnabled(info: AbilityInfo): Promise<boolean>; | 新增 |
| ohos.bundle | bundle | function getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback<image.PixelMap>): void;<br>function getAbilityIcon(bundleName: string, abilityName: string): Promise<image.PixelMap>; | 新增 |
| ohos.bundle | bundle | function getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback<string>): void;<br>function getAbilityLabel(bundleName: string, abilityName: string): Promise<string>; | 新增 |
| ohos.bundle | bundle | function getNameForUid(uid: number, callback: AsyncCallback<string>) : void<br>function getNameForUid(uid: number) : Promise<string>; | 新增 |
| ohos.bundle | bundle | function getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback<AbilityInfo>): void;<br>function getAbilityInfo(bundleName: string, abilityName: string): Promise<AbilityInfo>; | 新增 |
| 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 | 新增 |
# xxx子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
# 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<Array<FaultLogInfo>>) : void;<br>function querySelfFaultLog(faultType: FaultType) : Promise<Array<FaultLogInfo>>; | 新增 |
| ohos.faultLogger | FaultType | APP_FREEZE = 4 | 新增 |
| ohos.faultLogger | FaultType | JS_CRASH = 3 | 新增 |
| ohos.faultLogger | FaultType | CPP_CRASH = 2 | 新增 |
| ohos.faultLogger | FaultType | NO_SPECIFIC = 0 | 新增 |
# 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<string>): RdbPredicates; | 新增 |
| ohos.data.rdb | RdbStore | off(event:'dataChange', type: SubscribeType, observer: Callback<Array<string>>): void; | 新增 |
| ohos.data.rdb | RdbStore | on(event: 'dataChange', type: SubscribeType, observer: Callback<Array<string>>): void; | 新增 |
| ohos.data.rdb | RdbStore | sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback<Array<[string, number]>>): void;<br>sync(mode: SyncMode, predicates: RdbPredicates): Promise<Array<[string, number]>>; | 新增 |
| ohos.data.rdb | RdbStore | obtainDistributedTableName(device: string, table: string, callback: AsyncCallback<string>): void;<br>obtainDistributedTableName(device: string, table: string): Promise<string>; | 新增 |
| ohos.data.rdb | RdbStore | setDistributedTables(tables: Array<string>, callback: AsyncCallback<void>): void;<br>setDistributedTables(tables: Array<string>): Promise<void>; | 新增 |
| 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<ValueType>, callback: AsyncCallback<ResultSet>): void;<br>querySql(sql: string, bindArgs?: Array<ValueType>): Promise<ResultSet>; | 新增 |
| 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<string> }>): void; | 新增 |
| ohos.data.distributedDataObject | DistributedObject | on(type: 'change', callback: Callback<{ sessionId: string, fields: Array<string> }>): 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>): void; | 新增 |
| ohos.data.distributedData | KVManager | on(event: 'distributedDataServiceDie', deathCallback: Callback<void>): void; | 新增 |
| ohos.data.distributedData | KVManager | getAllKVStoreId(appId: string, callback: AsyncCallback<string[]>): void;<br>getAllKVStoreId(appId: string): Promise<string[]>; | 新增 |
| ohos.data.distributedData | KVManager | deleteKVStore(appId: string, storeId: string, callback: AsyncCallback<void>): void;<br>deleteKVStore(appId: string, storeId: string): Promise<void>; | 新增 |
| ohos.data.distributedData | KVManager | closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback<void>): void;<br>closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise<void>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | off(event: 'syncComplete', syncCallback?: Callback<Array<[string, number]>>): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | on(event: 'syncComplete', syncCallback: Callback<Array<[string, number]>>): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void; | 新增 |
| ohos.data.distributedData | DeviceKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback<void>): void;<br>removeDeviceData(deviceId: string): Promise<void>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getResultSize(query: Query, callback: AsyncCallback<number>): void;<br>getResultSize(query: Query): Promise<number>;<br>getResultSize(deviceId: string, query: Query, callback: AsyncCallback<number>): void;<br>getResultSize(deviceId: string, query: Query): Promise<number>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback<void>): void;<br>closeResultSet(resultSet: KvStoreResultSet): Promise<void>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback<KvStoreResultSet>): void;<br>getResultSet(deviceId: string, keyPrefix: string): Promise<KvStoreResultSet>;<br>getResultSet(query: Query, callback: AsyncCallback<KvStoreResultSet>): void;<br>getResultSet(query: Query): Promise<KvStoreResultSet>;<br>getResultSet(deviceId: string, query: Query, callback: AsyncCallback<KvStoreResultSet>): void;<br>getResultSet(deviceId: string, query: Query): Promise<KvStoreResultSet>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback<Entry[]>): void;<br>getEntries(deviceId: string, keyPrefix: string): Promise<Entry[]>;<br>getEntries(query: Query, callback: AsyncCallback<Entry[]>): void;<br>getEntries(query: Query): Promise<Entry[]>;<br>getEntries(deviceId: string, query: Query, callback: AsyncCallback<Entry[]>): void;<br>getEntries(deviceId: string, query: Query): Promise<Entry[]>; | 新增 |
| ohos.data.distributedData | DeviceKVStore | get(deviceId: string, key: string, callback: AsyncCallback<boolean\|string\|number\|Uint8Array>): void;<br>get(deviceId: string, key: string): Promise<boolean\|string\|number\|Uint8Array>; | 新增 |
| ohos.data.distributedData | SingleKVStore | getSecurityLevel(callback: AsyncCallback<SecurityLevel>): void;<br>getSecurityLevel(): Promise<SecurityLevel>; | 新增 |
| ohos.data.distributedData | SingleKVStore | setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback<void>): void;<br>setSyncParam(defaultAllowedDelayMs: number): Promise<void>; | 新增 |
| ohos.data.distributedData | SingleKVStore | off(event: 'syncComplete', syncCallback?: Callback<Array<[string, number]>>): void; | 新增 |
| ohos.data.distributedData | SingleKVStore | on(event: 'syncComplete', syncCallback: Callback<Array<[string, number]>>): void; | 新增 |
| ohos.data.distributedData | SingleKVStore | removeDeviceData(deviceId: string, callback: AsyncCallback<void>): void;<br>removeDeviceData(deviceId: string): Promise<void>; | 新增 |
| ohos.data.distributedData | SingleKVStore | getResultSize(query: Query, callback: AsyncCallback<number>): void;<br>getResultSize(query: Query): Promise<number>; | 新增 |
| ohos.data.distributedData | SingleKVStore | closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback<void>): void;<br>closeResultSet(resultSet: KvStoreResultSet): Promise<void>; | 新增 |
| ohos.data.distributedData | SingleKVStore | getResultSet(keyPrefix: string, callback: AsyncCallback<KvStoreResultSet>): void;<br>getResultSet(keyPrefix: string): Promise<KvStoreResultSet>;<br>getResultSet(query: Query, callback: AsyncCallback<KvStoreResultSet>): void;<br>getResultSet(query: Query): Promise<KvStoreResultSet>; | 新增 |
| ohos.data.distributedData | SingleKVStore | getEntries(keyPrefix: string, callback: AsyncCallback<Entry[]>): void;<br>getEntries(keyPrefix: string): Promise<Entry[]>;<br>getEntries(query: Query, callback: AsyncCallback<Entry[]>): void;<br>getEntries(query: Query): Promise<Entry[]>; | 新增 |
| ohos.data.distributedData | KVStore | setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback<void>): void;<br>setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise<void>; | 新增 |
| ohos.data.distributedData | KVStore | enableSync(enabled: boolean, callback: AsyncCallback<void>): void;<br>enableSync(enabled: boolean): Promise<void>; | 新增 |
| ohos.data.distributedData | KVStore | rollback(callback: AsyncCallback<void>): void;<br>rollback(): Promise<void>; | 新增 |
| ohos.data.distributedData | KVStore | commit(callback: AsyncCallback<void>): void;<br>commit(): Promise<void>; | 新增 |
| ohos.data.distributedData | KVStore | startTransaction(callback: AsyncCallback<void>): void;<br>startTransaction(): Promise<void>; | 新增 |
| ohos.data.distributedData | KVStore | deleteBatch(keys: string[], callback: AsyncCallback<void>): void;<br>deleteBatch(keys: string[]): Promise<void>; | 新增 |
| ohos.data.distributedData | KVStore | putBatch(entries: Entry[], callback: AsyncCallback<void>): void;<br>putBatch(entries: Entry[]): Promise<void>; | 新增 |
| ohos.data.distributedData | KVStore | off(event:'dataChange', observer?: Callback<ChangeNotification>): 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<string>; | 新增 |
| ohos.data.distributedData | Schema | root: FieldNode; | 新增 |
| ohos.data.distributedData | Schema | constructor() | 新增 |
| ohos.data.distributedData | Options | schema?: Schema; | 新增 |
# JS API Diff
# 分布式硬件子系统JS API变更
OpenHarmony 3.1 LTS版本相较于OpenHarmony 3.1 Beta版本的API变更如下:
......
# 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<string>; | 新增 |
| notificationRequest | DistributedOptions | supportDisplayDevices?: Array<string>; | 新增 |
| 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<boolean>): void;<br>function isDistributedEnabled(): Promise<boolean>; | 新增 |
| ohos.notification | notification | function requestEnableNotification(callback: AsyncCallback<void>): void;<br>function requestEnableNotification(): Promise<void>; | 新增 |
| ohos.notification | notification | function isSupportTemplate(templateName: string, callback: AsyncCallback<boolean>): void;<br>function isSupportTemplate(templateName: string): Promise<boolean>; | 新增 |
| ohos.notification | notification | function cancelGroup(groupName: string, callback: AsyncCallback<void>): void;<br>function cancelGroup(groupName: string): Promise<void>; | 新增 |
| 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<EventData>): void; | 新增 |
| ohos.events.emitter | emitter | function on(event: InnerEvent, callback: Callback<EventData>): 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" | 新增 |
# 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<number>): void;<br>function getTotalBytes(path: string): Promise<number>; | 新增 |
| ohos.statfs | Statfs | function getFreeBytes(path: string, callback: AsyncCallback<number>): void;<br>function getFreeBytes(path: string): Promise<number>; | 新增 |
| ohos.fileio | Watcher | stop(): Promise<void>;<br>stop(callback: AsyncCallback<void>): 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<ReadOut>;<br>read(buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void;<br>read(buffer: ArrayBuffer, options: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback<ReadOut>): void; | 新增 |
| ohos.fileio | Stream | write(buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise<number>;<br>write(buffer: ArrayBuffer \| string, callback: AsyncCallback<number>): void;<br>write(buffer: ArrayBuffer \| string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback<number>): void; | 新增 |
| ohos.fileio | Stream | flush(): Promise<void>;<br>flush(callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | Stream | close(): Promise<void>;<br>close(callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | Dir | close(): Promise<void>;<br>close(callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | Dir | read(): Promise<Dirent>;<br>read(callback: AsyncCallback<Dirent>): void; | 新增 |
| ohos.fileio | fileIO | function createWatcher(filename: string, events: number, callback: AsyncCallback<number>): Watcher; | 新增 |
| ohos.fileio | fileIO | function write(fd: number, buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): Promise<number>;<br>function write(fd: number, buffer: ArrayBuffer \| string, callback: AsyncCallback<number>): void;<br>function write(fd: number, buffer: ArrayBuffer \| string, options: { offset?: number; length?: number; position?: number; encoding?: string; }, callback: AsyncCallback<number>): void; | 新增 |
| ohos.fileio | fileIO | function unlink(path: string): Promise<void>;<br>function unlink(path: string, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function truncate(path: string, len?: number): Promise<void>;<br>function truncate(path: string, callback: AsyncCallback<void>): void;<br>function truncate(path: string, len: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function symlinkSync(target: string, srcPath: string): void; | 新增 |
| ohos.fileio | fileIO | function symlink(target: string, srcPath: string): Promise<void>;<br>function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function stat(path: string): Promise<Stat>;<br>function stat(path: string, callback: AsyncCallback<Stat>): void; | 新增 |
| ohos.fileio | fileIO | function rmdir(path: string): Promise<void>;<br>function rmdir(path: string, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function rename(oldPath: string, newPath: string): Promise<void>;<br>function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): Promise<ReadOut><br>function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void;<br>function read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; position?: number; }, callback: AsyncCallback<ReadOut>): 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<string>;<br>function readText(filePath: string, options: { position?: number; length?: number; encoding?: string; }, callback: AsyncCallback<string>): void; | 新增 |
| ohos.fileio | fileIO | function opendir(path: string): Promise<Dir>;<br>function opendir(path: string, callback: AsyncCallback<Dir>): void; | 新增 |
| ohos.fileio | fileIO | function open(path: string, flags?: number, mode?: number): Promise<number>;<br>function open(path: string, callback: AsyncCallback<number>): void;<br>function open(path: string, flags: number, callback: AsyncCallback<number>): void;<br>function open(path: string, flags: number, mode: number, callback: AsyncCallback<number>): void; | 新增 |
| ohos.fileio | fileIO | function mkdtempSync(prefix: string): string; | 新增 |
| ohos.fileio | fileIO | function mkdtemp(prefix: string): Promise<string>;<br>function mkdtemp(prefix: string, callback: AsyncCallback<string>): void; | 新增 |
| ohos.fileio | fileIO | function mkdir(path: string, mode?: number): Promise<void>;<br>function mkdir(path: string, callback: AsyncCallback<void>): void;<br>function mkdir(path: string, mode: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function lstatSync(path: string): Stat; | 新增 |
| ohos.fileio | fileIO | function lstat(path: string): Promise<Stat>;<br>function lstat(path: string, callback: AsyncCallback<Stat>): 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<void>;<br>function lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function hash(path: string, algorithm: string): Promise<string>;<br>function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void; | 新增 |
| ohos.fileio | fileIO | function fdopenStream(fd: number, mode: string): Promise<Stream>;<br>function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void; | 新增 |
| ohos.fileio | fileIO | function fchmod(fd: number, mode: number): Promise<void>;<br>function fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function fchown(fd: number, uid: number, gid: number): Promise<void>;<br>function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function fdatasyncSync(fd: number): void; | 新增 |
| ohos.fileio | fileIO | function fdatasync(fd: number): Promise<void>;<br>function fdatasync(fd: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function fstat(fd: number): Promise<Stat>;<br>function fstat(fd: number, callback: AsyncCallback<Stat>): void; | 新增 |
| ohos.fileio | fileIO | function fsync(fd: number): Promise<void>;<br>function fsync(fd: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function ftruncate(fd: number, len?: number): Promise<void>;<br>function ftruncate(fd: number, callback: AsyncCallback<void>): void;<br>function ftruncate(fd: number, len: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function chmod(path: string, mode: number): Promise<void>;<br>function chmod(path: string, mode: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function chown(path: string, uid: number, gid: number): Promise<void>;<br>function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function createStream(path: string, mode: string): Promise<Stream>;<br>function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void; | 新增 |
| ohos.fileio | fileIO | function copyFile(src: string \| number, dest: string \| number, mode?: number): Promise<void>;<br>function copyFile(src: string \| number, dest: string \| number, callback: AsyncCallback<void>): void;<br>function copyFile(src: string \| number, dest: string \| number, mode: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function close(fd: number): Promise<void>;<br>function close(fd: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.fileio | fileIO | function access(path: string, mode?: number): Promise<void>;<br>function access(path: string, callback: AsyncCallback<void>): void;<br>function access(path: string, mode: number, callback: AsyncCallback<void>): void; | 新增 |
| ohos.document | document | function show(uri: string, type: string): Promise<void>;<br>function show(uri: string, type: string, callback: AsyncCallback<void>): void; | 新增 |
| ohos.document | document | function choose(types?: string[]): Promise<string>;<br>function choose(callback: AsyncCallback<string>): void;<br>function choose(types: string[], callback: AsyncCallback<string>): void; | 新增 |
# 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<string>; | 新增 |
| 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<string>; | 新增 |
| 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<number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | azimuths: Array<number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | altitudes: Array<number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | carrierToNoiseDensitys: Array<number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | satelliteIds: Array<number>; | 新增 |
| ohos.geolocation | SatelliteStatusInfo | satellitesNumber: number; | 新增 |
| ohos.geolocation | geolocation | function sendCommand(command: LocationCommand, callback: AsyncCallback<boolean>) : void;<br>function sendCommand(command: LocationCommand) : Promise<boolean>; | 新增 |
| ohos.geolocation | geolocation | function flushCachedGnssLocations(callback: AsyncCallback<boolean>) : void;<br>function flushCachedGnssLocations() : Promise<boolean>; | 新增 |
| ohos.geolocation | geolocation | function getCachedGnssLocationsSize(callback: AsyncCallback<number>) : void;<br>function getCachedGnssLocationsSize() : Promise<number>; | 新增 |
| ohos.geolocation | geolocation | function isGeoServiceAvailable(callback: AsyncCallback<boolean>) : void;<br>function isGeoServiceAvailable() : Promise<boolean>; | 新增 |
| ohos.geolocation | geolocation | function getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback<Array<GeoAddress>>) : void;<br>function getAddressesFromLocationName(request: GeoCodeRequest) : Promise<Array<GeoAddress>>; | 新增 |
| ohos.geolocation | geolocation | function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback<Array<GeoAddress>>) : void;<br>function getAddressesFromLocation(request: ReverseGeoCodeRequest) : Promise<Array<GeoAddress>>; | 新增 |
| ohos.geolocation | geolocation | function requestEnableLocation(callback: AsyncCallback<boolean>) : void;<br>function requestEnableLocation() : Promise<boolean>; | 新增 |
| ohos.geolocation | geolocation | function isLocationEnabled(callback: AsyncCallback<boolean>) : void;<br>function isLocationEnabled() : Promise<boolean>; | 新增 |
| ohos.geolocation | geolocation | function getLastLocation(callback: AsyncCallback<Location>) : void;<br>function getLastLocation() : Promise<Location>; | 新增 |
| ohos.geolocation | geolocation | function getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback<Location>) : void;<br>function getCurrentLocation(callback: AsyncCallback<Location>) : void;<br>function getCurrentLocation(request?: CurrentLocationRequest) : Promise<Location>; | 新增 |
| 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<string>) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'nmeaMessageChange', callback: Callback<string>) : void; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'gnssStatusChange', callback?: Callback<SatelliteStatusInfo>) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'gnssStatusChange', callback: Callback<SatelliteStatusInfo>) : void; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'cachedGnssLocationsReporting', callback?: Callback<Array<Location>>) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback<Array<Location>>) : void; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'locationServiceState', callback?: Callback<boolean>) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'locationServiceState', callback: Callback<boolean>) : void; | 新增 |
| ohos.geolocation | geolocation | function off(type: 'locationChange', callback?: Callback<Location>) : void; | 新增 |
| ohos.geolocation | geolocation | function on(type: 'locationChange', request: LocationRequest, callback: Callback<Location>) : void; | 新增 |
# 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>): void;<br>closeRawFileDescriptor(path: string): Promise<void>; | 新增 |
| ohos.resourceManager | ResourceManager | getRawFileDescriptor(path: string, callback: AsyncCallback<RawFileDescriptor>): void;<br>getRawFileDescriptor(path: string): Promise<RawFileDescriptor>; | 新增 |
| ohos.resourceManager | ResourceManager | getRawFile(path: string, callback: AsyncCallback<Uint8Array>): void;<br>getRawFile(path: string): Promise<Uint8Array>; | 新增 |
| ohos.resourceManager | resourceManager | function getResourceManager(callback: AsyncCallback<ResourceManager>): void;<br>export function getResourceManager(bundleName: string, callback: AsyncCallback<ResourceManager>): void;<br>export function getResourceManager(): Promise<ResourceManager>;<br>export function getResourceManager(bundleName: string): Promise<ResourceManager>; | 新增 |
| ohos.intl | RelativeTimeFormat | resolvedOptions(): RelativeTimeFormatResolvedOptions; | 新增 |
| ohos.intl | RelativeTimeFormat | formatToParts(value: number, unit: string): Array<object>; | 新增 |
| 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<string>; | 新增 |
| 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<string>; | 新增 |
| 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;<br>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; | 新增 |
# 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<InputDeviceData>): void;<br>function getDevice(deviceId: number): Promise<InputDeviceData>; | 新增 |
| ohos.multimodalInput.inputDevice | inputDevice | function getDeviceIds(callback: AsyncCallback<Array<number>>): void;<br>function getDeviceIds(): Promise<Array<number>>; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | axisRanges : Array<AxisRange>; | 新增 |
| ohos.multimodalInput.inputDevice | InputDeviceData | sources : Array<SourceType>; | 新增 |
| 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; | 新增 |
# xxx子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
# xxx子系统JS API变更
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,XXX子系统的API变更如下:
## 接口变更
| 模块名称 | 接口名称 | 变更类型 | 变更说明 |
| -------- | -------- | -------- | -------- |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册