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

!3324 #I50EA1完成,请审批

Merge pull request !3324 from Annie_wang/OpenHarmony-3.1-Release
...@@ -231,7 +231,7 @@ You should override **onDestroy** to delete widget data. ...@@ -231,7 +231,7 @@ You should override **onDestroy** to delete widget data.
} }
``` ```
For details about the persistence method, see [Lightweight Data Store Development](../database/database-preference-guidelines.md). For details about the persistence method, see [Lightweight Data Store Development](../database/database-storage-guidelines.md).
Note that the **Want** passed by the widget host to the widget provider contains a temporary flag, indicating whether the requested widget is a temporary one. Note that the **Want** passed by the widget host to the widget provider contains a temporary flag, indicating whether the requested widget is a temporary one.
......
...@@ -2,16 +2,8 @@ ...@@ -2,16 +2,8 @@
- [Application Development Overview](application-dev-guide.md) - [Application Development Overview](application-dev-guide.md)
- Quick Start - Quick Start
- Getting Started
- [Preparations](quick-start/start-overview.md)
- [Getting Started with eTS in the Traditional Coding Approach](quick-start/start-with-ets.md)
- [Getting Started with eTS in the Low-Code Approach](quick-start/start-with-ets-low-code.md)
- [Getting Started with JavaScript in the Traditional Coding Approach](quick-start/start-with-js.md)
- [Getting Started with JavaScript in the Low-Code Approach](quick-start/start-with-js-low-code.md)
- Development Fundamentals
- [Directory Structure](quick-start/package-structure.md) - [Directory Structure](quick-start/package-structure.md)
- [Resource File Categories](quick-start/basic-resource-file-categories.md) - [Resource File Categories](quick-start/basic-resource-file-categories.md)
- [SysCap](quick-start/syscap.md)
- Development - Development
- Ability Development - Ability Development
- FA Model - FA Model
...@@ -20,12 +12,10 @@ ...@@ -20,12 +12,10 @@
- [Service Ability Development](ability/fa-serviceability.md) - [Service Ability Development](ability/fa-serviceability.md)
- [Data Ability Development](ability/fa-dataability.md) - [Data Ability Development](ability/fa-dataability.md)
- [FA Widget Development](ability/fa-formability.md) - [FA Widget Development](ability/fa-formability.md)
- Other - Other
- [WantAgent Development](wantagent.md) - [Ability Assistant Usage](ability/ability-assistant-guidelines.md)
- [Ability Assistant Usage](ability-assistant-guidelines.md)
- [Test Framework Usage](ability-delegator.md)
- UI - UI
- [ArkUI Overview](ui/arkui-overview.md)
- JavaScript-based Web-Like Development Paradigm - JavaScript-based Web-Like Development Paradigm
- [Overview](ui/ui-js-overview.md) - [Overview](ui/ui-js-overview.md)
- Framework - Framework
...@@ -53,39 +43,17 @@ ...@@ -53,39 +43,17 @@
- [Defining Page Routes](ui/ui-js-building-ui-routes.md) - [Defining Page Routes](ui/ui-js-building-ui-routes.md)
- Common Component Development Guidelines - Common Component Development Guidelines
- Container Components - Container Components
- [List Development](ui/ui-js-components-list.md) - [List](ui/ui-js-components-list.md)
- [Dialog Development](ui/ui-js-components-dialog.md) - [Dialog](ui/ui-js-components-dialog.md)
- [Form Development](ui/ui-js-components-form.md) - [Form](ui/ui-js-components-form.md)
- [Stepper Development](ui/ui-js-components-stepper.md) - [Stepper](ui/ui-js-components-stepper.md)
- [Tabs Development](ui/ui-js-component-tabs.md) - [Tabs](ui/ui-js-component-tabs.md)
- [Swiper Development](ui/ui-js-components-swiper.md)
- Basic Components - Basic Components
- [Text Development](ui/ui-js-components-text.md) - [Text](ui/ui-js-components-text.md)
- [Input Development](ui/ui-js-components-input.md) - [Input](ui/ui-js-components-input.md)
- [Button Development](ui/ui-js-components-button.md) - [Button](ui/ui-js-components-button.md)
- [Picker Development](ui/ui-js-components-picker.md) - [Picker](ui/ui-js-components-picker.md)
- [Image Development](ui/ui-js-components-images.md) - [Image](ui/ui-js-components-images.md)
- [Image-animator Development](ui/ui-js-components-image-animator.md)
- [Rating Development](ui/ui-js-components-rating.md)
- [Slider Development](ui/ui-js-components-slider.md)
- [Chart Development](ui/ui-js-components-chart.md)
- [Switch Development](ui/ui-js-components-switch.md)
- [Toolbar Development](ui/ui-js-components-toolbar.md)
- [Menu Development](ui/ui-js-components-menu.md)
- [Marquee Development](ui/ui-js-components-marquee.md)
- [Qrcode Development](ui/ui-js-components-qrcode.md)
- [Search Development](ui/ui-js-components-search.md)
- Canvas Development
- [Canvas](ui/ui-js-components-canvas.md)
- [CanvasRenderingContext2D](ui/ui-js-components-canvasrenderingcontext2d.md)
- [Path2D](ui/ui-js-components-path2d.md)
- [OffscreenCanvas](ui/ui-js-components-offscreencanvas.md)
- [Grid-container Development](ui/ui-js-components-calendar.md)
- Svg
- [Basics](ui/ui-js-components-svg-overview.md)
- [Graph Drawing](ui/ui-js-components-svg-graphics.md)
- [Path Drawing](ui/ui-js-components-svg-path.md)
- [Text Drawing](ui/ui-js-components-svg-text.md)
- Animation Development Guidelines - Animation Development Guidelines
- CSS Animation - CSS Animation
- [Defining Attribute Style Animations](ui/ui-js-animate-attribute-style.md) - [Defining Attribute Style Animations](ui/ui-js-animate-attribute-style.md)
...@@ -152,13 +120,6 @@ ...@@ -152,13 +120,6 @@
- [Custom Component Lifecycle Callbacks](ui/ts-custom-component-lifecycle-callbacks.md) - [Custom Component Lifecycle Callbacks](ui/ts-custom-component-lifecycle-callbacks.md)
- [Example: Component Creation and Re-Initialization](ui/ts-component-creation-re-initialization.md) - [Example: Component Creation and Re-Initialization](ui/ts-component-creation-re-initialization.md)
- [Syntactic Sugar](ui/ts-syntactic-sugar.md) - [Syntactic Sugar](ui/ts-syntactic-sugar.md)
- Common Component Development Guidelines
- [Button](ui/ui-ts-basic-components-button.md)
- [Web](ui/ui-ts-components-web.md)
- Common Layout Development Guidelines
- [Flex Layout](ui/ui-ts-layout-flex.md)
- [Grid Layout](ui/ui-ts-layout-grid-container.md)
- [Media Query](ui/ui-ts-layout-mediaquery.md)
- Experiencing the Declarative UI - Experiencing the Declarative UI
- [Creating a Declarative UI Project](ui/ui-ts-creating-project.md) - [Creating a Declarative UI Project](ui/ui-ts-creating-project.md)
- [Getting to Know Components](ui/ui-ts-components.md) - [Getting to Know Components](ui/ui-ts-components.md)
...@@ -197,14 +158,8 @@ ...@@ -197,14 +158,8 @@
- User Authentication - User Authentication
- [User Authentication Overview](security/userauth-overview.md) - [User Authentication Overview](security/userauth-overview.md)
- [User Authentication Development](security/userauth-guidelines.md) - [User Authentication Development](security/userauth-guidelines.md)
- Key Management - hapsigner
- [HUKS Overview](security/huks-overview.md) - [hapsigner Guide](security/hapsigntool-guidelines.md)
- [HUKS Development](security/huks-guidelines.md)
- hapsigntool
- [hapsigntool Guide](security/hapsigntool-guidelines.md)
- Access Control
- [Access Control Overview](security/accesstoken-overview.md)
- [Access Control Development](security/accesstoken-guidelines.md)
- Connectivity - Connectivity
- IPC & RPC - IPC & RPC
- [IPC & RPC Overview](connectivity/ipc-rpc-overview.md) - [IPC & RPC Overview](connectivity/ipc-rpc-overview.md)
...@@ -218,11 +173,8 @@ ...@@ -218,11 +173,8 @@
- [RDB Overview](database/database-relational-overview.md) - [RDB Overview](database/database-relational-overview.md)
- [RDB Development](database/database-relational-guidelines.md) - [RDB Development](database/database-relational-guidelines.md)
- Lightweight Data Store - Lightweight Data Store
- [Lightweight Data Store Overview](database/database-preference-overview.md) - [Lightweight Data Store Overview](database/database-storage-overview.md)
- [Lightweight Data Store Development](database/database-preference-guidelines.md) - [Lightweight Data Store Development](database/database-storage-guidelines.md)
- Distributed Data Object
- [Distributed Data Object Overview](database/database-distributedobject-overview.md)
- [Distributed Data Object Development](database/database-distributedobject-guidelines.md)
- Agent-Powered Scheduled Reminders - Agent-Powered Scheduled Reminders
- [Overview](background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md) - [Overview](background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md)
- [Development Guidelines](background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md) - [Development Guidelines](background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md)
...@@ -516,31 +468,35 @@ ...@@ -516,31 +468,35 @@
- APIs - APIs
- Ability Framework - Ability Framework
- [@ohos.ability.dataUriUtils](reference/js-apis-DataUriUtils.md) - [@ohos.ability.dataUriUtils](reference/apis/js-apis-DataUriUtils.md)
- [@ohos.ability.errorCode](reference/js-apis-ability-errorCode.md) - [@ohos.application.Ability](reference/apis/js-apis-application-ability.md)
- [@ohos.ability.wantConstant](reference/js-apis-ability-wantConstant.md) - [@ohos.application.AbilityConstant](reference/apis/js-apis-application-abilityConstant.md)
- [@ohos.application.abilityDelegatorRegistry](reference/js-apis-abilityDelegatorRegistry.md) - [@ohos.application.AbilityStage ](reference/apis/js-apis-application-abilitystage.md)
- [@ohos.application.appManager](reference/js-apis-appmanager.md) - [@ohos.application.appManager](reference/apis/js-apis-appmanager.md)
- [@ohos.application.Configuration](reference/js-apis-configuration.md) - [@ohos.application.Configuration](reference/apis/js-apis-configuration.md)
- [@ohos.application.ConfigurationConstant](reference/js-apis-configurationconstant.md) - [@ohos.application.ConfigurationConstant](reference/apis/js-apis-configurationconstant.md)
- [@ohos.ability.featureAbility](reference/js-apis-featureAbility.md) - [@ohos.ability.featureAbility](reference/apis/js-apis-featureAbility.md)
- [@ohos.application.formBindingData](reference/js-apis-formbindingdata.md) - [@ohos.application.formBindingData](reference/apis/js-apis-formbindingdata.md)
- [@ohos.application.formError](reference/js-apis-formerror.md) - [@ohos.application.FormExtension](reference/apis/js-apis-formextension.md)
- [@ohos.application.formHost](reference/js-apis-formhost.md) - [@ohos.application.missionManager](reference/apis/js-apis-missionManager.md)
- [@ohos.application.formInfo](reference/js-apis-formInfo.md) - [@ohos.application.formProvider](reference/apis/js-apis-formprovider.md)
- [@ohos.application.missionManager](reference/js-apis-missionManager.md) - [@ohos.ability.particleAbility](reference/apis/js-apis-particleAbility.md)
- [@ohos.application.formProvider](reference/js-apis-formprovider.md) - [@ohos.application.ServiceExtensionAbility](reference/apis/js-apis-service-extension-ability.md)
- [@ohos.ability.particleAbility](reference/js-apis-particleAbility.md) - [@ohos.application.uriPermissionManager](reference/apis/js-apis-uripermissionmanager.md)
- [@ohos.application.Want](reference/js-apis-application-Want.md) - [@ohos.wantAgent](reference/apis/js-apis-wantAgent.md)
- [@ohos.wantAgent](reference/js-apis-wantAgent.md) - [dataAbilityHelper](reference/apis/js-apis-dataAbilityHelper.md)
- [dataAbilityHelper](reference/js-apis-dataAbilityHelper.md) - [context](reference/apis/js-apis-Context.md)
- [context](reference/js-apis-Context.md) - [AbilityContext](reference/apis/js-apis-ability-context.md)
- [abilityDelegator](reference/js-apis-application-abilityDelegator.md) - [AbilityRunningInfo](reference/apis/js-apis-abilityrunninginfo.md)
- [abilityDelegatorArgs](reference/js-apis-application-abilityDelegatorArgs.md) - [AbilityStageContext](reference/apis/js-apis-abilitystagecontext.md)
- [AbilityRunningInfo](reference/js-apis-abilityrunninginfo.md) - [Context](reference/apis/js-apis-application-context.md)
- [MissionSnapshot](reference/js-apis-application-MissionSnapshot.md) - [ExtensionContext](reference/apis/js-apis-extension-context.md)
- [ProcessRunningInfo](reference/js-apis-processrunninginfo.md) - [ExtensionRunningInfo](reference/apis/js-apis-extensionrunninginfo.md)
- [shellCmdResult](reference/js-apis-application-shellCmdResult.md) - [FormExtensionContext](reference/apis/js-apis-formextensioncontext.md)
- [MissionSnapshot](reference/apis/js-apis-application-MissionSnapshot.md)
- [PermissionRequestResult](reference/apis/js-apis-permissionrequestresult.md)
- [ProcessRunningInfo](reference/apis/js-apis-processrunninginfo.md)
- [ServiceExtensionContext](reference/apis/js-apis-service-extension-context.md)
- Common Event and Notification - Common Event and Notification
...@@ -548,6 +504,7 @@ ...@@ -548,6 +504,7 @@
- [@ohos.events.emitter](reference/apis/js-apis-emitter.md) - [@ohos.events.emitter](reference/apis/js-apis-emitter.md)
- [@ohos.notification](reference/apis/js-apis-notification.md) - [@ohos.notification](reference/apis/js-apis-notification.md)
- [@ohos.reminderAgent](reference/apis/js-apis-reminderAgent.md) - [@ohos.reminderAgent](reference/apis/js-apis-reminderAgent.md)
- [EventHub](reference/apis/js-apis-eventhub.md)
- Bundle Management - Bundle Management
...@@ -558,9 +515,6 @@ ...@@ -558,9 +515,6 @@
- UI Page - UI Page
- [@ohos.animator](reference/apis/js-apis-animator.md) - [@ohos.animator](reference/apis/js-apis-animator.md)
- [@ohos.mediaquery](reference/js-apis-mediaquery.md)
- [@ohos.prompt](reference/js-apis-prompt.md)
- [@ohos.router](reference/js-apis-router.md)
- Graphics - Graphics
...@@ -592,10 +546,8 @@ ...@@ -592,10 +546,8 @@
- Security - Security
- [@ohos.abilityAccessCtrl](reference/js-apis-abilityAccessCtrl.md) - [@ohos.abilityAccessCtrl](reference/apis/js-apis-abilityAccessCtrl.md)
- [@ohos.security.huks ](reference/js-apis-huks.md) - [@ohos.userIAM.userAuth ](reference/apis/js-apis-useriam-userauth.md)
- [@ohos.userIAM.userAuth ](reference/js-apis-useriam-userauth.md)
- [@system.cipher](reference/js-apis-system-cipher.md)
- Data Management - Data Management
...@@ -603,7 +555,7 @@ ...@@ -603,7 +555,7 @@
- [@ohos.data.distributedData](reference/apis/js-apis-distributed-data.md) - [@ohos.data.distributedData](reference/apis/js-apis-distributed-data.md)
- [@ohos.data.distributedDataObject](reference/apis/js-apis-data-distributedobject.md) - [@ohos.data.distributedDataObject](reference/apis/js-apis-data-distributedobject.md)
- [@ohos.data.rdb](reference/apis/js-apis-data-rdb.md) - [@ohos.data.rdb](reference/apis/js-apis-data-rdb.md)
- [@ohos.data.storage](reference/js-apis-data-storage.md) - [@ohos.data.storage](reference/apis/js-apis-data-storage.md)
- [@ohos.settings](reference/apis/js-apis-settings.md) - [@ohos.settings](reference/apis/js-apis-settings.md)
- [resultSet](reference/apis/js-apis-data-resultset.md) - [resultSet](reference/apis/js-apis-data-resultset.md)
...@@ -636,7 +588,6 @@ ...@@ -636,7 +588,6 @@
- [@ohos.bluetooth](reference/apis/js-apis-bluetooth.md) - [@ohos.bluetooth](reference/apis/js-apis-bluetooth.md)
- [@ohos.rpc](reference/apis/js-apis-rpc.md) - [@ohos.rpc](reference/apis/js-apis-rpc.md)
- [@ohos.connectedTag](reference/js-apis-connectedTag.md)
- [@ohos.wifi](reference/apis/js-apis-wifi.md) - [@ohos.wifi](reference/apis/js-apis-wifi.md)
- [@ohos.wifiext](reference/apis/js-apis-wifiext.md) - [@ohos.wifiext](reference/apis/js-apis-wifiext.md)
...@@ -650,8 +601,6 @@ ...@@ -650,8 +601,6 @@
- [@ohos.hilog](reference/apis/js-apis-hilog.md) - [@ohos.hilog](reference/apis/js-apis-hilog.md)
- [@ohos.hiTraceChain](reference/apis/js-apis-hitracechain.md) - [@ohos.hiTraceChain](reference/apis/js-apis-hitracechain.md)
- [@ohos.hiTraceMeter](reference/apis/js-apis-hitracemeter.md) - [@ohos.hiTraceMeter](reference/apis/js-apis-hitracemeter.md)
- [@ohos.inputMethod](reference/js-apis-inputmethod.md)
- [@ohos.inputMethodEngine](reference/js-apis-inputmethodengine.md)
- [@ohos.pasteboard](reference/apis/js-apis-pasteboard.md) - [@ohos.pasteboard](reference/apis/js-apis-pasteboard.md)
- [@ohos.screenLock](reference/apis/js-apis-screen-lock.md) - [@ohos.screenLock](reference/apis/js-apis-screen-lock.md)
- [@ohos.systemTime](reference/apis/js-apis-system-time.md) - [@ohos.systemTime](reference/apis/js-apis-system-time.md)
...@@ -667,7 +616,6 @@ ...@@ -667,7 +616,6 @@
- [@ohos.geolocation](reference/apis/js-apis-geolocation.md) - [@ohos.geolocation](reference/apis/js-apis-geolocation.md)
- [@ohos.multimodalInput.inputConsumer](reference/apis/js-apis-inputconsumer.md) - [@ohos.multimodalInput.inputConsumer](reference/apis/js-apis-inputconsumer.md)
- [@ohos.multimodalInput.inputDevice](reference/apis/js-apis-inputdevice.md) - [@ohos.multimodalInput.inputDevice](reference/apis/js-apis-inputdevice.md)
- [@ohos.multimodalInput.inputEventClient](reference/js-apis-inputeventclient.md)
- [@ohos.multimodalInput.inputMonitor](reference/apis/js-apis-inputmonitor.md) - [@ohos.multimodalInput.inputMonitor](reference/apis/js-apis-inputmonitor.md)
- [@ohos.power](reference/apis/js-apis-power.md) - [@ohos.power](reference/apis/js-apis-power.md)
- [@ohos.runningLock](reference/apis/js-apis-runninglock.md) - [@ohos.runningLock](reference/apis/js-apis-runninglock.md)
...@@ -708,29 +656,10 @@ ...@@ -708,29 +656,10 @@
- [@ohos.worker](reference/apis/js-apis-worker.md) - [@ohos.worker](reference/apis/js-apis-worker.md)
- [@ohos.xml](reference/apis/js-apis-xml.md) - [@ohos.xml](reference/apis/js-apis-xml.md)
- Test
- [@ohos.application.testRunner](reference/js-apis-testRunner.md)
- [@ohos.uitest](reference/js-apis-uitest.md)
- APIs No Longer Maintained - APIs No Longer Maintained
- [@ohos.bytrace](reference/js-apis-bytrace.md) - [@ohos.bytrace](reference/apis/js-apis-bytrace.md)
- [@system.app](reference/js-apis-system-app.md) - [@ohos.data.storage](reference/apis/js-apis-data-storage.md)
- [@system.battery](reference/js-apis-system-battery.md) - [@system.sensor](reference/apis/js-apis-system-sensor.md)
- [@system.brightness](reference/js-apis-system-brightness.md) - [@system.vibrator](reference/apis/js-apis-system-vibrate.md)
- [@system.configuration](reference/js-apis-system-configuration.md) - [console](reference/apis/js-apis-logs.md)
- [@system.device](reference/js-apis-system-device.md) \ No newline at end of file
- [@system.fetch](reference/js-apis-system-fetch.md)
- [@system.file](reference/js-apis-system-file.md)
- [@system.geolocation](reference/js-apis-system-location.md)
- [@system.mediaquery](reference/js-apis-system-mediaquery.md)
- [@system.network](reference/js-apis-system-network.md)
- [@system.package](reference/js-apis-system-package.md)
- [@system.prompt](reference/js-apis-system-prompt.md)
- [@system.request](reference/js-apis-system-request.md)
- [@system.router](reference/js-apis-system-router.md)
- [@system.sensor](reference/js-apis-system-sensor.md)
- [@system.storage](reference/js-apis-system-storage.md)
- [@system.vibrator](reference/js-apis-system-vibrate.md)
- [console](reference/js-apis-logs.md)
\ No newline at end of file
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
- [RDB Overview](database-relational-overview.md) - [RDB Overview](database-relational-overview.md)
- [RDB Development](database-relational-guidelines.md) - [RDB Development](database-relational-guidelines.md)
- Lightweight Data Store - Lightweight Data Store
- [Lightweight Data Store Overview](database-preference-overview.md) - [Lightweight Data Store Overview](database-storage-overview.md)
- [Lightweight Data Store Development](database-preference-guidelines.md) - [Lightweight Data Store Development](database-storage-guidelines.md)
- Distributed Data Object - Distributed Data Object
- [Distributed Data Object Overview](database-distributedobject-overview.md) - [Distributed Data Object Overview](database-distributedobject-overview.md)
- [Distributed Data Object Development](database-distributedobject-guidelines.md) - [Distributed Data Object Development](database-distributedobject-guidelines.md)
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
> >
>- The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. >- The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>- The APIs of this module are system APIs and cannot be called by third-party applications. Currently, these APIs can be called only by **filepicker**. >- The APIs of this module are system APIs and cannot be called by third-party applications. Currently, these APIs can be called only by **filepicker**.
## Modules to Import ## Modules to Import
```js ```js
...@@ -20,7 +21,7 @@ Obtains information about the files in the first-level directory in asynchronous ...@@ -20,7 +21,7 @@ Obtains information about the files in the first-level directory in asynchronous
- Parameters - Parameters
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
| --- | --- | --- | -- | | --- | --- | --- | -- |
| dev | [DevInfo](#devinfo) | No| Device name. The default value is **local**, which is the only value supported.| | options | Object | No| The options are as follows:<br>- &nbsp;**dev**: Device type. For details, see [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.|
- Return value - Return value
...@@ -30,17 +31,17 @@ Obtains information about the files in the first-level directory in asynchronous ...@@ -30,17 +31,17 @@ Obtains information about the files in the first-level directory in asynchronous
- Example - Example
```js ```js
filemanager.getRoot().then((fileInfo) => { filemanager.getRoot().then((fileInfo) => {
if(Array.isArray(fileInfo)) { if(Array.isArray(fileInfo)) {
for (var i = 0; i < fileInfo.length; i++) { for (var i = 0; i < fileInfo.length; i++) {
console.log(JSON.Stringify(fileInfo)) console.log(JSON.Stringify(fileInfo))
} }
} }
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}); });
``` ```
## filemanager.getRoot ## filemanager.getRoot
...@@ -54,20 +55,20 @@ Obtains information about the files in the first-level directory in asynchronous ...@@ -54,20 +55,20 @@ Obtains information about the files in the first-level directory in asynchronous
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ----------------------------- | | -------- | ------------------------- | ---- | ----------------------------- |
| dev | [DevInfo](#devinfo) | No | Device name. The default value is **local**, which is the only value supported.| | options | Object | No| The options are as follows:<br>- &nbsp;**dev**: Device type. For details, see [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.|
| callback | AsyncCallback&lt;[FileInfo](#fileinfo)[]&gt; | Yes | Callback invoked to return the file information obtained. | | callback | AsyncCallback&lt;[FileInfo](#fileinfo)[]&gt; | Yes | Callback invoked to return the file information obtained. |
- Example - Example
```js ```js
filemanager.getRoot((err, fileInfo) => { filemanager.getRoot((err, fileInfo) => {
if(Array.isArray(fileInfo)) { if(Array.isArray(fileInfo)) {
for (var i = 0; i < fileInfo.length; i++) { for (var i = 0; i < fileInfo.length; i++) {
console.log(JSON.Stringify(fileInfo)) console.log(JSON.Stringify(fileInfo))
} }
} }
}) });
``` ```
## filemanager.listFile ## filemanager.listFile
...@@ -80,11 +81,9 @@ Obtains information about the files in the second-level directory in asynchronou ...@@ -80,11 +81,9 @@ Obtains information about the files in the second-level directory in asynchronou
- Parameters - Parameters
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
| --- | --- | --- | -- | | --- | --- | --- | -- |
| type | string | Yes| Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.|
| path | string | Yes| URI of the directory to query.| | path | string | Yes| URI of the directory to query.|
| dev | [DevInfo](#devinfo) | Yes| Device name. The default value is **local**, which is the only value supported.| | type | string | Yes| Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.|
| offset | number | No| Start position from which the files are to query.| | options | Object | No| The options are as follows:<br>- &nbsp;**dev**: Device type. For details, see [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.<br>- &nbsp;**offset**: position to start the query. The value is a number.<br>- &nbsp;**count**: number of files to query.|
| count | number | No| Number of files to query.|
- Return value - Return value
...@@ -95,25 +94,28 @@ Obtains information about the files in the second-level directory in asynchronou ...@@ -95,25 +94,28 @@ Obtains information about the files in the second-level directory in asynchronou
- Error - Error
| Error Info| Error Code|Description| | Error Info| Error Code|Description|
| -- | --- | -- | | -- | --- | -- |
|No such file or directory | 2 | The directory or file of the specified URI does not exist.| | No such file or directory | 2 | The directory or file of the specified URI does not exist.|
|No such process | 3 | Failed to obtain the FMS service.| | No such process | 3 | Failed to obtain the FMS service.|
|Not a directory | 20 | The object specified by the URI is not a directory.| | Not a directory | 20 | The object specified by the URI is not a directory.|
```js - Example
// Obtain all files in the directory.
// Call listFile() and getRoot() to obtain file URIs. ```js
let media_path = file.uri // Obtain all files in the directory.
filemanager.listFile(media_path, "file") // Call listFile() and getRoot() to obtain file URIs.
.then((fileInfo) => { let media_path = file.uri
filemanager.listFile(media_path, "file")
.then((fileInfo) => {
if(Array.isArray(fileInfo)) { if(Array.isArray(fileInfo)) {
for (var i = 0; i < fileInfo.length; i++) { for (var i = 0; i < fileInfo.length; i++) {
console.log(JSON.Stringify(fileInfo)) console.log(JSON.Stringify(fileInfo))
} }
} }
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) });
``` ```
## filemanager.listFile ## filemanager.listFile
listFile(path : string, type : string, options? : {dev? : DevInfo, offset? : number, count? : number}, callback : AsyncCallback&lt;FileInfo[]&gt;) : void listFile(path : string, type : string, options? : {dev? : DevInfo, offset? : number, count? : number}, callback : AsyncCallback&lt;FileInfo[]&gt;) : void
...@@ -126,35 +128,35 @@ Obtains information about the files in the second-level directory in asynchronou ...@@ -126,35 +128,35 @@ Obtains information about the files in the second-level directory in asynchronou
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ------------------------------------------------------------ | | -------- | ------------------------- | ---- | ------------------------------------------------------------ |
| type | string | Yes | Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.|
| path | string | Yes | URI of the directory to query. | | path | string | Yes | URI of the directory to query. |
| dev | [DevInfo](#devinfo) | No| Device name. The default value is **local**, which is the only value supported.| | type | string | Yes | Type of the files to query. The file type can be **file**, **image**, **audio**, or **video**.|
| offset | number | No| Start position from which the files are to query.| | options | Object | No| The options are as follows:<br>- &nbsp;**dev**: Device type. For details, see [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.<br>- &nbsp;**offset**: position to start the query. The value is a number.<br>- &nbsp;**count**: number of files to query.|
| count | number | No| Number of files to query.|
| callback | AsyncCallback&lt;[FileInfo](#fileinfo)[]&gt; | Yes | Callback invoked to return the file information obtained. | | callback | AsyncCallback&lt;[FileInfo](#fileinfo)[]&gt; | Yes | Callback invoked to return the file information obtained. |
- Error - Error
| Error Info | Error Code| Description | | Error Info | Error Code| Description |
| ------------------------- | ------ | ------------------------- | | ------------------------- | ------ | ------------------------- |
|No such file or directory | 2 | The directory or file of the specified URI does not exist.| | No such file or directory | 2 | The directory or file of the specified URI does not exist.|
|No such process | 3 | Failed to obtain the FMS service. | | No such process | 3 | Failed to obtain the FMS service. |
|Not a directory | 20 | The object specified by the URI is not a directory.| | Not a directory | 20 | The object specified by the URI is not a directory.|
```js - Example
// Call listFile() and getRoot() to obtain the file UIRs.
let media_path = file.uri ```js
filemanager.listFile(media_path, "file", (err, fileInfo) => { // Call listFile() and getRoot() to obtain file URIs.
let media_path = file.uri
filemanager.listFile(media_path, "file", (err, fileInfo) => {
if(Array.isArray(fileInfo)) { if(Array.isArray(fileInfo)) {
for (var i = 0; i < fileInfo.length; i++) { for (var i = 0; i < fileInfo.length; i++) {
console.log(JSON.Stringify(fileInfo)) console.log(JSON.Stringify(fileInfo))
} }
} }
}) });
``` ```
## filemanager.createFile ## filemanager.createFile
filemanager.createFile(path : string, filename : string, options? : {dev? : DevInfo}) : promise&lt;string&gt; filemanager.createFile(path : string, filename : string, options? : {dev? : DevInfo}) : Promise&lt;string&gt;
Creates a file in the specified path in asynchronous mode. This method uses a promise to return the result. Creates a file in the specified path in asynchronous mode. This method uses a promise to return the result.
...@@ -165,7 +167,7 @@ Creates a file in the specified path in asynchronous mode. This method uses a pr ...@@ -165,7 +167,7 @@ Creates a file in the specified path in asynchronous mode. This method uses a pr
| --- | --- | --- | -- | | --- | --- | --- | -- |
| filename | string | Yes| Name of the file to create.| | filename | string | Yes| Name of the file to create.|
| path | string | Yes| URI of the file to create.| | path | string | Yes| URI of the file to create.|
| dev | [DevInfo](#devinfo) | No| Device name. The default value is **local**, which is the only value supported.| | options | Object | No| The options are as follows:<br>- &nbsp;**dev**: Device type. For details, see [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.|
- Return value - Return value
...@@ -181,18 +183,20 @@ Creates a file in the specified path in asynchronous mode. This method uses a pr ...@@ -181,18 +183,20 @@ Creates a file in the specified path in asynchronous mode. This method uses a pr
| No such process | 3 | Failed to obtain the FMS service.| | No such process | 3 | Failed to obtain the FMS service.|
| Not a directory | 20 | The object specified by the URI is not a directory.| | Not a directory | 20 | The object specified by the URI is not a directory.|
```js - Example
// Create a file.
let media_path = file.uri // Obtain the file URI using listFile() and getRoot(). ```js
let name = "xxx.jpg" // File to be saved. // Create a file.
filemanager.createFile(media_path, name) let media_path = file.uri // Obtain the file URI using listFile() and getRoot().
.then((uri) => { let name = "xxx.jpg" // File to be saved.
// The URI of the file created is returned. filemanager.createFile(media_path, name)
}) .then((uri) => {
.catch((err) => { // The URI of the file created is returned.
})
.catch((err) => {
console.log(err) console.log(err)
}) });
``` ```
## filemanager.createFile ## filemanager.createFile
...@@ -208,7 +212,7 @@ Creates a file in the specified path in asynchronous mode. This method uses a ca ...@@ -208,7 +212,7 @@ Creates a file in the specified path in asynchronous mode. This method uses a ca
| -------- | ------------------------- | ---- | ----------------------------- | | -------- | ------------------------- | ---- | ----------------------------- |
| filename | string | Yes | Name of the file to create. | | filename | string | Yes | Name of the file to create. |
| path | string | Yes | URI of the file to create. | | path | string | Yes | URI of the file to create. |
| dev | [DevInfo](#devinfo) | No| Device name. The default value is **local**, which is the only value supported.| | options | Object | No| The options are as follows:<br>- &nbsp;**dev**: Device type. For details, see [DevInfo](#devinfo). It is **dev = {name: "local"}** by default if not specified. Currently, only 'local' is supported.|
| callback | AsyncCallback&lt;[FileInfo](#fileinfo)[]&gt; | Yes | Callback invoked to return the file information obtained. | | callback | AsyncCallback&lt;[FileInfo](#fileinfo)[]&gt; | Yes | Callback invoked to return the file information obtained. |
- Error - Error
...@@ -220,16 +224,18 @@ Creates a file in the specified path in asynchronous mode. This method uses a ca ...@@ -220,16 +224,18 @@ Creates a file in the specified path in asynchronous mode. This method uses a ca
| No such process | 3 | Failed to obtain the FMS service. | | No such process | 3 | Failed to obtain the FMS service. |
| Not a directory | 20 | The object specified by the URI is not a directory.| | Not a directory | 20 | The object specified by the URI is not a directory.|
```js - Example
// Create a file.
// Call listFile() and getRoot() to obtain the file URI. ```js
let media_path = file.uri // Create a file.
// File to be saved. // Call listFile() and getRoot() to obtain the file URI.
let name = "xxx.jpg" let media_path = file.uri
filemanager.createFile(media_path, name, (err, uri) => { // File to be saved.
// The URI of the file created is returned. let name = "xxx.jpg"
}) filemanager.createFile(media_path, name, (err, uri) => {
``` // The URI of the file created is returned.
});
```
## FileInfo ## FileInfo
Defines the file information returned by **getRoot()** or **listFile()**. Defines the file information returned by **getRoot()** or **listFile()**.
...@@ -248,12 +254,13 @@ Defines the file information returned by **getRoot()** or **listFile()**. ...@@ -248,12 +254,13 @@ Defines the file information returned by **getRoot()** or **listFile()**.
| modifiedTime | number | Yes| No| Time when the file was modified.| | modifiedTime | number | Yes| No| Time when the file was modified.|
## DevInfo ## DevInfo
Defines the device type. Defines the device type.
**System capability**: SystemCapability.FileManagement.FileManagerService **System capability**: SystemCapability.FileManagement.FileManagerService
### Attributes ### Attributes
| Name| Type| Readable| Writable| Description| | Name| Type | Readable| Writable| Description |
| --- | -- | -- | -- | -- | | ------ | ------ | ---- | ---- | -------- |
| name | string | Yes| Yes| Device name.| | name | string | Yes | Yes | Device name.|
...@@ -924,7 +924,7 @@ Updates a key. This method uses an asynchronous callback to return the result. ...@@ -924,7 +924,7 @@ Updates a key. This method uses an asynchronous callback to return the result.
| handle | number | Yes | Handle of the **Update** operation.| | handle | number | Yes | Handle of the **Update** operation.|
| token | Uint8Array | No| Token of the **Update** operation.| | token | Uint8Array | No| Token of the **Update** operation.|
| options | [HuksOptions](#huksoptions) | Yes | Parameter set of the **Update** operation.| | options | [HuksOptions](#huksoptions) | Yes | Parameter set of the **Update** operation.|
| callback | AsyncCallback\<[HksResult](#hksresult)> | Yes| Callback used to return the operation result.| | callback | AsyncCallback\<[HuksResult](#huksresult)> | Yes| Callback used to return the operation result.|
**Example** **Example**
......
# Bluetooth
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br/>
>
> - The APIs of this module are no longer maintained since API version 7. You are advised to use [`@ohos.bluetooth`](js-apis-bluetooth.md).
>
> - The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import
```
import bluetooth from '@system.bluetooth';
```
## bluetooth.startBLEScan(OBJECT)
Scans for Bluetooth Low Energy (BLE) devices nearby. This operation consumes system resources. Call [bluetooth.stopBLEScan](#bluetoothstopblescanobject) to stop the scan after a BLE device is detected and connected.
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION
**System capability**: SystemCapability.Communication.Bluetooth.Lite
**Parameters**
**Table 1** StartBLEScanOptions
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| interval | number | No| Interval for reporting device information, in milliseconds. The default value is **0**, which means to report the detected device immediately and report other information at the given interval.|
| success | Function | No| Called when the operation is successful.|
| fail | Function | No| Called when the operation fails.|
| complete | Function | No| Called when the execution is complete.|
**Example**
```
bluetooth.startBLEScan({
success() {
console.log('call bluetooth.startBLEScan success.');
},
fail(code, data) {
console.log('call bluetooth.startBLEScan failed, code: ${code}, data: ${data}.');
},
complete() {
console.log('call bluetooth.startBLEScan complete.');
}
});
```
## bluetooth.stopBLEScan(OBJECT)
Stops scanning for BLE devices nearby. This API is used with [bluetooth.startBLEScan(OBJECT)](#bluetoothstartblescanobject) in pairs.
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION
**System capability**: SystemCapability.Communication.Bluetooth.Lite
**Parameters**
**Table 2** StopBLEScanOptions
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| success | Function | No| Called when the operation is successful.|
| fail | Function | No| Called when the operation fails.|
| complete | Function | No| Called when the execution is complete.|
**Example**
```
bluetooth.stopBLEScan({
success() {
console.log('call bluetooth.stopBLEScan success.');
},
fail(data, code) {
console.log('call bluethooth.stopBLEScan fail, code: ${code}, data: ${data}.');
},
complete() {
console.log('call bluethooth.stopBLEScan complete.');
}
});
```
## bluetooth.subscribeBLEFound(OBJECT)
Subscribes to the newly detected BLE device. If this API is called multiple times, the last call takes effect.
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION
**System capability**: SystemCapability.Communication.Bluetooth.Lite
**Parameters**
**Table 3** SubscribeBLEFoundOptions
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| success | Function | Yes| Called to report the newly detected device.|
| fail | Function | No| Called when the operation fails.|
**Table 4** Return value in success
| Name| Type| Description|
| -------- | -------- | -------- |
| devices | Array&lt;BluetoothDevice&gt; | List of the newly detected BLE devices.|
**Table 5** BluethoothDevice
| Name| Type| Description|
| -------- | -------- | -------- |
| addrType | string | Device address type, which can be:<br>-&nbsp;**public**: a public address<br>-&nbsp;**random**: a random address|
| addr | string | MAC address of the device.|
| rssi | number | Received signal strength indicator (RSSl) of the device.|
| txpower | string | **txpower** field in the Bluetooth advertising data.|
| data | hex&nbsp;string | Bluetooth advertising data (including advertising data and scan response data), in a hexadecimal string.|
**Example**
```
bluetooth.startaBLEScan({
success() {
bluetooth.subscribeBLEFound({
success(data) {
const [device] = data.devices;
if (!!device) {
bluetooth.stopBLEScan();
}
}
});
},
fail(code, data) {
console.log('Failed to start BLE device scan, code: ${code}, data: ${data}');
}
});
```
## bluetooth.unsubscribeBLEFound()
Unsubscribes from the newly detected devices.
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION
**System capability**: SystemCapability.Communication.Bluetooth.Lite
**Example**
```
bluetooth.unsubscribeBLEFound();
```
## Common Error Codes
| Error Code| Description|
| -------- | -------- |
| 1100 | The Bluetooth adapter is not initialized.|
| 1101 | The Bluetooth adapter is unavailable.|
| 1102 | The specified device is not found.|
| 1103 | Connection failed.|
| 1104 | The specified service is not found.|
| 1105 | The specified characteristic value is not found.|
| 1106 | The Bluetooth device is disconnected.|
| 1107 | The characteristic value does not support this operation.|
| 1108 | Other exceptions reported by the system.|
| 1109 | The system version does not support BLE.|
# Data Storage # Data Storage
> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:** > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br/>
> - The APIs of this module are no longer maintained since API version 6. It is recommended that you use [`@ohos.data.storage`](js-apis-data-storage.md) instead. >
> - The APIs of this module are no longer maintained since API Version 6. You are advised to use [`@ohos.data.storage`](js-apis-data-storage.md). From API Version 9, you are advised to use [`@ohos.data.preferences`](js-apis-data-preferences.md).
> >
> - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...@@ -18,19 +19,19 @@ import storage from '@system.storage'; ...@@ -18,19 +19,19 @@ import storage from '@system.storage';
get(Object): void get(Object): void
Reads the stored content. Obtains the stored data.
**System capability**: SystemCapability.DistributedDataManager.Preferences.Core **System capability**: SystemCapability.DistributedDataManager.Preferences.Core
**Parameters** **Parameters**
| Name | Type | Mandatory | Description | | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| key | string | Yes | Content&nbsp;index. | | key | string | Yes| Index of the data to obtain.|
| default | string | No | Default&nbsp;value&nbsp;returned&nbsp;when&nbsp;the&nbsp;**key**&nbsp;does&nbsp;not&nbsp;exist. | | default | string | No| Default value returned when the **key** does not exist.|
| success | Function | No | Called&nbsp;when&nbsp;the&nbsp;stored&nbsp;content&nbsp;is&nbsp;successfully&nbsp;read. | | success | Function | No| Called when the stored data is successfully obtained.|
| fail | Function | No | Called&nbsp;when&nbsp;the&nbsp;stored&nbsp;content&nbsp;fails&nbsp;to&nbsp;be&nbsp;read. | | fail | Function | No| Called when the stored data failed to be obtained.|
| complete | Function | No | Called&nbsp;when&nbsp;the&nbsp;execution&nbsp;is&nbsp;complete. | | complete | Function | No| Called when the execution is complete.|
**Example** **Example**
...@@ -58,19 +59,19 @@ export default { ...@@ -58,19 +59,19 @@ export default {
set(Object): void set(Object): void
Modifies the stored content. Modifies the stored data.
**System capability**: SystemCapability.DistributedDataManager.Preferences.Core **System capability**: SystemCapability.DistributedDataManager.Preferences.Core
**Parameters** **Parameters**
| Name | Type | Mandatory | Description | | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| key | string | Yes | Index&nbsp;of&nbsp;the&nbsp;stored&nbsp;content&nbsp;to&nbsp;be&nbsp;modified. | | key | string | Yes| Index of the data to modify.|
| value | string | No | Target&nbsp;storage&nbsp;content.&nbsp;The&nbsp;maximum&nbsp;number&nbsp;of&nbsp;characters&nbsp;allowed&nbsp;is&nbsp;128. | | value | string | No| New value to set. The maximum length is 128 bytes.|
| success | Function | No | Called&nbsp;when&nbsp;the&nbsp;stored&nbsp;content&nbsp;is&nbsp;modified&nbsp;successfully. | | success | Function | No| Called when the data is successfully modified.|
| fail | Function | No | Called&nbsp;when&nbsp;the&nbsp;stored&nbsp;content&nbsp;fails&nbsp;to&nbsp;be&nbsp;modified. | | fail | Function | No| Called when the data failed to be modified.|
| complete | Function | No | Called&nbsp;when&nbsp;the&nbsp;execution&nbsp;is&nbsp;complete. | | complete | Function | No| Called when the execution is complete.|
**Example** **Example**
...@@ -96,17 +97,17 @@ export default { ...@@ -96,17 +97,17 @@ export default {
clear(Object): void clear(Object): void
Clears the stored content. Clears the stored data.
**System capability**: SystemCapability.DistributedDataManager.Preferences.Core **System capability**: SystemCapability.DistributedDataManager.Preferences.Core
**Parameters** **Parameters**
| Name | Type | Mandatory | Description | | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| success | Function | No | Called&nbsp;when&nbsp;the&nbsp;stored&nbsp;content&nbsp;is&nbsp;cleared&nbsp;successfully | | success | Function | No| Called when the data is successfully cleared.|
| fail | Function | No | Called&nbsp;when&nbsp;the&nbsp;stored&nbsp;content&nbsp;fails&nbsp;to&nbsp;be&nbsp;cleared | | fail | Function | No| Called when the data failed to be cleared.|
| complete | Function | No | Called&nbsp;when&nbsp;the&nbsp;execution&nbsp;is&nbsp;complete | | complete | Function | No| Called when the execution is complete.|
**Example** **Example**
...@@ -130,18 +131,18 @@ export default { ...@@ -130,18 +131,18 @@ export default {
delete(Object): void delete(Object): void
Deletes the stored content. Deletes the stored data.
**System capability**: SystemCapability.DistributedDataManager.Preferences.Core **System capability**: SystemCapability.DistributedDataManager.Preferences.Core
**Parameters** **Parameters**
| Name | Type | Mandatory | Description | | Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| key | string | Yes | Content&nbsp;index. | | key | string | Yes| Index of the data to delete.|
| success | Function | No | Called&nbsp;when&nbsp;the&nbsp;stored&nbsp;content&nbsp;is&nbsp;deleted&nbsp;successfully. | | success | Function | No| Called when the data is deleted.|
| fail | Function | No | Called&nbsp;when&nbsp;the&nbsp;stored&nbsp;content&nbsp;fails&nbsp;to&nbsp;be&nbsp;deleted. | | fail | Function | No| Called when the data failed to be deleted.|
| complete | Function | No | Called&nbsp;when&nbsp;the&nbsp;execution&nbsp;is&nbsp;complete. | | complete | Function | No| Called when the execution is complete.|
**Example** **Example**
......
...@@ -2,16 +2,8 @@ ...@@ -2,16 +2,8 @@
- [Application Development Overview](application-dev-guide.md) - [Application Development Overview](application-dev-guide.md)
- Quick Start - Quick Start
- Getting Started
- [Preparations](quick-start/start-overview.md)
- [Getting Started with eTS in the Traditional Coding Approach](quick-start/start-with-ets.md)
- [Getting Started with eTS in the Low-Code Approach](quick-start/start-with-ets-low-code.md)
- [Getting Started with JavaScript in the Traditional Coding Approach](quick-start/start-with-js.md)
- [Getting Started with JavaScript in the Low-Code Approach](quick-start/start-with-js-low-code.md)
- Development Fundamentals
- [Directory Structure](quick-start/package-structure.md) - [Directory Structure](quick-start/package-structure.md)
- [Resource File Categories](quick-start/basic-resource-file-categories.md) - [Resource File Categories](quick-start/basic-resource-file-categories.md)
- [SysCap](quick-start/syscap.md)
- Development - Development
- Ability Development - Ability Development
- FA Model - FA Model
...@@ -20,10 +12,9 @@ ...@@ -20,10 +12,9 @@
- [Service Ability Development](ability/fa-serviceability.md) - [Service Ability Development](ability/fa-serviceability.md)
- [Data Ability Development](ability/fa-dataability.md) - [Data Ability Development](ability/fa-dataability.md)
- [FA Widget Development](ability/fa-formability.md) - [FA Widget Development](ability/fa-formability.md)
- Other - Other
- [WantAgent Development](wantagent.md) - [Ability Assistant Usage](ability/ability-assistant-guidelines.md)
- [Ability Assistant Usage](ability-assistant-guidelines.md)
- [Test Framework Usage](ability-delegator.md)
- UI - UI
- [ArkUI Overview](ui/arkui-overview.md) - [ArkUI Overview](ui/arkui-overview.md)
- JavaScript-based Web-Like Development Paradigm - JavaScript-based Web-Like Development Paradigm
...@@ -53,39 +44,17 @@ ...@@ -53,39 +44,17 @@
- [Defining Page Routes](ui/ui-js-building-ui-routes.md) - [Defining Page Routes](ui/ui-js-building-ui-routes.md)
- Common Component Development Guidelines - Common Component Development Guidelines
- Container Components - Container Components
- [List Development](ui/ui-js-components-list.md) - [List](ui/ui-js-components-list.md)
- [Dialog Development](ui/ui-js-components-dialog.md) - [Dialog](ui/ui-js-components-dialog.md)
- [Form Development](ui/ui-js-components-form.md) - [Form](ui/ui-js-components-form.md)
- [Stepper Development](ui/ui-js-components-stepper.md) - [Stepper](ui/ui-js-components-stepper.md)
- [Tabs Development](ui/ui-js-component-tabs.md) - [Tabs](ui/ui-js-component-tabs.md)
- [Swiper Development](ui/ui-js-components-swiper.md)
- Basic Components - Basic Components
- [Text Development](ui/ui-js-components-text.md) - [Text](ui/ui-js-components-text.md)
- [Input Development](ui/ui-js-components-input.md) - [Input](ui/ui-js-components-input.md)
- [Button Development](ui/ui-js-components-button.md) - [Button](ui/ui-js-components-button.md)
- [Picker Development](ui/ui-js-components-picker.md) - [Picker](ui/ui-js-components-picker.md)
- [Image Development](ui/ui-js-components-images.md) - [Image](ui/ui-js-components-images.md)
- [Image-animator Development](ui/ui-js-components-image-animator.md)
- [Rating Development](ui/ui-js-components-rating.md)
- [Slider Development](ui/ui-js-components-slider.md)
- [Chart Development](ui/ui-js-components-chart.md)
- [Switch Development](ui/ui-js-components-switch.md)
- [Toolbar Development](ui/ui-js-components-toolbar.md)
- [Menu Development](ui/ui-js-components-menu.md)
- [Marquee Development](ui/ui-js-components-marquee.md)
- [Qrcode Development](ui/ui-js-components-qrcode.md)
- [Search Development](ui/ui-js-components-search.md)
- Canvas Development
- [Canvas](ui/ui-js-components-canvas.md)
- [CanvasRenderingContext2D](ui/ui-js-components-canvasrenderingcontext2d.md)
- [Path2D](ui/ui-js-components-path2d.md)
- [OffscreenCanvas](ui/ui-js-components-offscreencanvas.md)
- [Grid-container Development](ui/ui-js-components-calendar.md)
- Svg
- [Basics](ui/ui-js-components-svg-overview.md)
- [Graph Drawing](ui/ui-js-components-svg-graphics.md)
- [Path Drawing](ui/ui-js-components-svg-path.md)
- [Text Drawing](ui/ui-js-components-svg-text.md)
- Animation Development Guidelines - Animation Development Guidelines
- CSS Animation - CSS Animation
- [Defining Attribute Style Animations](ui/ui-js-animate-attribute-style.md) - [Defining Attribute Style Animations](ui/ui-js-animate-attribute-style.md)
...@@ -152,13 +121,6 @@ ...@@ -152,13 +121,6 @@
- [Custom Component Lifecycle Callbacks](ui/ts-custom-component-lifecycle-callbacks.md) - [Custom Component Lifecycle Callbacks](ui/ts-custom-component-lifecycle-callbacks.md)
- [Example: Component Creation and Re-Initialization](ui/ts-component-creation-re-initialization.md) - [Example: Component Creation and Re-Initialization](ui/ts-component-creation-re-initialization.md)
- [Syntactic Sugar](ui/ts-syntactic-sugar.md) - [Syntactic Sugar](ui/ts-syntactic-sugar.md)
- Common Component Development Guidelines
- [Button](ui/ui-ts-basic-components-button.md)
- [Web](ui/ui-ts-components-web.md)
- Common Layout Development Guidelines
- [Flex Layout](ui/ui-ts-layout-flex.md)
- [Grid Layout](ui/ui-ts-layout-grid-container.md)
- [Media Query](ui/ui-ts-layout-mediaquery.md)
- Experiencing the Declarative UI - Experiencing the Declarative UI
- [Creating a Declarative UI Project](ui/ui-ts-creating-project.md) - [Creating a Declarative UI Project](ui/ui-ts-creating-project.md)
- [Getting to Know Components](ui/ui-ts-components.md) - [Getting to Know Components](ui/ui-ts-components.md)
...@@ -197,14 +159,8 @@ ...@@ -197,14 +159,8 @@
- User Authentication - User Authentication
- [User Authentication Overview](security/userauth-overview.md) - [User Authentication Overview](security/userauth-overview.md)
- [User Authentication Development](security/userauth-guidelines.md) - [User Authentication Development](security/userauth-guidelines.md)
- Key Management - hapsigner
- [HUKS Overview](security/huks-overview.md) - [hapsigner Guide](security/hapsigntool-guidelines.md)
- [HUKS Development](security/huks-guidelines.md)
- hapsigntool
- [hapsigntool Guide](security/hapsigntool-guidelines.md)
- Access Control
- [Access Control Overview](security/accesstoken-overview.md)
- [Access Control Development](security/accesstoken-guidelines.md)
- Connectivity - Connectivity
- IPC & RPC - IPC & RPC
- [IPC & RPC Overview](connectivity/ipc-rpc-overview.md) - [IPC & RPC Overview](connectivity/ipc-rpc-overview.md)
...@@ -218,11 +174,8 @@ ...@@ -218,11 +174,8 @@
- [RDB Overview](database/database-relational-overview.md) - [RDB Overview](database/database-relational-overview.md)
- [RDB Development](database/database-relational-guidelines.md) - [RDB Development](database/database-relational-guidelines.md)
- Lightweight Data Store - Lightweight Data Store
- [Lightweight Data Store Overview](database/database-preference-overview.md) - [Lightweight Data Store Overview](database/database-storage-overview.md)
- [Lightweight Data Store Development](database/database-preference-guidelines.md) - [Lightweight Data Store Development](database/database-storage-guidelines.md)
- Distributed Data Object
- [Distributed Data Object Overview](database/database-distributedobject-overview.md)
- [Distributed Data Object Development](database/database-distributedobject-guidelines.md)
- Agent-Powered Scheduled Reminders - Agent-Powered Scheduled Reminders
- [Overview](background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md) - [Overview](background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md)
- [Development Guidelines](background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md) - [Development Guidelines](background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md)
...@@ -516,31 +469,35 @@ ...@@ -516,31 +469,35 @@
- APIs - APIs
- Ability Framework - Ability Framework
- [@ohos.ability.dataUriUtils](reference/js-apis-DataUriUtils.md) - [@ohos.ability.dataUriUtils](reference/apis/js-apis-DataUriUtils.md)
- [@ohos.ability.errorCode](reference/js-apis-ability-errorCode.md) - [@ohos.application.Ability](reference/apis/js-apis-application-ability.md)
- [@ohos.ability.wantConstant](reference/js-apis-ability-wantConstant.md) - [@ohos.application.AbilityConstant](reference/apis/js-apis-application-abilityConstant.md)
- [@ohos.application.abilityDelegatorRegistry](reference/js-apis-abilityDelegatorRegistry.md) - [@ohos.application.AbilityStage ](reference/apis/js-apis-application-abilitystage.md)
- [@ohos.application.appManager](reference/js-apis-appmanager.md) - [@ohos.application.appManager](reference/apis/js-apis-appmanager.md)
- [@ohos.application.Configuration](reference/js-apis-configuration.md) - [@ohos.application.Configuration](reference/apis/js-apis-configuration.md)
- [@ohos.application.ConfigurationConstant](reference/js-apis-configurationconstant.md) - [@ohos.application.ConfigurationConstant](reference/apis/js-apis-configurationconstant.md)
- [@ohos.ability.featureAbility](reference/js-apis-featureAbility.md) - [@ohos.ability.featureAbility](reference/apis/js-apis-featureAbility.md)
- [@ohos.application.formBindingData](reference/js-apis-formbindingdata.md) - [@ohos.application.formBindingData](reference/apis/js-apis-formbindingdata.md)
- [@ohos.application.formError](reference/js-apis-formerror.md) - [@ohos.application.FormExtension](reference/apis/js-apis-formextension.md)
- [@ohos.application.formHost](reference/js-apis-formhost.md) - [@ohos.application.missionManager](reference/apis/js-apis-missionManager.md)
- [@ohos.application.formInfo](reference/js-apis-formInfo.md) - [@ohos.application.formProvider](reference/apis/js-apis-formprovider.md)
- [@ohos.application.missionManager](reference/js-apis-missionManager.md) - [@ohos.ability.particleAbility](reference/apis/js-apis-particleAbility.md)
- [@ohos.application.formProvider](reference/js-apis-formprovider.md) - [@ohos.application.ServiceExtensionAbility](reference/apis/js-apis-service-extension-ability.md)
- [@ohos.ability.particleAbility](reference/js-apis-particleAbility.md) - [@ohos.application.uriPermissionManager](reference/apis/js-apis-uripermissionmanager.md)
- [@ohos.application.Want](reference/js-apis-application-Want.md) - [@ohos.wantAgent](reference/apis/js-apis-wantAgent.md)
- [@ohos.wantAgent](reference/js-apis-wantAgent.md) - [dataAbilityHelper](reference/apis/js-apis-dataAbilityHelper.md)
- [dataAbilityHelper](reference/js-apis-dataAbilityHelper.md) - [context](reference/apis/js-apis-Context.md)
- [context](reference/js-apis-Context.md) - [AbilityContext](reference/apis/js-apis-ability-context.md)
- [abilityDelegator](reference/js-apis-application-abilityDelegator.md) - [AbilityRunningInfo](reference/apis/js-apis-abilityrunninginfo.md)
- [abilityDelegatorArgs](reference/js-apis-application-abilityDelegatorArgs.md) - [AbilityStageContext](reference/apis/js-apis-abilitystagecontext.md)
- [AbilityRunningInfo](reference/js-apis-abilityrunninginfo.md) - [Context](reference/apis/js-apis-application-context.md)
- [MissionSnapshot](reference/js-apis-application-MissionSnapshot.md) - [ExtensionContext](reference/apis/js-apis-extension-context.md)
- [ProcessRunningInfo](reference/js-apis-processrunninginfo.md) - [ExtensionRunningInfo](reference/apis/js-apis-extensionrunninginfo.md)
- [shellCmdResult](reference/js-apis-application-shellCmdResult.md) - [FormExtensionContext](reference/apis/js-apis-formextensioncontext.md)
- [MissionSnapshot](reference/apis/js-apis-application-MissionSnapshot.md)
- [PermissionRequestResult](reference/apis/js-apis-permissionrequestresult.md)
- [ProcessRunningInfo](reference/apis/js-apis-processrunninginfo.md)
- [ServiceExtensionContext](reference/apis/js-apis-service-extension-context.md)
- Common Event and Notification - Common Event and Notification
...@@ -548,6 +505,7 @@ ...@@ -548,6 +505,7 @@
- [@ohos.events.emitter](reference/apis/js-apis-emitter.md) - [@ohos.events.emitter](reference/apis/js-apis-emitter.md)
- [@ohos.notification](reference/apis/js-apis-notification.md) - [@ohos.notification](reference/apis/js-apis-notification.md)
- [@ohos.reminderAgent](reference/apis/js-apis-reminderAgent.md) - [@ohos.reminderAgent](reference/apis/js-apis-reminderAgent.md)
- [EventHub](reference/apis/js-apis-eventhub.md)
- Bundle Management - Bundle Management
...@@ -558,9 +516,6 @@ ...@@ -558,9 +516,6 @@
- UI Page - UI Page
- [@ohos.animator](reference/apis/js-apis-animator.md) - [@ohos.animator](reference/apis/js-apis-animator.md)
- [@ohos.mediaquery](reference/js-apis-mediaquery.md)
- [@ohos.prompt](reference/js-apis-prompt.md)
- [@ohos.router](reference/js-apis-router.md)
- Graphics - Graphics
...@@ -592,10 +547,8 @@ ...@@ -592,10 +547,8 @@
- Security - Security
- [@ohos.abilityAccessCtrl](reference/js-apis-abilityAccessCtrl.md) - [@ohos.abilityAccessCtrl](reference/apis/js-apis-abilityAccessCtrl.md)
- [@ohos.security.huks ](reference/js-apis-huks.md) - [@ohos.userIAM.userAuth ](reference/apis/js-apis-useriam-userauth.md)
- [@ohos.userIAM.userAuth ](reference/js-apis-useriam-userauth.md)
- [@system.cipher](reference/js-apis-system-cipher.md)
- Data Management - Data Management
...@@ -603,7 +556,7 @@ ...@@ -603,7 +556,7 @@
- [@ohos.data.distributedData](reference/apis/js-apis-distributed-data.md) - [@ohos.data.distributedData](reference/apis/js-apis-distributed-data.md)
- [@ohos.data.distributedDataObject](reference/apis/js-apis-data-distributedobject.md) - [@ohos.data.distributedDataObject](reference/apis/js-apis-data-distributedobject.md)
- [@ohos.data.rdb](reference/apis/js-apis-data-rdb.md) - [@ohos.data.rdb](reference/apis/js-apis-data-rdb.md)
- [@ohos.data.storage](reference/js-apis-data-storage.md) - [@ohos.data.storage](reference/apis/js-apis-data-storage.md)
- [@ohos.settings](reference/apis/js-apis-settings.md) - [@ohos.settings](reference/apis/js-apis-settings.md)
- [resultSet](reference/apis/js-apis-data-resultset.md) - [resultSet](reference/apis/js-apis-data-resultset.md)
...@@ -636,7 +589,6 @@ ...@@ -636,7 +589,6 @@
- [@ohos.bluetooth](reference/apis/js-apis-bluetooth.md) - [@ohos.bluetooth](reference/apis/js-apis-bluetooth.md)
- [@ohos.rpc](reference/apis/js-apis-rpc.md) - [@ohos.rpc](reference/apis/js-apis-rpc.md)
- [@ohos.connectedTag](reference/js-apis-connectedTag.md)
- [@ohos.wifi](reference/apis/js-apis-wifi.md) - [@ohos.wifi](reference/apis/js-apis-wifi.md)
- [@ohos.wifiext](reference/apis/js-apis-wifiext.md) - [@ohos.wifiext](reference/apis/js-apis-wifiext.md)
...@@ -650,8 +602,6 @@ ...@@ -650,8 +602,6 @@
- [@ohos.hilog](reference/apis/js-apis-hilog.md) - [@ohos.hilog](reference/apis/js-apis-hilog.md)
- [@ohos.hiTraceChain](reference/apis/js-apis-hitracechain.md) - [@ohos.hiTraceChain](reference/apis/js-apis-hitracechain.md)
- [@ohos.hiTraceMeter](reference/apis/js-apis-hitracemeter.md) - [@ohos.hiTraceMeter](reference/apis/js-apis-hitracemeter.md)
- [@ohos.inputMethod](reference/js-apis-inputmethod.md)
- [@ohos.inputMethodEngine](reference/js-apis-inputmethodengine.md)
- [@ohos.pasteboard](reference/apis/js-apis-pasteboard.md) - [@ohos.pasteboard](reference/apis/js-apis-pasteboard.md)
- [@ohos.screenLock](reference/apis/js-apis-screen-lock.md) - [@ohos.screenLock](reference/apis/js-apis-screen-lock.md)
- [@ohos.systemTime](reference/apis/js-apis-system-time.md) - [@ohos.systemTime](reference/apis/js-apis-system-time.md)
...@@ -667,7 +617,6 @@ ...@@ -667,7 +617,6 @@
- [@ohos.geolocation](reference/apis/js-apis-geolocation.md) - [@ohos.geolocation](reference/apis/js-apis-geolocation.md)
- [@ohos.multimodalInput.inputConsumer](reference/apis/js-apis-inputconsumer.md) - [@ohos.multimodalInput.inputConsumer](reference/apis/js-apis-inputconsumer.md)
- [@ohos.multimodalInput.inputDevice](reference/apis/js-apis-inputdevice.md) - [@ohos.multimodalInput.inputDevice](reference/apis/js-apis-inputdevice.md)
- [@ohos.multimodalInput.inputEventClient](reference/js-apis-inputeventclient.md)
- [@ohos.multimodalInput.inputMonitor](reference/apis/js-apis-inputmonitor.md) - [@ohos.multimodalInput.inputMonitor](reference/apis/js-apis-inputmonitor.md)
- [@ohos.power](reference/apis/js-apis-power.md) - [@ohos.power](reference/apis/js-apis-power.md)
- [@ohos.runningLock](reference/apis/js-apis-runninglock.md) - [@ohos.runningLock](reference/apis/js-apis-runninglock.md)
...@@ -708,29 +657,10 @@ ...@@ -708,29 +657,10 @@
- [@ohos.worker](reference/apis/js-apis-worker.md) - [@ohos.worker](reference/apis/js-apis-worker.md)
- [@ohos.xml](reference/apis/js-apis-xml.md) - [@ohos.xml](reference/apis/js-apis-xml.md)
- Test
- [@ohos.application.testRunner](reference/js-apis-testRunner.md)
- [@ohos.uitest](reference/js-apis-uitest.md)
- APIs No Longer Maintained - APIs No Longer Maintained
- [@ohos.bytrace](reference/js-apis-bytrace.md) - [@ohos.bytrace](reference/apis/js-apis-bytrace.md)
- [@system.app](reference/js-apis-system-app.md) - [@ohos.data.storage](reference/apis/js-apis-data-storage.md)
- [@system.battery](reference/js-apis-system-battery.md) - [@system.sensor](reference/apis/js-apis-system-sensor.md)
- [@system.brightness](reference/js-apis-system-brightness.md) - [@system.vibrator](reference/apis/js-apis-system-vibrate.md)
- [@system.configuration](reference/js-apis-system-configuration.md) - [console](reference/apis/js-apis-logs.md)
- [@system.device](reference/js-apis-system-device.md) \ No newline at end of file
- [@system.fetch](reference/js-apis-system-fetch.md)
- [@system.file](reference/js-apis-system-file.md)
- [@system.geolocation](reference/js-apis-system-location.md)
- [@system.mediaquery](reference/js-apis-system-mediaquery.md)
- [@system.network](reference/js-apis-system-network.md)
- [@system.package](reference/js-apis-system-package.md)
- [@system.prompt](reference/js-apis-system-prompt.md)
- [@system.request](reference/js-apis-system-request.md)
- [@system.router](reference/js-apis-system-router.md)
- [@system.sensor](reference/js-apis-system-sensor.md)
- [@system.storage](reference/js-apis-system-storage.md)
- [@system.vibrator](reference/js-apis-system-vibrate.md)
- [console](reference/js-apis-logs.md)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册