diff --git a/en/application-dev/application-dev-guide.md b/en/application-dev/application-dev-guide.md index a75e8a98756df5d76400d52724e64a2e7f6c5c7b..0a4df60f399da15279a2b6d344b681b56325c50b 100644 --- a/en/application-dev/application-dev-guide.md +++ b/en/application-dev/application-dev-guide.md @@ -1,10 +1,56 @@ -# Application Development Overview +# Application Development Overview -The application development documents provide reference for you to develop applications using the APIs provided by OpenHarmony. The documents provided walk you through how to use JavaScript \(JS\) APIs to develop applications on the standard system. +The application development documents provide reference for you to develop applications using the APIs provided by OpenHarmony. They walk you through how to use JavaScript APIs to develop applications on the standard system. -To get a glimpse of the basic methods for developing applications, see [Basics](quick-start/start-overview.md). For details about the API list and references, see [Reference](reference/apis/js-apis-featureAbility.md). +The documents are carefully organized as follows: -To better understand frequently used modules, see the development guidelines for [Ability](ability/fa-brief.md), [UI](ui/arkui-overview.md), [Media](media/Readme-EN.md), etc. +### Getting Started -For details about the principles and basic information of each subsystem, see the README file in **docs/en/readme**. +[Here](quick-start/start-overview.md) you'll learn how to quickly get started with OpenHarmony application development. +Browse the documents on the instructions for quickly building your first application and the basics about OpenHarmony applications. + +Check out the development fundamentals, which comprise descriptions of the package structure configuration file for OpenHarmony applications and the instructions for use of resource files. + +### Development + +To facilitate your application development, we provide development guidelines for key features. + +First thing first, familiarize yourself with the two cornerstone frameworks in OpenHarmony applications: + +- Application framework: [Ability Development](ability/fa-brief.md) +- UI framework: [UI Development](ui/arkui-overview.md) + +All applications should be developed on top of these frameworks. + +Then, equip yourself for developing the key features, with the following guidelines: +- [Window Manager](windowmanager/window-overview.md) +- [WebGL](webgl/webgl-overview.md) +- [Media](media/audio-overview.md) +- [Security](security/userauth-overview.md) +- [Connectivity](connectivity/ipc-rpc-overview.md) +- [Data Management](database/database-mdds-overview.md) +- [Agent-Powered Scheduled Reminders](background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md) +- [Background Task Management](background-task-management/background-task-overview.md) +- [Device](device/usb-overview.md) +- [Device Usage Statistics](device-usage-statistics/device-usage-statistics-overview.md) +- [DFX](dfx/hiappevent-overview.md) +- [Internationalization](internationalization/international-overview.md) + +### Tools + +DevEco Studio is a high-performance integrated development environment (IDE) recommended for developing OpenHarmony applications. +[Here](https://developer.harmonyos.com/en/docs/documentation/doc-guides/ohos-deveco-studio-overview-0000001263280421) you can learn everything about DevEco Studio, including how to use this tool to create a project and sign, debug, and run an application. + +### Hands-On Tutorials + +To make you better understand how functions work together and jumpstart your application development projects, we provide stripped-down, real-world [samples](https://gitee.com/openharmony/app_samples/blob/master/README.md). + +### API References + +API references encompass all components and APIs available in OpenHarmony, helping you use and integrate APIs more effectively. + +They are organized as follows: +- [Component Reference (JavaScript-based Web-like Development Paradigm)](reference/arkui-js/js-components-common-attributes.md) +- [Component Reference (TypeScript-based Declarative Development Paradigm)](reference/arkui-ts/ts-universal-events-click.md) +- [API Reference](reference/apis/js-apis-DataUriUtils.md) diff --git a/en/application-dev/application-dev-website.md b/en/application-dev/application-dev-website.md index fd812ea600eecbea31a52b9e3e069edea818a952..811304d21efbde740c598911787f9f015589e146 100644 --- a/en/application-dev/application-dev-website.md +++ b/en/application-dev/application-dev-website.md @@ -2,8 +2,15 @@ - [Application Development Overview](application-dev-guide.md) - Quick Start - - [Directory Structure](quick-start/package-structure.md) - - [Resource File Categories](quick-start/basic-resource-file-categories.md) + - Getting Started + - [Preparations](quick-start/start-overview.md) + - [Getting Started with eTS](quick-start/start-with-ets.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) + - [Resource File Categories](quick-start/basic-resource-file-categories.md) + - [SysCap](quick-start/syscap.md) - Development - Ability Development - FA Model @@ -12,10 +19,12 @@ - [Service Ability Development](ability/fa-serviceability.md) - [Data Ability Development](ability/fa-dataability.md) - [FA Widget Development](ability/fa-formability.md) - - Other - - [Ability Assistant Usage](ability/ability-assistant-guidelines.md) + - [WantAgent Development](wantagent.md) + - [Ability Assistant Usage](ability-assistant-guidelines.md) + - [Test Framework Usage](ability-delegator.md) - UI + - [ArkUI Overview](ui/arkui-overview.md) - JavaScript-based Web-Like Development Paradigm - [Overview](ui/ui-js-overview.md) - Framework @@ -43,18 +52,39 @@ - [Defining Page Routes](ui/ui-js-building-ui-routes.md) - Common Component Development Guidelines - Container Components - - [List](ui/ui-js-components-list.md) - - [Dialog](ui/ui-js-components-dialog.md) - - [Form](ui/ui-js-components-form.md) - - [Stepper](ui/ui-js-components-stepper.md) - - [Tabs](ui/ui-js-component-tabs.md) + - [List Development](ui/ui-js-components-list.md) + - [Dialog Development](ui/ui-js-components-dialog.md) + - [Form Development](ui/ui-js-components-form.md) + - [Stepper Development](ui/ui-js-components-stepper.md) + - [Tabs Development](ui/ui-js-component-tabs.md) + - [Swiper Development](ui/ui-js-components-swiper.md) - Basic Components - - [Text](ui/ui-js-components-text.md) - - [Input](ui/ui-js-components-input.md) - - [Button](ui/ui-js-components-button.md) - - [Picker](ui/ui-js-components-picker.md) - - [Image](ui/ui-js-components-images.md) - - Animation Development Guidelines + - [Text Development](ui/ui-js-components-text.md) + - [Input Development](ui/ui-js-components-input.md) + - [Button Development](ui/ui-js-components-button.md) + - [Picker Development](ui/ui-js-components-picker.md) + - [Image Development](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 + - [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 - CSS Animation - [Defining Attribute Style Animations](ui/ui-js-animate-attribute-style.md) - [Defining Animations with the transform Attribute](ui/ui-js-animate-transform.md) @@ -120,6 +150,13 @@ - [Custom Component Lifecycle Callbacks](ui/ts-custom-component-lifecycle-callbacks.md) - [Example: Component Creation and Re-Initialization](ui/ts-component-creation-re-initialization.md) - [Syntactic Sugar](ui/ts-syntactic-sugar.md) + - 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 - [Creating a Declarative UI Project](ui/ui-ts-creating-project.md) - [Getting to Know Components](ui/ui-ts-components.md) @@ -158,8 +195,14 @@ - User Authentication - [User Authentication Overview](security/userauth-overview.md) - [User Authentication Development](security/userauth-guidelines.md) - - hapsigner - - [hapsigner Guide](security/hapsigntool-guidelines.md) + - Key Management + - [HUKS Overview](security/huks-overview.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 - IPC & RPC - [IPC & RPC Overview](connectivity/ipc-rpc-overview.md) @@ -175,6 +218,9 @@ - Lightweight Data Store - [Lightweight Data Store Overview](database/database-preference-overview.md) - [Lightweight Data Store Development](database/database-preference-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 - [Overview](background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md) - [Development Guidelines](background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md) @@ -490,13 +536,9 @@ - [AbilityRunningInfo](reference/apis/js-apis-abilityrunninginfo.md) - [AbilityStageContext](reference/apis/js-apis-abilitystagecontext.md) - [Context](reference/apis/js-apis-application-context.md) - - [ExtensionContext](reference/apis/js-apis-extension-context.md) - - [ExtensionRunningInfo](reference/apis/js-apis-extensionrunninginfo.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 @@ -504,7 +546,6 @@ - [@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) - - [EventHub](reference/apis/js-apis-eventhub.md) - Bundle Management @@ -515,6 +556,9 @@ - UI Page - [@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 @@ -546,8 +590,10 @@ - Security - - [@ohos.abilityAccessCtrl](reference/apis/js-apis-abilityAccessCtrl.md) - - [@ohos.userIAM.userAuth ](reference/apis/js-apis-useriam-userauth.md) + - [@ohos.abilityAccessCtrl](reference/js-apis-abilityAccessCtrl.md) + - [@ohos.security.huks ](reference/js-apis-huks.md) + - [@ohos.userIAM.userAuth ](reference/js-apis-useriam-userauth.md) + - [@system.cipher](reference/js-apis-system-cipher.md) - Data Management @@ -556,6 +602,7 @@ - [@ohos.data.distributedDataObject](reference/apis/js-apis-data-distributedobject.md) - [@ohos.data.rdb](reference/apis/js-apis-data-rdb.md) - [@ohos.settings](reference/apis/js-apis-settings.md) + - [@ohos.data.storage](reference/js-apis-data-storage.md) - [resultSet](reference/apis/js-apis-data-resultset.md) - File Management @@ -587,6 +634,7 @@ - [@ohos.bluetooth](reference/apis/js-apis-bluetooth.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.wifiext](reference/apis/js-apis-wifiext.md) @@ -600,6 +648,8 @@ - [@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/js-apis-inputmethod.md) + - [@ohos.inputMethodEngine](reference/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) @@ -615,6 +665,7 @@ - [@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/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) @@ -657,8 +708,23 @@ - APIs No Longer Maintained - - [@ohos.bytrace](reference/apis/js-apis-bytrace.md) - - [@ohos.data.storage](reference/apis/js-apis-data-storage.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 + - [@ohos.bytrace](reference/js-apis-bytrace.md) + - [@ohos.data.storage](reference/js-apis-data-storage.md) + - [@system.app](reference/js-apis-system-app.md) + - [@system.battery](reference/js-apis-system-battery.md) + - [@system.brightness](reference/js-apis-system-brightness.md) + - [@system.configuration](reference/js-apis-system-configuration.md) + - [@system.device](reference/js-apis-system-device.md) + - [@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 diff --git a/en/application-dev/reference/apis/Readme-EN.md b/en/application-dev/reference/apis/Readme-EN.md index 092d3f2373a88aa2789e14d1e81930d6e7beb386..434d659411108eea63f9f3e952a74fe0fcbc0608 100644 --- a/en/application-dev/reference/apis/Readme-EN.md +++ b/en/application-dev/reference/apis/Readme-EN.md @@ -24,12 +24,8 @@ - application/[abilityDelegator](js-apis-application-abilityDelegator.md) - application/[abilityDelegatorArgs](js-apis-application-abilityDelegatorArgs.md) - application/[AbilityRunningInfo](js-apis-abilityrunninginfo.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/[ProcessRunningInfo](js-apis-processrunninginfo.md) - - application/[ServiceExtensionContext](js-apis-service-extension-context.md) - application/[shellCmdResult](js-apis-application-shellCmdResult.md) - Common Event and Notification @@ -85,7 +81,7 @@ - [@ohos.security.huks ](js-apis-huks.md) - [@ohos.userIAM.userAuth ](js-apis-useriam-userauth.md) - [@system.cipher](js-apis-system-cipher.md) - + - Data Management - [@ohos.data.dataAbility ](js-apis-data-ability.md) @@ -93,6 +89,7 @@ - [@ohos.data.distributedDataObject](js-apis-data-distributedobject.md) - [@ohos.data.rdb](js-apis-data-rdb.md) - [@ohos.settings](js-apis-settings.md) + - [@ohos.data.storage](js-apis-data-storage.md) - data/rdb/[resultSet](js-apis-data-resultset.md) - File Management @@ -127,7 +124,7 @@ - [@ohos.rpc](js-apis-rpc.md) - [@ohos.wifi](js-apis-wifi.md) - [@ohos.wifiext](js-apis-wifiext.md) - + - Basic Features - [@ohos.accessibility](js-apis-accessibility.md) @@ -201,7 +198,7 @@ - [@ohos.uitest](js-apis-uitest.md) - APIs No Longer Maintained - + - [@ohos.bytrace](js-apis-bytrace.md) - [@system.app](js-apis-system-app.md) - [@system.battery](js-apis-system-battery.md) diff --git a/en/application-dev/reference/apis/js-apis-extension-context.md b/en/application-dev/reference/apis/js-apis-extension-context.md deleted file mode 100644 index 3a18f757b31e1e6ce33f31ae11f23c7ea840b0f8..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/apis/js-apis-extension-context.md +++ /dev/null @@ -1,16 +0,0 @@ -# ExtensionContext - -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** -> 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. - - -Implements the extension context. This module is inherited from **Context**. - - -## Attributes - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -| Name| Type| Readable| Writable| Description| -| -------- | -------- | -------- | -------- | -------- | -| currentHapModuleInfo | HapModuleInfo | Yes| No| Information about the current HAP. | diff --git a/en/application-dev/reference/apis/js-apis-extensionrunninginfo.md b/en/application-dev/reference/apis/js-apis-extensionrunninginfo.md deleted file mode 100644 index f5f75e537f719657bed473a63899b15cae850f4b..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/apis/js-apis-extensionrunninginfo.md +++ /dev/null @@ -1,57 +0,0 @@ -# ExtensionRunningInfo - -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** -> 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. - - -Provides extension running information. - - -## Usage - - -The extension running information is obtained through an **abilityManager** instance. - - - -``` -import abilitymanager from '@ohos.application.abilityManager'; -abilitymanager.getExtensionRunningInfos(upperLimit, (err,data) => { - console.log("getExtensionRunningInfos err: " + err + " data: " + JSON.stringify(data)); -}); -``` - - -### Attributes - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -| Name| Type| Readable| Writable| Description| -| -------- | -------- | -------- | -------- | -------- | -| extension | ElementName | Yes| No| Information that matches an extension.| -| pid | number | Yes| No| Process ID.| -| uid | number | Yes| No| User ID.| -| processName | string | Yes| No| Process name.| -| startTime | number | Yes| No| Extension start time.| -| clientPackage | Array<String> | Yes| No| Names of all packages in the process.| -| type | [bundle.ExtensionAbilityType](#bundleextensionabilitytype) | Yes| No| Extension type.| - - -## bundle.ExtensionAbilityType - -Enumerates extension types. - -**System capability**: SystemCapability.BundleManager.BundleFramework - - | Name| Value| Description| -| -------- | -------- | -------- | -| FORM | 0 | Extension information of the form type.< | -| WORK_SCHEDULER | 1 | Extension information of the work scheduler type.< | -| INPUT_METHOD | 2 | Extension information of the input method type.< | -| SERVICE | 3 | Extension information of the service type.< | -| ACCESSIBILITY | 4 | Extension information of the accessibility type.< | -| DATA_SHARE | 5 | Extension information of the data share type.< | -| FILE_SHARE | 6 | Extension information of the file share type.< | -| STATIC_SUBSCRIBER | 7 | Extension information of the static subscriber type.< | -| WALLPAPER | 8 | Extension information of the wallpaper type.< | -| UNSPECIFIED | 9 | Extension information of the unspecified type.< | diff --git a/en/application-dev/reference/apis/js-apis-formextensioncontext.md b/en/application-dev/reference/apis/js-apis-formextensioncontext.md deleted file mode 100644 index faa3bd6c6f82018ca61c9ba1f008dbc1e72dae9f..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/apis/js-apis-formextensioncontext.md +++ /dev/null @@ -1,63 +0,0 @@ -# FormExtensionContext - -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** -> 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. - -Implements the context that provides the capabilities and APIs of **FormExtension**. This class is inherited from **ExtensionContext**. - -## FormExtensionContext.updateForm - -updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback\): void - -Updates a widget. This method uses a callback to return the result. - -**System capability**: SystemCapability.Ability.Form - -**Parameters** - - | Name | Type | Mandatory| Description | - | --------------- | ------------------------------------------------------------ | ---- | -------------------------------------- | - | formId | string | Yes | ID of the widget that requests to be updated. | - | formBindingData | [formBindingData.FormBindingData](js-apis-formbindingdata.md#formbindingdata) | Yes | New data of the widget. | - | callback | AsyncCallback\ | Yes | Callback used to return the result indicating whether the method is successfully called.| - -**Example** - - ```js - let obj2 = formBindingData.createFormBindingData({temperature:"22c", time:"22:00"}); - this.context.updateForm(formId, obj2, (data)=>{ - console.log('FormExtension context updateForm, data:' + data); - }); - ``` - -## FormExtensionContext.updateForm - -updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise\ - -Updates a widget. This method uses a promise to return the result. - -**System capability**: SystemCapability.Ability.Form - -**Parameters** - - | Name | Type | Mandatory| Description | - | --------------- | ------------------------------------------------------------ | ---- | ------------------ | - | formId | string | Yes | ID of the widget that requests to be updated.| - | formBindingData | [formBindingData.FormBindingData](js-apis-formbindingdata.md#formbindingdata) | Yes | New data of the widget. | - -**Return value** - - | Type | Description | - | -------------- | --------------------------------- | - | Promise\ | Promise returned with the result indicating whether the method is successfully called.| - -**Example** - - ``` - let obj2 = formBindingData.createFormBindingData({temperature:"22c", time:"22:00"}); - this.context.updateForm(formId, obj2) - .then((data)=>{ - console.log('FormExtension context updateForm, data:' + data); - }).catch((error) => { - console.error('Operation updateForm failed. Cause: ' + error);}); - ``` diff --git a/en/application-dev/reference/apis/js-apis-service-extension-context.md b/en/application-dev/reference/apis/js-apis-service-extension-context.md deleted file mode 100644 index 0c6b7c6749e3a7bab2d40fc730742dd3daef9f05..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/apis/js-apis-service-extension-context.md +++ /dev/null @@ -1,223 +0,0 @@ -# ServiceExtensionContext - -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** -> 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. - - -Implements the context that provides the capabilities and APIs of **ServiceExtension**. This class is inherited from **ExtensionContext**. - - -## startAbility - -startAbility(want: Want, callback: AsyncCallback<void>): void; - -Starts an ability. This API uses a callback to return the result. - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -**Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | want | [Want](js-apis-featureAbility.md#Want) | Yes| Information about the ability to start, such as the ability name and bundle name.| - | callback | AsyncCallback<void> | No| Callback used to return the result indicating whether the API is successfully called.| - -**Example** - - ```js - let want = { - "bundleName": "com.example.myapp", - "abilityName": "com.example.myapp.MyAbility" - }; - this.context.startAbility(want, (err) => { - console.log('startAbility result:' + JSON.stringfy(err)); - }); - ``` - - -## ServiceExtensionContext.startAbility - -startAbility(want: Want): Promise<void>; - -Starts an ability. This API uses a promise to return the result. - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -**Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | want | [Want](js-apis-featureAbility.md#Want) | Yes| Information about the ability to start, such as the ability name and bundle name.| - -**Return value** - - | Type| Description| - | -------- | -------- | - | Promise<void> | Promise used to return the result indicating whether the API is successfully called.| - -**Example** - - ```js - let want = { - "bundleName": "com.example.myapp", - "abilityName": "com.example.myapp.MyAbility" - }; - this.context.startAbility(want).then((data) => { - console.log('success:' + JSON.stringfy(data)); - }).catch((error) => { - console.log('failed:' + JSON.stringfy(error)); - }); - ``` - - -## ServiceExtensionContext.terminateSelf - -terminateSelf(callback: AsyncCallback<void>): void; - -Terminates this ability. This API uses a callback to return the result. - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -**Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<void> | No| Callback used to return the result indicating whether the API is successfully called.| - -**Example** - - ```js - this.context.terminateSelf((err) => { - console.log('terminateSelf result:' + JSON.stringfy(err)); - }); - ``` - - -## ServiceExtensionContext.terminateSelf - -terminateSelf(): Promise<void>; - -Terminates this ability. This API uses a promise to return the result. - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -**Return value** - - | Type| Description| - | -------- | -------- | - | Promise<void> | Promise used to return the result indicating whether the API is successfully called.| - -**Example** - - ```js - this.context.terminateSelf(want).then((data) => { - console.log('success:' + JSON.stringfy(data)); - }).catch((error) => { - console.log('failed:' + JSON.stringfy(error)); - }); - ``` - - -## ServiceExtensionContext.connectAbility - -connectAbility(want: Want, options: ConnectOptions): number; - -Connects this ability to a Service ability. - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -**Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | want | [Want](js-apis-featureAbility.md#Want) | Yes| Information about the ability to connect to, such as the ability name and bundle name.| - | options | [ConnectOptions](#connectoptions) | Yes| Callback used to return the information indicating that the connection is successful, interrupted, or failed.| - -**Return value** - - | Type| Description| - | -------- | -------- | - | number | A number, based on which the connection will be interrupted.| - -**Example** - - ```js - let want = { - "bundleName": "com.example.myapp", - "abilityName": "com.example.myapp.MyAbility" - }; - let options = { - onConnect: function(elementName, proxy) {}, - onDisConnect: function(elementName) {}, - onFailed: function(code) {} - } - let connection = this.context.connectAbility(want,options); - ``` - - -## ServiceExtensionContext.disconnectAbility - -disconnectAbility(connection: number, callback:AsyncCallback<void>): void; - -Disconnects this ability from the Service ability. This API uses a callback to return the result. - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -**Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | connection | number | Yes| Number returned after **connectAbility** is called.| - | callback | AsyncCallback<void> | No| Callback used to return the result indicating whether the API is successfully called.| - -**Example** - - ```js - this.context.disconnectAbility(connection, (err) => { // connection is the return value of connectAbility. - console.log('terminateSelf result:' + JSON.stringfy(err)); - }); - ``` - - -## ServiceExtensionContext.disconnectAbility - -disconnectAbility(connection: number): Promise<void>; - -Disconnects this ability from the Service ability. This API uses a promise to return the result. - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -**Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | connection | number | Yes| Number returned after **connectAbility** is called.| - -**Return value** - - | Type| Description| - | -------- | -------- | - | Promise<void> | Promise used to return the result indicating whether the API is successfully called.| - -**Example** - - ```js - this.context.disconnectAbility(connection).then((data) => { // connection is the return value of connectAbility. - console.log('success:' + JSON.stringfy(data)); - }).catch((error) => { - console.log('failed:' + JSON.stringfy(error)); - }); - ``` - - -## ConnectOptions - -Defines the **ConnectOptions** data structure. - -**System capability**: SystemCapability.Ability.AbilityRuntime.Core - -| Name| Description| -| -------- | -------- | -| onConnect(elementName:ElementName, remote:IRemoteObject) | Called when this ability is connected to a Service ability.| -| onDisconnect(elementName:ElementName) | Called when the peer service is abnormal or killed.| -| onFailed(code: number) | Called when the connection fails.| diff --git a/en/application-dev/ui/Readme-CN.md b/en/application-dev/ui/Readme-CN.md deleted file mode 100644 index d398aa74d8d44f8da390c879c4a9e83b094b17c4..0000000000000000000000000000000000000000 --- a/en/application-dev/ui/Readme-CN.md +++ /dev/null @@ -1,117 +0,0 @@ -# UI - -- [ArkUI Overview](arkui-overview.md) -- JavaScript-based Web-like Development Paradigm - - [Overview](ui-js-overview.md) - - Framework - - [File Organization](js-framework-file.md) - - ["js" Tag](js-framework-js-tag.md) - - [app.js](js-framework-js-file.md) - - Syntax - - [HML](js-framework-syntax-hml.md) - - [CSS](js-framework-syntax-css.md) - - [JavaScript](js-framework-syntax-js.md) - - [Lifecycle](js-framework-lifecycle.md) - - [Resource Limitations and Access](js-framework-resource-restriction.md) - - [Multi-Language Capability](js-framework-multiple-languages.md) - - Building the UI - - [Component Overview](ui-js-building-ui-component.md) - - Building the Layout - - [Layout Description](ui-js-building-ui-layout-intro.md) - - [Adding Title and Paragraph Text](ui-js-building-ui-layout-text.md) - - [Adding an Image](ui-js-building-ui-layout-image.md) - - [Adding a Comment](ui-js-building-ui-layout-comment.md) - - [Adding a Container](ui-js-building-ui-layout-external-container.md) - - [Adding Interactions](ui-js-building-ui-interactions.md) - - [Developing Animations](ui-js-building-ui-animation.md) - - [Defining Events](ui-js-building-ui-event.md) - - [Defining Page Routes](ui-js-building-ui-routes.md) - - Common Component Development Guidelines - - [<text> Development](ui-js-components-text.md) - - [<input> Development](ui-js-components-input.md) - - [<button> Development](ui-js-components-button.md) - - [<list> Development](ui-js-components-list.md) - - [<picker> Development](ui-js-components-picker.md) - - [<dialog> Development](ui-js-components-dialog.md) - - [<form> Development](ui-js-components-form.md) - - [<stepper> Development](ui-js-components-stepper.md) - - [<tabs> Development](ui-js-component-tabs.md) - - [<image> Development](ui-js-components-images.md) - - Animation Development Guidelines - - CSS Animation - - [Defining Attribute Style Animations](ui-js-animate-attribute-style.md) - - [Defining Animations with the transform Attribute](ui-js-animate-transform.md) - - [Defining Animations with the background-position Attribute](ui-js-animate-background-position-style.md) - - [Defining Animations for SVG Components](ui-js-animate-svg.md) - - JS Animation - - [Component Animation](ui-js-animate-component.md) - - Interpolator Animation - - [Animation Effect](ui-js-animate-dynamic-effects.md) - - [Animation Frame](ui-js-animate-frame.md) - - [Custom Components](ui-js-custom-components.md) -- TypeScript-based Declarative Development Paradigm - - [Overview](ui-ts-overview.md) - - Framework Overview - - File Organization - - [Directory Structure](ts-framework-directory.md) - - [Rules for Accessing Application Code Files](ts-framework-file-access-rules.md) - - ["js" Tag](ts-framework-js-tag.md) - - Resource Access - - [Accessing Application Resources](ts-application-resource-access.md) - - [Accessing System Resources](ts-system-resource-access.md) - - [Media Resource Types](ts-media-resource-type.md) - - [Pixel Units](ts-pixel-units.md) - - [Types](ts-types.md) - - Declarative Syntax - - [Overview](ts-syntax-intro.md) - - General UI Description Specifications - - [Basic Concepts](ts-general-ui-concepts.md) - - Declarative UI Description Specifications - - [Configuration Without Parameters](ts-parameterless-configuration.md) - - [Configuration with Mandatory Parameters](ts-configuration-with-mandatory-parameters.md) - - [Attribute Configuration](ts-attribution-configuration.md) - - [Event Configuration](ts-event-configuration.md) - - [Child Component Configuration](ts-child-component-configuration.md) - - Componentization - - [@Component](ts-component-based-component.md) - - [@Entry](ts-component-based-entry.md) - - [@Preview](ts-component-based-preview.md) - - [@Builder](ts-component-based-builder.md) - - [@Extend](ts-component-based-extend.md) - - [@CustomDialog](ts-component-based-customdialog.md) - - [@Styles](ts-component-based-styles.md) - - About UI State Management - - [Basic Concepts](ts-ui-state-mgmt-concepts.md) - - Managing Component States - - [@State](ts-component-states-state.md) - - [@Prop](ts-component-states-prop.md) - - [@Link](ts-component-states-link.md) - - Managing Application States - - [AppStorage](ts-application-states-appstorage.md) - - [PersistentStorage](ts-application-states-apis-persistentstorage.md) - - [Environment](ts-application-states-apis-environment.md) - - Managing Other States - - [@Observed and @ObjectLink](ts-other-states-observed-objectlink.md) - - [@Consume and @Provide](ts-other-states-consume-provide.md) - - [@Watch](ts-other-states-watch.md) - - About Rendering Control Syntax - - [if/else](ts-rending-control-syntax-if-else.md) - - [ForEach](ts-rending-control-syntax-foreach.md) - - [LazyForEach](ts-rending-control-syntax-lazyforeach.md) - - About @Component - - [build Function](ts-function-build.md) - - [Initialization of Custom Components' Member Variables](ts-custom-component-initialization.md) - - [Custom Component Lifecycle Callbacks](ts-custom-component-lifecycle-callbacks.md) - - [Component Creation and Re-initialization](ts-component-creation-re-initialization.md) - - [About Syntactic Sugar](ts-syntactic-sugar.md) - - Common Component Development Guidelines - - [<web> Development](ui-ts-components-web.md) - - Experiencing the Declarative UI - - [Creating a Declarative UI Project](ui-ts-creating-project.md) - - [Getting to Know Components](ui-ts-components.md) - - [Creating a Simple Page](ui-ts-creating-simple-page.md) - - Defining Page Layout and Connection - - [Building a Food Data Model](ui-ts-building-data-model.md) - - [Building a Food Category List Layout](ui-ts-building-category-list-layout.md) - - [Building a Food Category Grid Layout](ui-ts-building-category-grid-layout.md) - - [Implementing Page Redirection and Data Transmission](ui-ts-page-redirection-data-transmission.md) diff --git a/en/application-dev/ui/Readme-EN.md b/en/application-dev/ui/Readme-EN.md index 32ac7687a68e1702f82c6cf8c12ed4ff18bcad74..d657b40cc0baf31ba295a7bc56164d2a64858171 100644 --- a/en/application-dev/ui/Readme-EN.md +++ b/en/application-dev/ui/Readme-EN.md @@ -51,9 +51,10 @@ - [Qrcode Development](ui-js-components-qrcode.md) - [Search Development](ui-js-components-search.md) - Canvas Development - - [CanvasRenderingContext2D](ui-js-components-canvasrenderingcontext2d.md) - - [Path2D](ui-js-components-path2d.md) - - [OffscreenCanvas](ui-js-components-offscreencanvas.md) + - [Canvas](ui-js-components-canvas.md) + - [CanvasRenderingContext2D](ui-js-components-canvasrenderingcontext2d.md) + - [Path2D](ui-js-components-path2d.md) + - [OffscreenCanvas](ui-js-components-offscreencanvas.md) - [Grid-container Development](ui-js-components-calendar.md) - Svg - [Basics](ui-js-components-svg-overview.md) diff --git a/en/application-dev/website.md b/en/application-dev/website.md index d76de1125db661cd26cbe8e1db4bafacac40cd6d..bfb6508e292bb3c045d46179f355ba499ecb7d2e 100644 --- a/en/application-dev/website.md +++ b/en/application-dev/website.md @@ -2,8 +2,15 @@ - [Application Development Overview](application-dev-guide.md) - Quick Start - - [Directory Structure](quick-start/package-structure.md) - - [Resource File Categories](quick-start/basic-resource-file-categories.md) + - Getting Started + - [Preparations](quick-start/start-overview.md) + - [Getting Started with eTS](quick-start/start-with-ets.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) + - [Resource File Categories](quick-start/basic-resource-file-categories.md) + - [SysCap](quick-start/syscap.md) - Development - Ability Development - FA Model @@ -12,9 +19,10 @@ - [Service Ability Development](ability/fa-serviceability.md) - [Data Ability Development](ability/fa-dataability.md) - [FA Widget Development](ability/fa-formability.md) - - Other - - [Ability Assistant Usage](ability/ability-assistant-guidelines.md) + - [WantAgent Development](wantagent.md) + - [Ability Assistant Usage](ability-assistant-guidelines.md) + - [Test Framework Usage](ability-delegator.md) - UI - [ArkUI Overview](ui/arkui-overview.md) - JavaScript-based Web-Like Development Paradigm @@ -44,18 +52,40 @@ - [Defining Page Routes](ui/ui-js-building-ui-routes.md) - Common Component Development Guidelines - Container Components - - [List](ui/ui-js-components-list.md) - - [Dialog](ui/ui-js-components-dialog.md) - - [Form](ui/ui-js-components-form.md) - - [Stepper](ui/ui-js-components-stepper.md) - - [Tabs](ui/ui-js-component-tabs.md) + - [List Development](ui/ui-js-components-list.md) + - [Dialog Development](ui/ui-js-components-dialog.md) + - [Form Development](ui/ui-js-components-form.md) + - [Stepper Development](ui/ui-js-components-stepper.md) + - [Tabs Development](ui/ui-js-component-tabs.md) + - [Swiper Development](ui/ui-js-components-swiper.md) - Basic Components - - [Text](ui/ui-js-components-text.md) - - [Input](ui/ui-js-components-input.md) - - [Button](ui/ui-js-components-button.md) - - [Picker](ui/ui-js-components-picker.md) - - [Image](ui/ui-js-components-images.md) - - Animation Development Guidelines + - [Text Development](ui/ui-js-components-text.md) + - [Input Development](ui/ui-js-components-input.md) + - [Button Development](ui/ui-js-components-button.md) + - [Picker Development](ui/ui-js-components-picker.md) + - [Image Development](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 - CSS Animation - [Defining Attribute Style Animations](ui/ui-js-animate-attribute-style.md) - [Defining Animations with the transform Attribute](ui/ui-js-animate-transform.md) @@ -121,6 +151,13 @@ - [Custom Component Lifecycle Callbacks](ui/ts-custom-component-lifecycle-callbacks.md) - [Example: Component Creation and Re-Initialization](ui/ts-component-creation-re-initialization.md) - [Syntactic Sugar](ui/ts-syntactic-sugar.md) + - 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 - [Creating a Declarative UI Project](ui/ui-ts-creating-project.md) - [Getting to Know Components](ui/ui-ts-components.md) @@ -159,8 +196,14 @@ - User Authentication - [User Authentication Overview](security/userauth-overview.md) - [User Authentication Development](security/userauth-guidelines.md) - - hapsigner - - [hapsigner Guide](security/hapsigntool-guidelines.md) + - Key Management + - [HUKS Overview](security/huks-overview.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 - IPC & RPC - [IPC & RPC Overview](connectivity/ipc-rpc-overview.md) @@ -176,6 +219,9 @@ - Lightweight Data Store - [Lightweight Data Store Overview](database/database-preference-overview.md) - [Lightweight Data Store Development](database/database-preference-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 - [Overview](background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md) - [Development Guidelines](background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md) @@ -491,13 +537,9 @@ - [AbilityRunningInfo](reference/apis/js-apis-abilityrunninginfo.md) - [AbilityStageContext](reference/apis/js-apis-abilitystagecontext.md) - [Context](reference/apis/js-apis-application-context.md) - - [ExtensionContext](reference/apis/js-apis-extension-context.md) - - [ExtensionRunningInfo](reference/apis/js-apis-extensionrunninginfo.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 @@ -505,7 +547,6 @@ - [@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) - - [EventHub](reference/apis/js-apis-eventhub.md) - Bundle Management @@ -516,6 +557,9 @@ - UI Page - [@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 @@ -547,8 +591,10 @@ - Security - - [@ohos.abilityAccessCtrl](reference/apis/js-apis-abilityAccessCtrl.md) - - [@ohos.userIAM.userAuth ](reference/apis/js-apis-useriam-userauth.md) + - [@ohos.abilityAccessCtrl](reference/js-apis-abilityAccessCtrl.md) + - [@ohos.security.huks ](reference/js-apis-huks.md) + - [@ohos.userIAM.userAuth ](reference/js-apis-useriam-userauth.md) + - [@system.cipher](reference/js-apis-system-cipher.md) - Data Management @@ -557,6 +603,7 @@ - [@ohos.data.distributedDataObject](reference/apis/js-apis-data-distributedobject.md) - [@ohos.data.rdb](reference/apis/js-apis-data-rdb.md) - [@ohos.settings](reference/apis/js-apis-settings.md) + - [@ohos.data.storage](reference/js-apis-data-storage.md) - [resultSet](reference/apis/js-apis-data-resultset.md) - File Management @@ -588,6 +635,7 @@ - [@ohos.bluetooth](reference/apis/js-apis-bluetooth.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.wifiext](reference/apis/js-apis-wifiext.md) @@ -601,6 +649,8 @@ - [@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/js-apis-inputmethod.md) + - [@ohos.inputMethodEngine](reference/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) @@ -616,6 +666,7 @@ - [@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/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) @@ -658,8 +709,23 @@ - APIs No Longer Maintained - - [@ohos.bytrace](reference/apis/js-apis-bytrace.md) - - [@ohos.data.storage](reference/apis/js-apis-data-storage.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 + - [@ohos.bytrace](reference/js-apis-bytrace.md) + - [@ohos.data.storage](reference/js-apis-data-storage.md) + - [@system.app](reference/js-apis-system-app.md) + - [@system.battery](reference/js-apis-system-battery.md) + - [@system.brightness](reference/js-apis-system-brightness.md) + - [@system.configuration](reference/js-apis-system-configuration.md) + - [@system.device](reference/js-apis-system-device.md) + - [@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 diff --git a/zh-cn/application-dev/website.md b/zh-cn/application-dev/website.md index cfe86d8ecbe381f8fedf8a0a8e507dd8464c7bff..1ba139bd5965f596c6f728a37ee64ef54f731d25 100644 --- a/zh-cn/application-dev/website.md +++ b/zh-cn/application-dev/website.md @@ -17,10 +17,11 @@ - [PageAbility开发指导](ability/fa-pageability.md) - [ServiceAbility开发指导](ability/fa-serviceability.md) - [DataAbility开发指导](ability/fa-dataability.md) - - [FormAbility开发指导](ability/fa-formability.md) + - [FA卡片开发指导](ability/fa-formability.md) - 其他 - [WantAgent使用指导](ability/wantagent.md) - [Ability助手使用指导](ability/ability-assistant-guidelines.md) + - [测试框架使用指导](ability-delegator.md) - UI开发 - [方舟开发框架(ArkUI)概述](ui/arkui-overview.md) - 基于JS扩展的类Web开发范式 @@ -545,31 +546,31 @@ - [ServiceExtensionContext (ServiceExtensionContext)](reference/apis/js-apis-service-extension-context.md) - [shellCmdResult (ShellCmdResult)](reference/apis/js-apis-application-shellCmdResult.md) - 公共事件与通知 - + - [@ohos.commonEvent (公共事件模块)](reference/apis/js-apis-commonEvent.md) - [@ohos.events.emitter (Emitter)](reference/apis/js-apis-emitter.md) - [@ohos.notification (Notification模块)](reference/apis/js-apis-notification.md) - [@ohos.reminderAgent (后台代理提醒)](reference/apis/js-apis-reminderAgent.md) - 应用程序包管理 - + - [@ohos.bundle (Bundle模块)](reference/apis/js-apis-Bundle.md) - [@ohos.bundleState (设备使用信息统计)](reference/apis/js-apis-deviceUsageStatistics.md) - [@ohos.zlib (Zip模块)](reference/apis/js-apis-zlib.md) - UI界面 - + - [@ohos.animator (动画)](reference/apis/js-apis-animator.md) - [@ohos.mediaquery (媒体查询)](reference/apis/js-apis-mediaquery.md) - [@ohos.prompt (弹窗)](reference/apis/js-apis-prompt.md) - [@ohos.router (页面路由)](reference/apis/js-apis-router.md) - 图形图像 - + - [@ohos.display (屏幕属性)](reference/apis/js-apis-display.md) - [@ohos.screenshot (屏幕截图)](reference/apis/js-apis-screenshot.md) - [@ohos.window (窗口)](reference/apis/js-apis-window.md) - [webgl (WebGL)](reference/apis/js-apis-webgl.md) - [webgl2 (WebGL2)](reference/apis/js-apis-webgl2.md) - 媒体 - + - [@ohos.multimedia.audio (音频管理)](reference/apis/js-apis-audio.md) - [@ohos.multimedia.image (图片处理)](reference/apis/js-apis-image.md) - [@ohos.multimedia.media (媒体服务)](reference/apis/js-apis-media.md) @@ -579,19 +580,19 @@ - [@ohos.intl (国际化-Intl)](reference/apis/js-apis-intl.md) - [@ohos.resourceManager (资源管理)](reference/apis/js-apis-resource-manager.md) - 资源调度 - + - [@ohos.backgroundTaskManager (后台任务管理)](reference/apis/js-apis-backgroundTaskManager.md) - 定制管理 - + - [@ohos.configPolicy (配置策略)](reference/apis/js-apis-config-policy.md) - 安全 - + - [@ohos.abilityAccessCtrl (访问控制管理)](reference/apis/js-apis-abilityAccessCtrl.md) - [@ohos.security.huks (通用密钥库系统)](reference/apis/js-apis-huks.md) - [@ohos.userIAM.userAuth (用户认证)](reference/apis/js-apis-useriam-userauth.md) - [@system.cipher (加密算法)](reference/apis/js-apis-system-cipher.md) - 数据管理 - + - [@ohos.data.dataAbility (DataAbility谓词)](reference/apis/js-apis-data-ability.md) - [@ohos.data.distributedData (分布式数据管理)](reference/apis/js-apis-distributed-data.md) - [@ohos.data.distributedDataObject (分布式数据对象)](reference/apis/js-apis-data-distributedobject.md) @@ -600,14 +601,14 @@ - [@ohos.data.storage (轻量级存储)](reference/apis/js-apis-data-storage.md) - [resultSet (结果集)](reference/apis/js-apis-data-resultset.md) - 文件管理 - + - [@ohos.environment (目录环境能力)](reference/apis/js-apis-environment.md) - [@ohos.fileio (文件管理)](reference/apis/js-apis-fileio.md) - [@ohos.fileManager (公共文件访问与管理)](reference/apis/js-apis-filemanager.md) - [@ohos.statfs (statfs)](reference/apis/js-apis-statfs.md) - [@ohos.storageStatistics (应用空间统计)](reference/apis/js-apis-storage-statistics.md) - 电话服务 - + - [@ohos.contact (联系人)](reference/apis/js-apis-contact.md) - [@ohos.telephony.call (拨打电话)](reference/apis/js-apis-call.md) - [@ohos.telephony.observer (observer)](reference/apis/js-apis-observer.md) @@ -622,14 +623,14 @@ - [@ohos.net.socket (Socket连接)](reference/apis/js-apis-socket.md) - [@ohos.net.webSocket (WebSocket连接)](reference/apis/js-apis-webSocket.md) - 通信与连接 - + - [@ohos.bluetooth (蓝牙)](reference/apis/js-apis-bluetooth.md) - [@ohos.connectedTag (有源标签)](reference/apis/js-apis-connectedTag.md) - [@ohos.rpc (RPC通信)](reference/apis/js-apis-rpc.md) - [@ohos.wifi (WLAN)](reference/apis/js-apis-wifi.md) - [@ohos.wifiext (WLAN)](reference/apis/js-apis-wifiext.md) - 系统基础能力 - + - [@ohos.accessibility (辅助功能)](reference/apis/js-apis-accessibility.md) - [@ohos.faultLogger (故障日志获取)](reference/apis/js-apis-faultLogger.md) - [@ohos.hiAppEvent (应用打点)](reference/apis/js-apis-hiappevent.md) @@ -646,7 +647,7 @@ - [@ohos.wallpaper (壁纸)](reference/apis/js-apis-wallpaper.md) - [Timer (定时器)](reference/apis/js-apis-timer.md) - 设备管理 - + - [@ohos.batteryInfo (电量信息)](reference/apis/js-apis-battery-info.md) - [@ohos.brightness (屏幕亮度)](reference/apis/js-apis-brightness.md) - [@ohos.deviceInfo (设备信息)](reference/apis/js-apis-device-info.md) @@ -665,12 +666,12 @@ - [@ohos.usb (USB管理)](reference/apis/js-apis-usb.md) - [@ohos.vibrator (振动)](reference/apis/js-apis-vibrator.md) - 帐号管理 - + - [@ohos.account.appAccount (应用帐号管理)](reference/apis/js-apis-appAccount.md) - [@ohos.account.distributedAccount (分布式帐号管理)](reference/apis/js-apis-distributed-account.md) - [@ohos.account.osAccount (系统帐号管理)](reference/apis/js-apis-osAccount.md) - 语言基础类库 - + - [@ohos.convertxml (xml转换JavaScript)](reference/apis/js-apis-convertxml.md) - [@ohos.process (获取进程相关的信息)](reference/apis/js-apis-process.md) - [@ohos.uri (URI字符串解析)](reference/apis/js-apis-uri.md) @@ -696,7 +697,7 @@ - [@ohos.application.testRunner (TestRunner)](reference/apis/js-apis-testRunner.md) - [@ohos.uitest (UiTest)](reference/apis/js-apis-uitest.md) - 已停止维护的接口 - + - [@ohos.bytrace (性能打点)](reference/apis/js-apis-bytrace.md) - [@ohos.data.storage (轻量级存储)](reference/apis/js-apis-data-storage.md) - [@system.app (应用上下文)](reference/apis/js-apis-system-app.md)