diff --git a/en/application-dev/application-dev-website.md b/en/application-dev/application-dev-website.md
index eb1f7ff92a420cf62724b8697af56d26076e7cf1..d15949228c257024e6b1505febace0c02484b320 100644
--- a/en/application-dev/application-dev-website.md
+++ b/en/application-dev/application-dev-website.md
@@ -1,25 +1,21 @@
-- [Application Development Overview](application-dev-guide.md)
+# Application Development
+- [Application Development Overview](application-dev-guide.md)
- Quick Start
- - 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)
-
+ - [Directory Structure](quick-start/package-structure.md)
+ - [Resource File Categories](quick-start/basic-resource-file-categories.md)
- Development
- [Ability Development](ability/Readme-EN.md)
- - [FA Model Overview](ability/fa-brief.md)
- - [Page Ability Development](ability/fa-pageability.md)
- - [Service Ability Development](ability/fa-serviceability.md)
- - [Data Ability Development](ability/fa-dataability.md)
- - [FA Widget Development](ability/fa-formability.md)
+ - [Ability Framework Overview](ability/ability-brief.md)
+ - FA Model
+ - [FA Model Overview](ability/fa-brief.md)
+ - [Page Ability Development](ability/fa-pageability.md)
+ - [Service Ability Development](ability/fa-serviceability.md)
+ - [Data Ability Development](ability/fa-dataability.md)
+ - [FA Widget Development](ability/fa-formability.md)
+
- Other
- [Ability Assistant Usage](ability/ability-assistant-guidelines.md)
-
- [UI](ui/Readme-EN.md)
- [ArkUI Overview](arkui-overview.md)
- JavaScript-based Web-Like Development Paradigm
@@ -135,7 +131,6 @@
- [Building a Food Category List Layout](ui/ui-ts-building-category-list-layout.md)
- [Building a Food Category Grid Layout](ui/ui-ts-building-category-grid-layout.md)
- [Implementing Page Redirection and Data Transmission](ui/ui-ts-page-redirection-data-transmission.md)
-
- Basic Functions
- Window Manager
- Window
@@ -200,6 +195,9 @@
- Sensor
- [Sensor Overview](device/sensor-overview.md)
- [Sensor Development](device/sensor-guidelines.md)
+ - Sensor
+ - [Sensor Overview](device/sensor-overview.md)
+ - [Sensor Development](device/sensor-guidelines.md)
- Vibrator
- [vibrator-Overview.md](device/vibrator-overview.md)
- [Vibrator Development](device/vibrator-guidelines.md)
@@ -216,13 +214,14 @@
- Distributed Call Chain Tracing
- [Overview of Distributed Call Chain Tracing](dfx/hitracechain-overview.md)
- [Development of Distributed Call Chain Tracing](dfx/hitracechain-guidelines.md)
-
+ - Internationalization
+ - [Overview](internationalization/international-overview.md)
+ - [Internationalization Development (intl)](internationalization/intl-guidelines.md)
+ - [Internationalization Development (i18n)](internationalization/i18n-guidelines.md)
- Tools
- [DevEco Studio (OpenHarmony) User Guide](quick-start/deveco-studio-user-guide-for-openharmony.md)
-
- Hands-On Tutorials
- [Samples](https://gitee.com/openharmony/app_samples/blob/master/README.md)
-
- API References
- Compent Reference (JavaScript-based Web-like Development Paradigm)
- Components
@@ -385,6 +384,7 @@
- [ImageAnimator](reference/arkui-ts/ts-basic-components-imageanimator.md)
- [LoadingProgress](reference/arkui-ts/ts-basic-components-loadingprogress.md)
- [Marquee](reference/arkui-ts/ts-basic-components-marquee.md)
+ - [Navigation](reference/arkui-ts/ts-basic-components-navigation.md)
- [PatternLock](reference/arkui-ts/ts-basic-components-patternlock.md)
- [PluginComponent](reference/arkui-ts/ts-basic-components-plugincomponent.md)
- [Progress](reference/arkui-ts/ts-basic-components-progress.md)
@@ -392,6 +392,7 @@
- [Radio](reference/arkui-ts/ts-basic-components-radio.md)
- [Rating](reference/arkui-ts/ts-basic-components-rating.md)
- [RichText](reference/arkui-ts/ts-basic-components-richtext.md)
+ - [ScrollBar](reference/arkui-ts/ts-basic-components-scrollbar.md)
- [Search](reference/arkui-ts/ts-basic-components-search.md)
- [Select](reference/arkui-ts/ts-basic-components-select.md)
- [Slider](reference/arkui-ts/ts-basic-components-slider.md)
@@ -420,14 +421,12 @@
- [GridItem](reference/arkui-ts/ts-container-griditem.md)
- [List](reference/arkui-ts/ts-container-list.md)
- [ListItem](reference/arkui-ts/ts-container-listitem.md)
- - [Navigator](reference/arkui-ts/ts-container-navigator.md)
- - [Navigation](reference/arkui-ts/ts-basic-components-navigation.md)
+ - [Navigator](reference/arkui-ts/ts-container-navigator.md)
- [Panel](reference/arkui-ts/ts-container-panel.md)
- [Refresh](reference/arkui-ts/ts-container-refresh.md)
- [Row](reference/arkui-ts/ts-container-row.md)
- [RowSplit](reference/arkui-ts/ts-container-rowsplit.md)
- [Scroll](reference/arkui-ts/ts-container-scroll.md)
- - [ScrollBar](reference/arkui-ts/ts-basic-components-scrollbar.md)
- [SideBarContainer](reference/arkui-ts/ts-container-sidebarcontainer.md)
- [Stack](reference/arkui-ts/ts-container-stack.md)
- [Swiper](reference/arkui-ts/ts-container-swiper.md)
@@ -474,118 +473,230 @@
- [Built-in Enums](reference/arkui-ts/ts-appendix-enums.md)
- APIs
- Ability Framework
- - [FeatureAbility Module](reference/apis/js-apis-featureAbility.md)
- - [ParticleAbility Module](reference/apis/js-apis-particleAbility.md)
- - [DataAbilityHelper Module](reference/apis/js-apis-dataAbilityHelper.md)
- - [DataUriUtils Module](reference/apis/js-apis-DataUriUtils.md)
- - [Bundle Module](reference/apis/js-apis-Bundle.md)
- - [Context Module](reference/apis/js-apis-Context.md)
- - Event Notification
- - [CommonEvent Module](reference/apis/js-apis-commonEvent.md)
- - [Notification Module](reference/apis/js-apis-notification.md)
- - [Reminder Agent](reference/apis/js-apis-reminderAgent.md)
- - Resource Management
- - [Resource Manager](reference/apis/js-apis-resource-manager.md)
- - [Internationalization (intl)](reference/apis/js-apis-intl.md)
- - [Internationalization (i18n)](reference/apis/js-apis-i18n.md)
+
+ - [@ohos.ability.dataUriUtils](reference/apis/js-apis-DataUriUtils.md)
+ - [@ohos.ability.errorCode ](reference/apis/js-apis-ability-errorcode.md)
+ - [@ohos.ability.wantConstant](reference/apis/js-apis-ability-wantConstant.md)
+ - [@ohos.application.Ability](reference/apis/js-apis-application-ability.md)
+ - [@ohos.application.AbilityConstant](reference/apis/js-apis-application-abilityConstant.md)
+ - [@ohos.application.abilityDelegatorRegistry](reference/apis/js-apis-abilityDelegatorRegistry.md)
+ - [@ohos.application.AbilityStage ](reference/apis/js-apis-application-abilitystage.md)
+ - [@ohos.application.appManager](reference/apis/js-apis-appmanager.md)
+ - [@ohos.application.Configuration](reference/apis/js-apis-configuration.md)
+ - [@ohos.application.ConfigurationConstant](reference/apis/js-apis-configurationconstant.md)
+ - [@ohos.application.DataShareExtensionAbility](reference/apis/js-apis-application-DataShareExtensionAbility.md)
+ - [@ohos.ability.featureAbility](reference/apis/js-apis-featureAbility.md)
+ - [@ohos.application.formBindingData](reference/apis/js-apis-formbindingdata.md)
+ - [@ohos.application.FormExtension](reference/apis/js-apis-formextension.md)
+ - [@ohos.application.formError](reference/apis/js-apis-formerror.md)
+ - [@ohos.application.formHost](reference/apis/js-apis-formhost.md)
+ - [@ohos.application.formInfo](reference/apis/js-apis-formInfo.md)
+ - [@ohos.application.missionManager](reference/apis/js-apis-missionManager.md)
+ - [@ohos.application.formProvider](reference/apis/js-apis-formprovider.md)
+ - [@ohos.ability.particleAbility](reference/apis/js-apis-particleAbility.md)
+ - [@ohos.application.ServiceExtensionAbility](reference/apis/js-apis-service-extension-ability.md)
+ - [@ohos.application.StartOptions](reference/apis/js-apis-application-StartOptions.md)
+ - [@ohos.application.StaticSubscriberExtensionAbility](reference/apis/js-apis-application-staticSubscriberExtensionAbility.md)
+ - [@ohos.application.uriPermissionManager](reference/apis/js-apis-uripermissionmanager.md)
+ - [@ohos.application.Want](reference/apis/js-apis-application-Want.md)
+ - [@ohos.wantAgent](reference/apis/js-apis-wantAgent.md)
+ - [dataAbilityHelper](reference/apis/js-apis-dataAbilityHelper.md)
+ - [context](reference/apis/js-apis-Context.md)
+ - [AbilityContext](reference/apis/js-apis-ability-context.md)
+ - [abilityDelegator](reference/apis/js-apis-application-abilityDelegator.md)
+ - [abilityDelegatorArgs](reference/apis/js-apis-application-abilityDelegatorArgs.md)
+ - [abilityMonitor](reference/apis/js-apis-application-abilityMonitor.md)
+ - [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)
+ - [shellCmdResult](reference/apis/js-apis-application-shellCmdResult.md)
+
+ - Common Event and Notification
+
+ - [@ohos.commonEvent](reference/apis/js-apis-commonEvent.md)
+ - [@ohos.events.emitter](reference/apis/js-apis-emitter.md)
+ - [@ohos.notification](reference/apis/js-apis-notification.md)
+ - [@ohos.reminderAgent](reference/apis/js-apis-reminderAgent.md)
+ - [EventHub](reference/apis/js-apis-eventhub.md)
+
+ - Bundle Management
+
+ - [@ohos.bundle](reference/apis/js-apis-Bundle.md)
+ - [@ohos.bundleState ](reference/apis/js-apis-deviceUsageStatistics.md)
+ - [@ohos.zlib](reference/apis/js-apis-zlib.md)
+
+ - UI Page
+
+ - [@ohos.animator](reference/apis/js-apis-animator.md)
+
+ - Graphics
+
+ - [@ohos.display ](reference/apis/js-apis-display.md)
+ - [@ohos.screenshot](reference/apis/js-apis-screenshot.md)
+ - [@ohos.window](reference/apis/js-apis-window.md)
+ - [webgl](reference/apis/js-apis-webgl.md)
+ - [webgl2](reference/apis/js-apis-webgl2.md)
+
- Media
- - [Audio Management](reference/apis/js-apis-audio.md)
- - [Media](reference/apis/js-apis-media.md)
- - [Image Processing](reference/apis/js-apis-image.md)
- - [Camera](reference/apis/js-apis-camera.md)
+
+ - [@ohos.multimedia.audio](reference/apis/js-apis-audio.md)
+ - [@ohos.multimedia.camera](reference/apis/js-apis-camera.md)
+ - [@ohos.multimedia.image](reference/apis/js-apis-image.md)
+ - [@ohos.multimedia.media](reference/apis/js-apis-media.md)
+ - [@ohos.multimedia.medialibrary](reference/apis/js-apis-medialibrary.md)
+
+ - Resource Management
+ - [@ohos.i18n](reference/apis/js-apis-i18n.md)
+ - [@ohos.intl](reference/apis/js-apis-intl.md)
+ - [@ohos.resourceManager](reference/apis/js-apis-resource-manager.md)
+
+ - Resource Scheduling
+
+ - [@ohos.backgroundTaskManager](reference/apis/js-apis-backgroundTaskManager.md)
+ - [@ohos.workScheduler ](reference/apis/js-apis-workScheduler.md)
+ - [@ohos.WorkSchedulerExtensionAbility](reference/apis/js-apis-WorkSchedulerExtensionAbility.md)
+
+ - Custom Management
+
+ - [@ohos.configPolicy](reference/apis/js-apis-config-policy.md)
+ - [@ohos.enterpriseDeviceManager](reference/apis/js-apis-enterprise-device-manager.md)
+
- Security
- - [User Authentication](reference/apis/js-apis-useriam-userauth.md)
- - [Access Control](reference/apis/js-apis-abilityAccessCtrl.md)
+
+ - [@ohos.abilityAccessCtrl](reference/apis/js-apis-abilityAccessCtrl.md)
+ - [@ohos.security.huks ](reference/apis/js-apis-huks.md)
+ - [@ohos.userIAM.userAuth ](reference/apis/js-apis-useriam-userauth.md)
+
- Data Management
- - [Lightweight Storage](reference/apis/js-apis-data-preferences.md)
- - [Distributed Data Management](reference/apis/js-apis-distributed-data.md)
- - [Relational Database](reference/apis/js-apis-data-rdb.md)
- - [Result Set](reference/apis/js-apis-data-resultset.md)
- - [DataAbilityPredicates](reference/apis/js-apis-data-ability.md)
- - [Settings](reference/apis/js-apis-settings.md)
+
+ - [@ohos.data.dataAbility ](reference/apis/js-apis-data-ability.md)
+ - [@ohos.data.distributedData](reference/apis/js-apis-distributed-data.md)
+ - [@ohos.data.distributedDataObject](reference/apis/js-apis-data-distributedobject.md)
+ - [@ohos.data.preferences](reference/apis/js-apis-data-preferences.md)
+ - [@ohos.data.rdb](reference/apis/js-apis-data-rdb.md)
+ - [@ohos.settings](reference/apis/js-apis-settings.md)
+ - [resultSet](reference/apis/js-apis-data-resultset.md)
+
- File Management
- - [File Management](reference/apis/js-apis-fileio.md)
- - [Statfs](reference/apis/js-apis-statfs.md)
- - [Environment](reference/apis/js-apis-environment.md)
- - [Public File Access and Management](reference/apis/js-apis-filemanager.md)
- - [App Storage Statistics](reference/apis/js-apis-storage-statistics.md)
- - [Volume Management](reference/apis/js-apis-volumemanager.md)
- - Account Management
- - [OS Account Management](reference/apis/js-apis-osAccount.md)
- - [Distributed Account Management](reference/apis/js-apis-distributed-account.md)
- - [App Account Management](reference/apis/js-apis-appAccount.md)
+
+ - [@ohos.environment](reference/apis/js-apis-environment.md)
+ - [@ohos.fileio](reference/apis/js-apis-fileio.md)
+ - [@ohos.fileManager](reference/apis/js-apis-filemanager.md)
+ - [@ohos.statfs](reference/apis/js-apis-statfs.md)
+ - [@ohos.storageStatistics](reference/apis/js-apis-storage-statistics.md)
+ - [@ohos.volumeManager](reference/apis/js-apis-volumemanager.md)
+
- Telephony Service
- - [Call](reference/apis/js-apis-call.md)
- - [SMS](reference/apis/js-apis-sms.md)
- - [SIM Management](reference/apis/js-apis-sim.md)
- - [Radio](reference/apis/js-apis-radio.md)
- - [Observer](reference/apis/js-apis-observer.md)
- - [Cellular Data](reference/apis/js-apis-telephony-data.md)
+
+ - [@ohos.contact](reference/apis/js-apis-contact.md)
+ - [@ohos.telephony.call](reference/apis/js-apis-call.md)
+ - [@ohos.telephony.observer](reference/apis/js-apis-observer.md)
+ - [@ohos.telephony.radio](reference/apis/js-apis-radio.md)
+ - [@ohos.telephony.sim](reference/apis/js-apis-sim.md)
+ - [@ohos.telephony.sms](reference/apis/js-apis-sms.md)
+ - [@ohos.telephony.data](reference/apis/js-apis-telephony-data.md)
+
- Network Management
- - [Network Connection Management](js-apis-net-connection.md)
- - [Socket Connection](js-apis-socket.md)
- - [WebSocket Connection](js-apis-webSocket.md)
- - [Data Request](js-apis-http.md)
- - Network and Connectivity
- - [WLAN](reference/apis/js-apis-wifi.md)
- - [Bluetooth](reference/apis/js-apis-bluetooth.md)
- - [RPC](reference/apis/js-apis-rpc.md)
- - Device Management
- - [Sensor](reference/apis/js-apis-sensor.md)
- - [Vibrator](reference/apis/js-apis-vibrator.md)
- - [Brightness](reference/apis/js-apis-brightness.md)
- - [Battery Info](reference/apis/js-apis-battery-info.md)
- - [Power Management](reference/apis/js-apis-power.md)
- - [Thermal Management](reference/apis/js-apis-thermal.md)
- - [Running Lock](reference/apis/js-apis-runninglock.md)
- - [Device Info](reference/apis/js-apis-device-info.md)
- - [systemParameter](reference/apis/js-apis-system-parameter.md)
- - [Device Management](reference/apis/js-apis-device-manager.md)
- - [Window](reference/apis/js-apis-window.md)
- - [Display](reference/apis/js-apis-display.md)
- - [Update](reference/apis/js-apis-update.md)
- - [USB](reference/apis/js-apis-usb.md)
- - [Location](reference/apis/js-apis-geolocation.md)
+ - [@ohos.net.connection](reference/apis/js-apis-net-connection.md)
+ - [@ohos.net.http](reference/apis/js-apis-http.md)
+ - [@ohos.request](reference/apis/js-apis-request.md)
+ - [@ohos.net.socket](reference/apis/js-apis-socket.md)
+ - [@ohos.net.webSocket](reference/apis/js-apis-webSocket.md)
+
+ - Connectivity
+
+ - [@ohos.bluetooth](reference/apis/js-apis-bluetooth.md)
+ - [@ohos.rpc](reference/apis/js-apis-rpc.md)
+ - [@ohos.wifi](reference/apis/js-apis-wifi.md)
+ - [@ohos.wifiext](reference/apis/js-apis-wifiext.md)
+
- Basic Features
- - [Application Context](reference/apis/js-apis-system-app.md)
- - [Console Logs](reference/apis/js-apis-logs.md)
- - [Page Routing](reference/apis/js-apis-system-router.md)
+
+ - [@ohos.accessibility](reference/apis/js-apis-accessibility.md)
+ - [@ohos.faultLogger](reference/apis/js-apis-faultLogger.md)
+ - [@ohos.hiAppEvent](reference/apis/js-apis-hiappevent.md)
+ - [@ohos.hichecker](reference/apis/js-apis-hichecker.md)
+ - [@ohos.hidebug](reference/apis/js-apis-hidebug.md)
+ - [@ohos.hilog](reference/apis/js-apis-hilog.md)
+ - [@ohos.hiTraceChain](reference/apis/js-apis-hitracechain.md)
+ - [@ohos.hiTraceMeter](reference/apis/js-apis-hitracemeter.md)
+ - [@ohos.inputMethod](reference/apis/js-apis-inputmethod.md)
+ - [@ohos.inputMethodEngine](reference/apis/js-apis-inputmethodengine.md)
+ - [@ohos.pasteboard](reference/apis/js-apis-pasteboard.md)
+ - [@ohos.screenLock](reference/apis/js-apis-screen-lock.md)
+ - [@ohos.systemTime](reference/apis/js-apis-system-time.md)
+ - [@ohos.wallpaper](reference/apis/js-apis-wallpaper.md)
- [Timer](reference/apis/js-apis-timer.md)
- - [Setting the System Time](reference/apis/js-apis-system-time.md)
- - [Animation](reference/apis/js-apis-animator.md)
- - [WebGL](reference/apis/js-apis-webgl.md)
- - [WebGL2](reference/apis/js-apis-webgl2.md)
- - [Screenshot](reference/apis/js-apis-screenshot.md)
- - [Accessibility](reference/apis/js-apis-accessibility.md)
- - DFX
- - [HiAppEvent](reference/apis/js-apis-hiappevent.md)
- - [Performance Tracing](reference/apis/js-apis-hitracemeter.md)
- - [Fault Logger](reference/apis/js-apis-faultLogger.md)
- - [Distributed Call Chain Tracing](reference/apis/js-apis-hitracechain.md)
- - [HiLog](reference/apis/js-apis-hilog.md)
- - [HiChecker](reference/apis/js-apis-hichecker.md)
- - [HiDebug](reference/apis/js-apis-hidebug.md)
+
+ - Device Management
+
+ - [@ohos.batteryInfo ](reference/apis/js-apis-battery-info.md)
+ - [@ohos.brightness](reference/apis/js-apis-brightness.md)
+ - [@ohos.deviceInfo](reference/apis/js-apis-device-info.md)
+ - [@ohos.distributedHardware.deviceManager](reference/apis/js-apis-device-manager.md)
+ - [@ohos.geolocation](reference/apis/js-apis-geolocation.md)
+ - [@ohos.multimodalInput.inputConsumer](reference/apis/js-apis-inputconsumer.md)
+ - [@ohos.multimodalInput.inputDevice](reference/apis/js-apis-inputdevice.md)
+ - [@ohos.multimodalInput.inputEventClient](reference/apis/js-apis-inputeventclient.md)
+ - [@ohos.multimodalInput.inputMonitor](reference/apis/js-apis-inputmonitor.md)
+ - [@ohos.power](reference/apis/js-apis-power.md)
+ - [@ohos.runningLock](reference/apis/js-apis-runninglock.md)
+ - [@ohos.sensor](reference/apis/js-apis-sensor.md)
+ - [@ohos.systemParameter](reference/apis/js-apis-system-parameter.md)
+ - [@ohos.thermal](reference/apis/js-apis-thermal.md)
+ - [@ohos.update](reference/apis/js-apis-update.md)
+ - [@ohos.usb](reference/apis/js-apis-usb.md)
+ - [@ohos.vibrator](reference/apis/js-apis-vibrator.md)
+
+ - Account Management
+
+ - [@ohos.account.appAccount](reference/apis/js-apis-appAccount.md)
+ - [@ohos.account.distributedAccount](reference/apis/js-apis-distributed-account.md)
+ - [@ohos.account.osAccount](reference/apis/js-apis-osAccount.md)
+
- Language Base Class Library
- - [Obtaining Process Information](reference/apis/js-apis-process.md)
- - [URL String Parsing](reference/apis/js-apis-url.md)
- - [URI String Parsing](reference/apis/js-apis-uri.md)
- - [Util](reference/apis/js-apis-util.md)
- - [XML Parsing and Generation](reference/apis/js-apis-xml.md)
- - [XML-to-JavaScript Conversion](reference/apis/js-apis-convertxml.md)
- - [Worker Startup](reference/apis/js-apis-worker.md)
- - [Linear Container ArrayList](reference/apis/js-apis-arraylist.md)
- - [Linear Container Deque](reference/apis/js-apis-deque.md)
- - [Linear Container List](reference/apis/js-apis-list.md)
- - [Linear Container LinkedList](reference/apis/js-apis-linkedlist.md)
- - [Linear Container Queue](reference/apis/js-apis-queue.md)
- - [Linear Container Stack](reference/apis/js-apis-stack.md)
- - [Linear Container Vector](reference/apis/js-apis-vector.md)
- - [Nonlinear Container HashSet](reference/apis/js-apis-hashset.md)
- - [Nonlinear Container HashMap](reference/apis/js-apis-hashmap.md)
- - [Nonlinear Container PlainArray](reference/apis/js-apis-plainarray.md)
- - [Nonlinear Container TreeMap](reference/apis/js-apis-treemap.md)
- - [Nonlinear Container TreeSet](reference/apis/js-apis-treeset.md)
- - [Nonlinear Container LightWeightMap](reference/apis/js-apis-lightweightmap.md)
- - [Nonlinear Container LightWeightSet](reference/apis/js-apis-lightweightset.md)
- - Custom Management
- - [Configuration Policy](reference/apis/js-apis-config-policy.md)
+
+ - [@ohos.convertxml](reference/apis/js-apis-convertxml.md)
+ - [@ohos.process](reference/apis/js-apis-process.md)
+ - [@ohos.uri](reference/apis/js-apis-uri.md)
+ - [@ohos.url](reference/apis/js-apis-url.md)
+ - [@ohos.util](reference/apis/js-apis-util.md)
+ - [@ohos.util.ArrayList](reference/apis/js-apis-arraylist.md)
+ - [@ohos.util.Deque](reference/apis/js-apis-deque.md)
+ - [@ohos.util.HashMap](reference/apis/js-apis-hashmap.md)
+ - [@ohos.util.HashSet](reference/apis/js-apis-hashset.md)
+ - [@ohos.util.LightWeightMap](reference/apis/js-apis-lightweightmap.md)
+ - [@ohos.util.LightWeightSet](reference/apis/js-apis-lightweightset.md)
+ - [@ohos.util.LinkedList](reference/apis/js-apis-linkedlist.md)
+ - [@ohos.util.List](reference/apis/js-apis-list.md)
+ - [@ohos.util.PlainArray](reference/apis/js-apis-plainarray.md)
+ - [@ohos.util.Queue](reference/apis/js-apis-queue.md)
+ - [@ohos.util.Stack](reference/apis/js-apis-stack.md)
+ - [@ohos.util.TreeMap](reference/apis/js-apis-treemap.md)
+ - [@ohos.util.TreeSet](reference/apis/js-apis-treeset.md)
+ - [@ohos.util.Vector](reference/apis/js-apis-vector.md)
+ - [@ohos.worker](reference/apis/js-apis-worker.md)
+ - [@ohos.xml](reference/apis/js-apis-xml.md)
+
+ - Test
+ - [@ohos.application.testRunner](reference/apis/js-apis-testRunner.md)
+ - [@ohos.uitest](reference/apis/js-apis-uitest.md)
+
+ - APIs No Longer Maintained
+
+ - [@ohos.bytrace](reference/apis/js-apis-bytrace.md)
+ - [@ohos.data.storage](reference/apis/js-apis-data-storage.md)
+ - [@system.app](reference/apis/js-apis-system-app.md)
+ - [@system.bluetooth](reference/apis/js-apis-system-bluetooth.md)
+ - [@system.mediaquery](reference/apis/js-apis-system-mediaquery.md)
+ - [@system.router](reference/apis/js-apis-system-router.md)
+ - [@system.sensor](reference/apis/js-apis-system-sensor.md)
+ - [@system.vibrator](reference/apis/js-apis-system-vibrate.md)
+ - [console](reference/apis/js-apis-logs.md)
\ No newline at end of file
diff --git a/en/application-dev/device/sensor-overview.md b/en/application-dev/device/sensor-overview.md
index ea75d0b5dfc4a0611d118d5ddb9fbbaac1345bc5..c45dd69eea4372c41a1d5f1dbf93de14e4b40ea5 100644
--- a/en/application-dev/device/sensor-overview.md
+++ b/en/application-dev/device/sensor-overview.md
@@ -1,88 +1,43 @@
# Sensor Overview
-Sensors in OpenHarmony are an abstraction of underlying hardware-based sensors. Your application can access the underlying sensors via OpenHarmony sensors. Using the APIs provided by OpenHarmony sensors, you can query sensors on your device, subscribe to sensor data, customize algorithms based on sensor data, and develop various sensor-based applications, such as compass, fitness and health, and games applications.
+Sensors in OpenHarmony are an abstraction of underlying hardware-based sensors. Your application can access the underlying sensors via the sensors. Using the APIs provided by sensors, you can query sensors on your device, subscribe to sensor data, customize algorithms based on sensor data, and develop various sensor-based applications, such as compass, fitness and health, and games applications.
-The sensors are classified into the following categories based on their functions: motion, environment, orientation, light, body, and other categories (such as Hall effect sensors). Each category includes different sensor types. A sensor type may be a single physical sensor or a composite of multiple physical sensors.
+A sensor is a device to detect events or changes in an environment and send messages about the events or changes to another device (for example, a CPU). Generally, a sensor is composed of sensitive components and conversion components. Sensors are the cornerstone of the IoT. A unified sensor management framework is required to achieve data sensing at a low latency and low power consumption, thereby keeping up with requirements of "1+8+N" products or business in the Seamless AI Life Strategy. The sensor list is as follows:
+| Sensor Type | Sensor Name | Description | Usage |
+| --------------------------------------- | ------------------ | ------------------------------------------------------------ | ---------------------------------------- |
+| SENSOR_TYPE_ACCELEROMETER | Acceleration sensor | Measures the acceleration (including the gravity acceleration) applied to a device on three physical axes (X, Y, and Z), in the unit of m/s2.| Detecting the motion status |
+| SENSOR_TYPE_ACCELEROMETER_UNCALIBRATED | Uncalibrated acceleration sensor| Measures the uncalibrated acceleration (including the gravity acceleration) applied to a device on three physical axes (X, Y, and Z), in the unit of m/s2.| Measuring the acceleration bias estimation |
+| SENSOR_TYPE_LINEAR_ACCELERATION | Linear acceleration sensor | Measures the linear acceleration (excluding the gravity acceleration) applied to a device on three physical axes (X, Y, and Z), in the unit of m/s2.| Detecting the linear acceleration in each axis |
+| SENSOR_TYPE_GRAVITY | Gravity sensor | Measures the gravity acceleration applied to a device on three physical axes (X, Y, and Z), in the unit of m/s2.| Measuring the gravity |
+| SENSOR_TYPE_GYROSCOPE | Gyroscope sensor | Measures the rotation angular velocity of a device on three physical axes (X, Y, and Z), in the unit of rad/s.| Measuring the rotation angular velocity |
+| SENSOR_TYPE_GYROSCOPE_UNCALIBRATED | Uncalibrated gyroscope sensor| Measures the uncalibrated rotation angular velocity of a device on three physical axes (X, Y, and Z), in the unit of rad/s.| Measuring the bias estimation of the rotation angular velocity |
+| SENSOR_TYPE_SIGNIFICANT_MOTION | Significant motion sensor | Checks whether a device has a significant motion on three physical axes (X, Y, and Z). The value **0** means that the device does not have a significant motion, and **1** means the opposite.| Detecting significant motions of a device |
+| SENSOR_TYPE_PEDOMETER_DETECTION | Pedometer detection sensor | Detects whether a user takes a step. The value can be **0** (the user does not take a step) or **1** (the user takes a step).| Detecting whether a user takes a step |
+| SENSOR_TYPE_PEDOMETER | Pedometer sensor | Records the number of steps a user has walked. | Providing the number of steps a user has walked |
+| SENSOR_TYPE_AMBIENT_TEMPERATURE | Ambient temperature sensor | Measures the ambient temperature, in the unit of degree Celsius (°C). | Measuring the ambient temperature |
+| SENSOR_TYPE_MAGNETIC_FIELD | Magnetic field sensor | Measures the magnetic field on three physical axes (X, Y, and Z), in the unit of μT.| Creating a compass |
+| SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED | Uncalibrated magnetic field sensor | Measures the uncalibrated magnetic field on three physical axes (X, Y, and Z), in the unit of μT.| Measuring the magnetic field bias estimation |
+| SENSOR_TYPE_HUMIDITY | Humidity sensor | Measures the ambient relative humidity, in a percentage (%). | Monitoring the dew point, absolute humidity, and relative humidity |
+| SENSOR_TYPE_BAROMETER | Barometer sensor | Measures the barometric pressure, in the unit of hPa or mbar. | Measuring the barometric pressure |
+| SENSOR_TYPE_ORIENTATION | Orientation sensor | Measures the rotation angles of a device on three physical axes (X, Y, and Z), in the unit of rad.| Providing the three orientation angles of the screen |
+| SENSOR_TYPE_ROTATION_VECTOR | Rotation vector sensor | Measures the rotation vector of a device. It is a composite sensor that generates data from the acceleration sensor, magnetic field sensor, and gyroscope sensor.| Detecting the orientation of a device in the East, North, Up (ENU) Cartesian coordinate system |
+| SENSOR_TYPE_PROXIMITY | Proximity sensor | Measures the distance between a visible object and the device screen. | Measuring the distance between a person and the device during a call |
+| SENSOR_TYPE_AMBIENT_LIGHT | Ambient light sensor | Measures the ambient light intensity of a device, in the unit of lux. | Automatically adjusting the screen brightness and checking whether the screen is covered on the top|
+| SENSOR_TYPE_HEART_RATE | Heart rate sensor | Measures the heart rate of a user. | Providing users' heart rate data |
+| SENSOR_TYPE_WEAR_DETECTION | Wear detection sensor | Checks whether a user is wearing a wearable device. | Detecting wearables |
+| SENSOR_TYPE_HALL | Hall effect sensor | Detects a magnetic field around a device. | Smart cover mode of the device |
- **Table1** Motion - ohos.sensor.agent.CategoryMotionAgent
-| Sensor Type | Sensor Name | Description | Usage |
-| -------- | -------- | -------- | -------- |
-| SENSOR_TYPE_ACCELEROMETER | Acceleration sensor | Measures the acceleration (including the gravity acceleration) applied to a device on three physical axes (X, Y, and Z), in the unit of m/s2. | Detecting the motion status |
-| SENSOR_TYPE_ACCELEROMETER_UNCALIBRATED | Uncalibrated acceleration sensor | Measures the uncalibrated acceleration (including the gravity acceleration) applied to a device on three physical axes (X, Y, and Z), in the unit of m/s2. | Measuring the acceleration bias estimation |
-| SENSOR_TYPE_LINEAR_ACCELERATION | Linear acceleration sensor | Measures the linear acceleration (excluding the gravity acceleration) applied to a device on three physical axes (X, Y, and Z), in the unit of m/s2. | Detecting the linear acceleration in each axis |
-| SENSOR_TYPE_GRAVITY | Gravity sensor | Measures the gravity acceleration applied to a device on three physical axes (X, Y, and Z), in the unit of m/s2. | Measuring the gravity |
-| SENSOR_TYPE_GYROSCOPE | Gyroscope sensor | Measures the rotation angular velocity of a device on three physical axes (X, Y, and Z), in the unit of rad/s. | Measuring the rotation angular velocity |
-| SENSOR_TYPE_GYROSCOPE_UNCALIBRATED | Uncalibrated gyroscope sensor | Measures the uncalibrated rotation angular velocity of a device on three physical axes (X, Y, and Z), in the unit of rad/s. | Measuring the bias estimation of the rotation angular velocity |
-| SENSOR_TYPE_SIGNIFICANT_MOTION | Significant motion sensor | Checks whether a device has a significant motion on three physical axes (X, Y, and Z). The value can be **0** (having no significant motion) or **1** (having a significant motion). | Detecting significant motions of a device |
-| SENSOR_TYPE_DROP_DETECTION | Drop detection sensor | Detects the device drop status. The value can be **0** (the device is not dropped) or **1** (the device is dropped). | Detecting whether a device is dropped |
-| SENSOR_TYPE_PEDOMETER_DETECTION | Pedometer detection sensor | Detects whether a user takes a step. The value can be **0** (the user does not take a step) or **1** (the user takes a step). | Detecting whether a user takes a step |
-| SENSOR_TYPE_PEDOMETER | Pedometer sensor | Records the number of steps a user has walked. | Providing the number of steps a user has walked |
+## Working Principles
+The following modules work cooperatively to implement OpenHarmony sensors: Sensor API, Sensor Framework, Sensor Service, and HDF layer.
- **Table2** Environment - ohos.sensor.agent.CategoryOrientationAgent
+ **Figure 1** How the sensor works
-| Sensor Type | Sensor Name | Description | Usage |
-| -------- | -------- | -------- | -------- |
-| SENSOR_TYPE_AMBIENT_TEMPERATURE | Ambient temperature sensor. | Measures the ambient temperature, in the unit of degree Celsius (°C). | Measuring the ambient temperature |
-| SENSOR_TYPE_MAGNETIC_FIELD | Magnetic field sensor | Measures the magnetic field on three physical axes (X, Y, and Z), in the unit of μT. | Creating a compass |
-| SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED | Uncalibrated magnetic field sensor | Measures the uncalibrated magnetic field on three physical axes (X, Y, and Z), in the unit of μT. | Measuring the magnetic field bias estimation |
-| SENSOR_TYPE_HUMIDITY | Humidity sensor | Measures the ambient relative humidity, in a percentage (%). | Monitoring the dew point, absolute humidity, and relative humidity |
-| SENSOR_TYPE_BAROMETER | Barometer sensor | Measures the barometric pressure, in the unit of hPa or mbar. | Measuring the barometric pressure |
-| SENSOR_TYPE_SAR | Specific Absorption Rate (SAR) sensor | Measures the SAR, in the unit of W/kg. | Measuring the SAR of electromagnetic waves for a device |
-
-
- **Table3** Orientation - ohos.sensor.agent.CategoryOrientationAgent
-
-| Sensor Type | Sensor Name | Description | Usage |
-| -------- | -------- | -------- | -------- |
-| SENSOR_TYPE_6DOF | Degrees of Freedom (DoF) sensor | Measures the forward/backward, up/down, and left/right translational movement of a device on the three axes (X, Y, and Z) in the unit of m or mm as well as the roll, pitch, and yaw rotation angles on the three axes (X, Y, and Z) in the unit of rad. | Positioning an object by detecting its freedom of translational and rotational motions, for example, VR |
-| SENSOR_TYPE_SCREEN_ROTATION | Screen rotation sensor | Checks the rotation status of the device screen. | Detecting whether the device screen is rotating |
-| SENSOR_TYPE_DEVICE_ORIENTATION | Device orientation sensor | Measures the rotation angles of the device, in the unit of rad. | Measuring the angles that a device has rotated |
-| SENSOR_TYPE_ORIENTATION | Orientation sensor | Measures the rotation angles of a device on three physical axes (X, Y, and Z), in the unit of rad. | Providing the three orientation angles of the screen |
-| SENSOR_TYPE_ROTATION_VECTOR | Rotation vector sensor | Measures the rotation vector of a device. It is a composite sensor that generates data from the acceleration sensor, magnetic field sensor, and gyroscope sensor. | Detecting the orientation of a device in the East, North, Up (ENU) Cartesian coordinate system |
-| SENSOR_TYPE_GAME_ROTATION_VECTOR SENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR | Game rotation vector sensor Geomagnetic rotation vector sensor | Measures the game rotation vector of a device. It is a composite sensor that generates data from the acceleration sensor and gyroscope sensor. Measures the geomagnetic rotation vector of a device. It is a composite sensor that generates data from the acceleration sensor and magnetic field sensor. | Applied in games Measuring the geomagnetic rotation vector |
-
-
- **Table4** Light - ohos.sensor.agent.CategoryLightAgent
-
-| Sensor Type | Sensor Name | Description | Usage |
-| -------- | -------- | -------- | -------- |
-| SENSOR_TYPE_PROXIMITY | Proximity sensor | Measures the distance between a visible object and the device screen. | Measuring the distance between a person and the device during a call |
-| SENSOR_TYPE_TOF | Time of flight (ToF) sensor | Measures the time required for light to travel a distance in the medium. | Facial recognition |
-| SENSOR_TYPE_AMBIENT_LIGHT | Ambient light sensor | Measures the ambient light intensity of a device, in the unit of lux. | Automatically adjusting the screen brightness and checking whether the screen is covered on the top |
-| SENSOR_TYPE_COLOR_TEMPERATURE | Color temperature sensor | Measures the ambient color temperature. | Image processing on the device |
-| SENSOR_TYPE_COLOR_RGB | RGB color sensor | Measures the ambient RGB color values. | Color detection implemented by the reflectance of RGB colors |
-| SENSOR_TYPE_COLOR_XYZ | XYZ color sensor | Measures the ambient XYZ color values. | Identifying true-color spots to reproduce more natural colors |
-
-
- **Table5** Body - ohos.sensor.agent.CategoryBodyAgent
-
-| Sensor Type | Sensor Name | Description | Usage |
-| -------- | -------- | -------- | -------- |
-| SENSOR_TYPE_HEART_RATE | Heart rate sensor | Measures the heart rate of a user. | Providing users' heart rate data |
-| SENSOR_TYPE_WEAR_DETECTION | Wear detection sensor | Checks whether a user is wearing a wearable device. | Detecting wearables |
-
-
- **Table6** Others
-
-| Sensor Type | Sensor Name | Description | Usage |
-| -------- | -------- | -------- | -------- |
-| SENSOR_TYPE_HALL | Hall effect sensor | Detects a magnetic field around a device. | Smart cover mode of the device |
-| SENSOR_TYPE_GRIP_DETECTOR | Grip detection sensor | Detects grip force applied on a device. | Detecting whether the device is gripped on its sides |
-| SENSOR_TYPE_MAGNET_BRACKET | Magnet bracket sensor | Checks whether a device is magnetized. | Detecting an in-vehicle or indoor device |
-| SENSOR_TYPE_PRESSURE_DETECTOR | Pressure detection sensor | Detects pressure force applied on a device. | Detecting pressure on the top of the device |
-
-
-## How a Service Is Shared Using Huawei Share
-
-The following modules work cooperatively to implement OpenHarmony sensors: Sensor API, Sensor Framework, Sensor Service, and HD_IDL.
-
- **Figure1** Working principles for OpenHarmony sensors
- 
+
- Sensor API: provides APIs for performing basic operations on sensors, including querying the sensor list, subscribing to or unsubscribing from sensor data, and executing control commands. This module makes application development simpler.
@@ -90,22 +45,22 @@ The following modules work cooperatively to implement OpenHarmony sensors: Senso
- Sensor Service: interacts with the HD_IDL module to receive, parse, and distribute data, manages foreground and background policies and sensors of a device, and controls sensor permissions.
-- HD_IDL: selects proper policies based on the hardware first in first out (FIFO) and frequency, and adapts to different devices.
+- HDF layer: selects proper policies based on the hardware first in first out (FIFO) and frequency, and adapts to different devices.
-## Limitations and Constraints
+## Constraints
-To obtain data of the following sensors, you must claim the required permissions.
+1. To obtain data of the following sensors, you must claim the required permissions.
+ Table 7 Sensor data permissions
- **Table7** Sensor data permission
+ | Sensor | Permission | Sensitivity | Permission Description |
+ | ------------------------- | -------------------------------- | ------------ | ----------------------- |
+ | Acceleration sensor, uncalibrated acceleration sensor, and linear acceleration sensor| ohos.permission.ACCELEROMETER | system_grant | Allows your application to subscribe to data of these acceleration-related sensors in the motion category.|
+ | Gyroscope sensor and uncalibrated gyroscope sensor | ohos.permission.GYROSCOPE | system_grant | Allows an application to subscribe to data of the gyroscope-related sensors in the motion category.|
+ | Pedometer sensor | ohos.permission.ACTIVITY_MOTION | user_grant | Allows an application to subscribe to the motion status. |
+ | Heart rate sensor | ohos.permission.READ_HEALTH_DATA | user_grant | Allows an application to read health data. |
-| Sensor | Permission Name | Sensitivity | Permission Description |
-| -------- | -------- | -------- | -------- |
-| Acceleration sensor, uncalibrated acceleration sensor, and linear acceleration sensor | ohos.permission.ACCELEROMETER | system_grant | Allows your application to subscribe to data of these acceleration-related sensors in the motion category. |
-| Gyroscope sensor and uncalibrated gyroscope sensor | ohos.permission.GYROSCOPE | system_grant | Allows your application to subscribe to data of these gyroscope-related sensors in the motion category. |
-| Pedometer sensor | ohos.permission.ACTIVITY_MOTION | user_grant | Allows your application to subscribe to the motion status. |
-| Heart rate sensor | ohos.permission.READ_HEALTH_DATA | user_grant | Allows your application to read health data. |
-The APIs for subscribing to and unsubscribing from sensor data work in pairs. If you do not need sensor data, call the unsubscription API to stop sensor data reporting.
+2. The APIs for subscribing to and unsubscribing from sensor data work in pairs. If you do not need sensor data, call the unsubscription API to stop sensor data reporting.
diff --git a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md
index cec4fab99d6e078c65937a10e8825f0844445c29..7787a551160a0afdb84af786ef1efd133a078bf6 100644
--- a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md
+++ b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md
@@ -22,15 +22,15 @@ The default duration of delayed suspension is 180000 when the battery level is h
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask
**Parameters**
- | Name| Type| Mandatory| Description|
- | -------- | -------- | -------- | -------- |
- | reason | string | Yes| Reason for delayed transition to the suspended state.|
- | callback | Callback<void> | Yes| Invoked when a delay is about to time out. Generally, this callback is used to notify the application 6 seconds before the delay times out.|
+| Name | Type | Mandatory | Description |
+| -------- | -------------------- | --------- | ---------------------------------------- |
+| reason | string | Yes | Reason for delayed transition to the suspended state. |
+| callback | Callback<void> | Yes | Invoked when a delay is about to time out. Generally, this callback is used to notify the application 6 seconds before the delay times out. |
**Return value**
- | Type| Description|
- | -------- | -------- |
- | [DelaySuspendInfo](#delaysuspendinfo) | Information about the suspension delay.|
+| Type | Description |
+| ------------------------------------- | --------------------------------------- |
+| [DelaySuspendInfo](#delaysuspendinfo) | Information about the suspension delay. |
**Example**
```js
@@ -50,12 +50,13 @@ Obtains the remaining duration before the application is suspended. This API use
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask
**Parameters**
- | Name| Type| Mandatory| Description|
- | -------- | -------- | -------- | -------- |
- | requestId | number | Yes| ID of the suspension delay request.|
- | callback | AsyncCallback<number> | Yes| Callback used to return the remaining duration before the application is suspended, in milliseconds.|
+| Name | Type | Mandatory | Description |
+| --------- | --------------------------- | --------- | ---------------------------------------- |
+| requestId | number | Yes | ID of the suspension delay request. |
+| callback | AsyncCallback<number> | Yes | Callback used to return the remaining duration before the application is suspended, in milliseconds. |
**Example**
+
```js
let id = 1;
backgroundTaskManager.getRemainingDelayTime(id, (err, res) => {
@@ -77,14 +78,14 @@ Obtains the remaining duration before the application is suspended. This API use
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask
**Parameters**
- | Name| Type| Mandatory| Description|
- | -------- | -------- | -------- | -------- |
- | requestId | number | Yes| ID of the suspension delay request.|
+| Name | Type | Mandatory | Description |
+| --------- | ------ | --------- | ----------------------------------- |
+| requestId | number | Yes | ID of the suspension delay request. |
**Return value**
- | Type| Description|
- | -------- | -------- |
- | Promise<number> | Promise used to return the remaining duration before the application is suspended, in milliseconds.|
+| Type | Description |
+| --------------------- | ---------------------------------------- |
+| Promise<number> | Promise used to return the remaining duration before the application is suspended, in milliseconds. |
**Example**
```js
@@ -106,9 +107,9 @@ Cancels the suspension delay.
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask
**Parameters**
- | Name| Type| Mandatory| Description|
- | -------- | -------- | -------- | -------- |
- | requestId | number | Yes| ID of the suspension delay request.|
+| Name | Type | Mandatory | Description |
+| --------- | ------ | --------- | ----------------------------------- |
+| requestId | number | Yes | ID of the suspension delay request. |
**Example**
```js
@@ -127,12 +128,12 @@ Requests a continuous task from the system. This API uses an asynchronous callba
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask
**Parameters**
- | Name| Type| Mandatory| Description|
- | -------- | -------- | -------- | -------- |
- | context | [Context](js-apis-Context.md) | Yes| Application context.|
- | bgMode | [BackgroundMode](#backgroundmode8) | Yes| Background mode requested.|
- | wantAgent | [WantAgent](js-apis-notification.md#WantAgent)| Yes| Notification parameter, which is used to specify the target page that is redirected to when a continuous task notification is clicked.|
- | callback | AsyncCallback<void> | Yes| Callback used to return the result.|
+| Name | Type | Mandatory | Description |
+| --------- | ---------------------------------- | --------- | ---------------------------------------- |
+| context | [Context](js-apis-Context.md) | Yes | Application context. |
+| bgMode | [BackgroundMode](#backgroundmode8) | Yes | Background mode requested. |
+| wantAgent | [WantAgent](js-apis-wantAgent.md) | Yes | Notification parameter, which is used to specify the target page that is redirected to when a continuous task notification is clicked. |
+| callback | AsyncCallback<void> | Yes | Callback used to return the result. |
**Example**
```js
@@ -178,17 +179,17 @@ Requests a continuous task from the system. This API uses a promise to return th
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask
**Parameters**
-
- | Name| Type| Mandatory| Description|
- | -------- | -------- | -------- | -------- |
- | context | [Context](js-apis-Context.md) | Yes| Application context.|
- | bgMode | [BackgroundMode](#backgroundmode8) | Yes| Background mode requested.|
- | wantAgent | [WantAgent](js-apis-notification.md#WantAgent)| Yes| Notification parameter, which is used to specify the target page when a continuous task notification is clicked.|
-
+
+| Name | Type | Mandatory | Description |
+| --------- | ---------------------------------- | --------- | ---------------------------------------- |
+| context | [Context](js-apis-Context.md) | Yes | Application context. |
+| bgMode | [BackgroundMode](#backgroundmode8) | Yes | Background mode requested. |
+| wantAgent | [WantAgent](js-apis-wantAgent.md) | Yes | Notification parameter, which is used to specify the target page when a continuous task notification is clicked. |
+
**Return value**
- | Type | Description |
- | -------------- | ------------------------- |
- | Promise\ | Promise used to return the result.|
+| Type | Description |
+| -------------- | ---------------------------------- |
+| Promise\ | Promise used to return the result. |
**Example**
```js
@@ -225,15 +226,13 @@ stopBackgroundRunning(context: Context, callback: AsyncCallback<void>): vo
Requests to cancel a continuous task. This API uses an asynchronous callback to return the result.
-**Required permissions**: ohos.permission.KEEP_BACKGROUND_RUNNING
-
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask
**Parameters**
- | Name| Type| Mandatory| Description|
- | -------- | -------- | -------- | -------- |
- | context | [Context](js-apis-Context.md) | Yes| Application context.|
- | callback | AsyncCallback<void> | Yes| Callback used to return the result.|
+| Name | Type | Mandatory | Description |
+| -------- | ----------------------------- | --------- | ----------------------------------- |
+| context | [Context](js-apis-Context.md) | Yes | Application context. |
+| callback | AsyncCallback<void> | Yes | Callback used to return the result. |
**Example**
```js
@@ -258,19 +257,17 @@ stopBackgroundRunning(context: Context): Promise<void>
Requests to cancel a continuous task. This API uses a promise to return the result.
-**Required permissions**: ohos.permission.KEEP_BACKGROUND_RUNNING
-
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask
**Parameters**
- | Name| Type| Mandatory| Description|
- | -------- | -------- | -------- | -------- |
- | context | [Context](js-apis-Context.md) | Yes| Application context.|
+| Name | Type | Mandatory | Description |
+| ------- | ----------------------------- | --------- | -------------------- |
+| context | [Context](js-apis-Context.md) | Yes | Application context. |
**Return value**
- | Type | Description |
- | -------------- | ------------------------- |
- | Promise\ | Promise used to return the result.|
+| Type | Description |
+| -------------- | ---------------------------------- |
+| Promise\ | Promise used to return the result. |
**Example**
```js
@@ -291,24 +288,24 @@ Provides the information about the suspension delay.
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| requestId | number | Yes| ID of the suspension delay request.|
-| actualDelayTime | number | Yes| Actual suspension delay duration of the application, in milliseconds. The default duration is 180000 when the battery level is higher than or equal to the broadcast low battery level and 60000 when the battery level is lower than the broadcast low battery level.|
+| Name | Type | Mandatory | Description |
+| --------------- | ------ | --------- | ---------------------------------------- |
+| requestId | number | Yes | ID of the suspension delay request. |
+| actualDelayTime | number | Yes | Actual suspension delay duration of the application, in milliseconds. The default duration is 180000 when the battery level is higher than or equal to the broadcast low battery level and 60000 when the battery level is lower than the broadcast low battery level. |
## BackgroundMode8+
**System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask
-| Name | Value| Description|
-| ----------------------- | -------- | -------- |
-| DATA_TRANSFER | 1 | Data transfer.|
-| AUDIO_PLAYBACK | 2 | Audio playback.|
-| AUDIO_RECORDING | 3 | Audio recording.|
-| LOCATION | 4 | Positioning and navigation.|
-| BLUETOOTH_INTERACTION | 5 | Bluetooth-related task.|
-| MULTI_DEVICE_CONNECTION | 6 | Multi-device connection.|
-| WIFI_INTERACTION | 7 | WLAN-related (reserved).|
-| VOIP | 8 | Voice and video call (reserved).|
-| TASK_KEEPING | 9 | Computing task (for PC only).|
+| Name | Value | Description |
+| ----------------------- | ----- | -------------------------------- |
+| DATA_TRANSFER | 1 | Data transfer. |
+| AUDIO_PLAYBACK | 2 | Audio playback. |
+| AUDIO_RECORDING | 3 | Audio recording. |
+| LOCATION | 4 | Positioning and navigation. |
+| BLUETOOTH_INTERACTION | 5 | Bluetooth-related task. |
+| MULTI_DEVICE_CONNECTION | 6 | Multi-device connection. |
+| WIFI_INTERACTION | 7 | WLAN-related (reserved). |
+| VOIP | 8 | Voice and video call (reserved). |
+| TASK_KEEPING | 9 | Computing task. |
diff --git a/en/application-dev/reference/apis/js-apis-system-sensor.md b/en/application-dev/reference/apis/js-apis-system-sensor.md
index 9ed5217402da967c4557d220c14e3c2bfc0c7076..e8c267f0b0b0d584013882632f71f7faa88ed4b7 100644
--- a/en/application-dev/reference/apis/js-apis-system-sensor.md
+++ b/en/application-dev/reference/apis/js-apis-system-sensor.md
@@ -17,9 +17,9 @@ import sensor from '@system.sensor';
## Error Codes
- | Error Code| Description|
-| -------- | -------- |
-| 900 | The current device does not support the corresponding sensor.|
+| Error Code | Description |
+| ---------- | ---------------------------------------- |
+| 900 | The current device does not support the corresponding sensor. |
## sensor.subscribeAccelerometer
@@ -33,19 +33,19 @@ Subscribes to data changes of the acceleration sensor. If this API is called mul
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| interval | string | Yes| Execution frequency of the callback for returning the acceleration sensor data. The default value is **normal**. The options are as follows: - **game**: called at an interval of 20 ms, which is applicable to gaming scenarios. - **ui**: called at an interval of 60 ms, which is applicable to UI updating scenarios. - **normal**: called at an interval of 200 ms, which is applicable to power-saving scenarios.|
-| success | Function | Yes| Called when the acceleration sensor data changes.|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| -------- | -------- | --------- | ---------------------------------------- |
+| interval | string | Yes | Execution frequency of the callback for returning the acceleration sensor data. The default value is **normal**. The options are as follows: - **game**: called at an interval of 20 ms, which is applicable to gaming scenarios. - **ui**: called at an interval of 60 ms, which is applicable to UI updating scenarios. - **normal**: called at an interval of 200 ms, which is applicable to power-saving scenarios. |
+| success | Function | Yes | Called when the acceleration sensor data changes. |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| x | number | Acceleration on the x-axis.|
-| y | number | Acceleration on the y-axis.|
-| z | number | Acceleration on the z-axis.|
+| Name | Type | Description |
+| ---- | ------ | --------------------------- |
+| x | number | Acceleration on the x-axis. |
+| y | number | Acceleration on the y-axis. |
+| z | number | Acceleration on the z-axis. |
**Example**
@@ -92,16 +92,16 @@ Subscribes to data changes of the compass sensor. If this API is called multiple
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| success | Function | Yes| Called when the compass sensor data changes.|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| ------- | -------- | --------- | ---------------------------------------- |
+| success | Function | Yes | Called when the compass sensor data changes. |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| direction | number | Direction of the device, in degrees.|
+| Name | Type | Description |
+| --------- | ------ | ------------------------------------ |
+| direction | number | Direction of the device, in degrees. |
**Example**
@@ -143,16 +143,16 @@ Subscribes to data changes of the proximity sensor. If this API is called multip
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| success | Function | Yes| Called when the proximity sensor data changes.|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| ------- | -------- | --------- | ---------------------------------------- |
+| success | Function | Yes | Called when the proximity sensor data changes. |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| distance | number | Distance between a visible object and the device screen.|
+| Name | Type | Description |
+| -------- | ------ | ---------------------------------------- |
+| distance | number | Distance between a visible object and the device screen. |
**Example**
@@ -194,16 +194,16 @@ Subscribes to data changes of the ambient light sensor. If this API is called mu
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| success | Function | Yes| Called when the ambient light sensor data changes|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| ------- | -------- | --------- | ---------------------------------------- |
+| success | Function | Yes | Called when the ambient light sensor data changes |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| intensity | number | Light intensity, in lux.|
+| Name | Type | Description |
+| --------- | ------ | ------------------------ |
+| intensity | number | Light intensity, in lux. |
**Example**
@@ -247,16 +247,16 @@ Subscribes to data changes of the step counter sensor. If this API is called mul
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| success | Function | Yes| Called when the step counter sensor data changes.|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| ------- | -------- | --------- | ---------------------------------------- |
+| success | Function | Yes | Called when the step counter sensor data changes. |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| steps | number | Number of counted steps after the sensor is restarted. |
+| Name | Type | Description |
+| ----- | ------ | ---------------------------------------- |
+| steps | number | Number of counted steps after the sensor is restarted. |
**Example**
@@ -301,16 +301,16 @@ Subscribes to data changes of the barometer sensor. If this API is called multip
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| success | Function | Yes| Called when the barometer sensor data changes.|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| ------- | -------- | --------- | ---------------------------------------- |
+| success | Function | Yes | Called when the barometer sensor data changes. |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| pressure | number | Pressure, in pascal.|
+| Name | Type | Description |
+| -------- | ------ | -------------------- |
+| pressure | number | Pressure, in pascal. |
**Example**
@@ -356,16 +356,16 @@ Subscribes to data changes of the heart rate sensor. If this API is called multi
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| success | Function | Yes| Called when the heart rate sensor data changes. This callback is invoked every five seconds.|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| ------- | -------- | --------- | ---------------------------------------- |
+| success | Function | Yes | Called when the heart rate sensor data changes. This callback is invoked every five seconds. |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| heartRate | number | Heart rate.|
+| Name | Type | Description |
+| --------- | ------ | ----------- |
+| heartRate | number | Heart rate. |
**Example**
@@ -410,16 +410,16 @@ Subscribes to changes of the wearing state of a wearable device. If this API is
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| success | Function | Yes| Called when the wearing state changes.|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| ------- | -------- | --------- | -------------------------------------- |
+| success | Function | Yes | Called when the wearing state changes. |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| value | boolean | Whether the wearable device is worn.|
+| Name | Type | Description |
+| ----- | ------- | ------------------------------------ |
+| value | boolean | Whether the wearable device is worn. |
**Example**
@@ -461,17 +461,17 @@ Obtains the wearing state of a wearable device.
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| success | Function | No| Callback upon success.|
-| fail | Function | No| Callback upon failure.|
-| complete | Function | No| Called when the execution is complete.|
+| Name | Type | Mandatory | Description |
+| -------- | -------- | --------- | -------------------------------------- |
+| success | Function | No | Callback upon success. |
+| fail | Function | No | Callback upon failure. |
+| complete | Function | No | Called when the execution is complete. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| value | boolean | Whether the wearable device is worn.|
+| Name | Type | Description |
+| ----- | ------- | ------------------------------------ |
+| value | boolean | Whether the wearable device is worn. |
**Example**
@@ -498,18 +498,18 @@ If this API is called multiple times for the same application, the last call tak
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| interval | string | Yes| Interval at which the callback is invoked to return the device orientation sensor data. The default value is **normal**. The options are as follows: - **game**: called at an interval of 20 ms, which is applicable to gaming scenarios. - **ui**: called at an interval of 60 ms, which is applicable to UI updating scenarios. - **normal**: called at an interval of 200 ms, which is applicable to power-saving scenarios.|
-| success | Function | Yes| Called when the device orientation sensor data changes.|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| -------- | -------- | --------- | ---------------------------------------- |
+| interval | string | Yes | Interval at which the callback is invoked to return the device orientation sensor data. The default value is **normal**. The options are as follows: - **game**: called at an interval of 20 ms, which is applicable to gaming scenarios. - **ui**: called at an interval of 60 ms, which is applicable to UI updating scenarios. - **normal**: called at an interval of 200 ms, which is applicable to power-saving scenarios. |
+| success | Function | Yes | Called when the device orientation sensor data changes. |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| alpha | number | Rotation angle around the Z axis when the X/Y axis of the mobile phone coincides with the X/Y axis of the earth.|
-| beta | number | Rotation angle around the X axis when the Y/Z axis of the mobile phone coincides with the Y/Z axis of the earth.|
-| gamma | number | Rotation angle around the Y axis when the X/Z axis of the mobile phone coincides with the X/Z axis of the earth.|
+| Name | Type | Description |
+| ----- | ------ | ---------------------------------------- |
+| alpha | number | Rotation angle around the Z axis when the X/Y axis of the mobile device coincides with the X/Y axis of the earth. |
+| beta | number | Rotation angle around the X axis when the Y/Z axis of the mobile device coincides with the Y/Z axis of the earth. |
+| gamma | number | Rotation angle around the Y axis when the X/Z axis of the mobile device coincides with the X/Z axis of the earth. |
**Example**
@@ -558,19 +558,19 @@ If this API is called multiple times for the same application, the last call tak
**Parameters**
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| interval | string | Yes| Interval at which the callback is invoked to return the gyroscope sensor data. The default value is **normal**. The options are as follows: - **game**: called at an interval of 20 ms, which is applicable to gaming scenarios. - **ui**: called at an interval of 60 ms, which is applicable to UI updating scenarios. - **normal**: called at an interval of 200 ms, which is applicable to power-saving scenarios.|
-| success | Function | Yes| Called when the gyroscope sensor data changes.|
-| fail | Function | No| Callback upon failure.|
+| Name | Type | Mandatory | Description |
+| -------- | -------- | --------- | ---------------------------------------- |
+| interval | string | Yes | Interval at which the callback is invoked to return the gyroscope sensor data. The default value is **normal**. The options are as follows: - **game**: called at an interval of 20 ms, which is applicable to gaming scenarios. - **ui**: called at an interval of 60 ms, which is applicable to UI updating scenarios. - **normal**: called at an interval of 200 ms, which is applicable to power-saving scenarios. |
+| success | Function | Yes | Called when the gyroscope sensor data changes. |
+| fail | Function | No | Callback upon failure. |
Return values of the success callback
- | Name| Type| Description|
-| -------- | -------- | -------- |
-| x | number | Rotation angular velocity of the X axis.|
-| y | number | Rotation angular velocity of the Y axis.|
-| z | number | Rotation angular velocity of the Z axis.|
+| Name | Type | Description |
+| ---- | ------ | ---------------------------------------- |
+| x | number | Rotation angular velocity of the X axis. |
+| y | number | Rotation angular velocity of the Y axis. |
+| z | number | Rotation angular velocity of the Z axis. |
**Example**
diff --git a/en/application-dev/reference/apis/js-apis-update.md b/en/application-dev/reference/apis/js-apis-update.md
index a9a417c88513e0d39dd5f6fa68892574b7a62d0b..d84b4bdcd5acbe6169c8172961f935f254f5a7d2 100644
--- a/en/application-dev/reference/apis/js-apis-update.md
+++ b/en/application-dev/reference/apis/js-apis-update.md
@@ -1,6 +1,6 @@
# Update
->  **NOTE**
+>  **NOTE**
> 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.
The Update module applies to updates throughout the entire system, including built-in resources and preset applications, but not third-party applications.
@@ -8,7 +8,7 @@ The Update module applies to updates throughout the entire system, including bui
There are two types of updates: SD card update and over the air (OTA) update.
- The SD card update depends on the update packages and SD cards.
-- The OTA update depends on the server deployed by the phone manufacturer for managing update packages. The OTA server IP address is passed by the caller. The request interface is fixed and developed by the phone manufacturer.
+- The OTA update depends on the server deployed by the device manufacturer for managing update packages. The OTA server IP address is passed by the caller. The request interface is fixed and developed by the device manufacturer.
## Modules to Import
@@ -30,16 +30,16 @@ Obtains the **Updater** object for local update.
**Parameters**
-| Name | Type | Mandatory| Description |
-| ----------- | --------------------------- | ---- | -------- |
-| upgradeFile | string | Yes | Update file.|
-| updateType | [UpdateTypes](#updatetypes) | Yes | Update type.|
+| Name | Type | Mandatory | Description |
+| ----------- | --------------------------- | --------- | ------------ |
+| upgradeFile | string | Yes | Update file. |
+| updateType | [UpdateTypes](#updatetypes) | Yes | Update type. |
-**Return Value**
+**Return value**
-| Type | Description |
-| ------------------- | -------- |
-| [Updater](#updater) | **Updater** object.|
+| Type | Description |
+| ------------------- | ------------------- |
+| [Updater](#updater) | **Updater** object. |
**Example**
@@ -61,17 +61,17 @@ Obtains the **Updater** object for the device to be updated.
**Parameters**
-| Name | Type | Mandatory| Description |
-| ----------- | --------------------------- | ---- | ---------- |
-| upgradeFile | string | Yes | Update file. |
-| device | string | Yes | Device to be updated.|
-| updateType | [UpdateTypes](#updatetypes) | Yes | Update type. |
+| Name | Type | Mandatory | Description |
+| ----------- | --------------------------- | --------- | --------------------- |
+| upgradeFile | string | Yes | Update file. |
+| device | string | Yes | Device to be updated. |
+| updateType | [UpdateTypes](#updatetypes) | Yes | Update type. |
-**Return Value**
+**Return value**
-| Type | Description |
-| ------------------- | -------- |
-| [Updater](#updater) | **Updater** object.|
+| Type | Description |
+| ------------------- | ------------------- |
+| [Updater](#updater) | **Updater** object. |
**Example**
@@ -93,17 +93,17 @@ Obtains the **Updater** object from another device for the device to be updated.
**Parameters**
-| Name | Type | Mandatory| Description |
-| ----------- | --------------------------- | ---- | ---------- |
-| upgradeFile | string | Yes | Update file. |
-| device | string | Yes | Device to be updated.|
-| updateType | [UpdateTypes](#updatetypes) | Yes | Update type. |
+| Name | Type | Mandatory | Description |
+| ----------- | --------------------------- | --------- | --------------------- |
+| upgradeFile | string | Yes | Update file. |
+| device | string | Yes | Device to be updated. |
+| updateType | [UpdateTypes](#updatetypes) | Yes | Update type. |
-**Return Value**
+**Return value**
-| Type | Description |
-| ------------------- | -------- |
-| [Updater](#updater) | **Updater** object.|
+| Type | Description |
+| ------------------- | ------------------- |
+| [Updater](#updater) | **Updater** object. |
**Example**
@@ -121,15 +121,15 @@ try {
getNewVersionInfo(callback: AsyncCallback\): void
-Obtains the new version information. This API uses an asynchronous callback to return the result.
+Obtains the new version information. This function uses an asynchronous callback to return the result.
**System capability**: SystemCapability.Update.UpdateService
**Parameters**
-| Name | Type | Mandatory| Description |
-| -------- | ------------------------------------------------ | ---- | ------------------ |
-| callback | AsyncCallback<[NewVersionInfo](#newversioninfo)> | No | Callback used to return the result.|
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | --------- | ---------------------------------------- |
+| callback | AsyncCallback<[NewVersionInfo](#newversioninfo)> | No | Callback used to return the new version information. |
**Example**
@@ -146,15 +146,15 @@ update.getNewVersionInfo(info => {
getNewVersionInfo(): Promise\
-Obtains the new version information. This API uses a promise to return the result.
+Obtains the new version information. This function uses a promise to return the result.
**System capability**: SystemCapability.Update.UpdateService
-**Return Value**
+**Return value**
-| Type | Description |
-| ------------------------------------------- | ------------------------- |
-| Promise\<[NewVersionInfo](#newversioninfo)> | Promise used to return the result.|
+| Type | Description |
+| ---------------------------------------- | ---------------------------------------- |
+| Promise\<[NewVersionInfo](#newversioninfo)> | Promise used to return the new version information. |
**Example**
@@ -172,15 +172,15 @@ updater.getNewVersionInfo().then(value => {
checkNewVersion(callback: AsyncCallback\): void
-Checks whether the current version is the latest. This API uses an asynchronous callback to return the result.
+Checks whether the current version is the latest. This function uses an asynchronous callback to return the result.
**System capability**: SystemCapability.Update.UpdateService
**Parameters**
-| Name | Type | Mandatory| Description |
-| -------- | ------------------------------------------------- | ---- | ------------------ |
-| callback | AsyncCallback\<[NewVersionInfo](#newversioninfo)> | No | Callback used to return the result.|
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | --------- | ---------------------------------------- |
+| callback | AsyncCallback\<[NewVersionInfo](#newversioninfo)> | No | Callback used to return the new version information. |
**Example**
@@ -197,15 +197,15 @@ update.checkNewVersion(info => {
checkNewVersion(): Promise\
-Checks whether the current version is the latest. This API uses a promise to return the result.
+Checks whether the current version is the latest. This function uses a promise to return the result.
**System capability**: SystemCapability.Update.UpdateService
-**Return Value**
+**Return value**
-| Type | Description |
-| ------------------------------------------- | ------------------------- |
-| Promise\<[NewVersionInfo](#newversioninfo)> | Promise used to return the result.|
+| Type | Description |
+| ---------------------------------------- | ---------------------------------------- |
+| Promise\<[NewVersionInfo](#newversioninfo)> | Promise used to return the new version information. |
**Example**
@@ -229,10 +229,10 @@ Verifies whether the update package is valid.
**Parameters**
-| Name | Type | Mandatory| Description |
-| ----------- | ------ | ---- | ------------------ |
-| upgradeFile | string | Yes | Path of the update package to be verified.|
-| certsFile | string | Yes | Certificate path. |
+| Name | Type | Mandatory | Description |
+| ----------- | ------ | --------- | ---------------------------------------- |
+| upgradeFile | string | Yes | Path of the update package to be verified. |
+| certsFile | string | Yes | Certificate path. |
**Example**
@@ -247,15 +247,15 @@ update.verifyUpdatePackage("XXX", "XXX");
rebootAndCleanUserData(): Promise\
-Reboots the device and clears the user partition data. This API uses a promise to return the result.
+Reboots the device and clears the user partition data. This function uses a promise to return the result.
**System capability**: SystemCapability.Update.UpdateService
-**Return Value**
+**Return value**
-| Type | Description |
-| ---------------- | ------------------------------- |
-| Promise\ | Promise used to return the result.|
+| Type | Description |
+| ---------------- | ---------------------------------------- |
+| Promise\ | Promise used to return the execution result. |
**Example**
@@ -271,15 +271,15 @@ update.rebootAndCleanUserData().then(result => {
rebootAndCleanUserData(callback: AsyncCallback\): void
-Reboots the device and clears the user partition data. This API uses an asynchronous callback to return the result.
+Reboots the device and clears the user partition data. This function uses a promise to return the result.
**System capability**: SystemCapability.Update.UpdateService
**Parameters**
-| Name | Type | Mandatory| Description |
-| -------- | -------- | ---- | ---------------------- |
-| callback | AsyncCallback\| Yes | Callback used to return the result.|
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------- | --------- | ---------------------------------------- |
+| callback | AsyncCallback\ | Yes | Callback used to return the execution result. |
**Example**
@@ -293,15 +293,15 @@ update.rebootAndCleanUserData(result => {
applyNewVersion(): Promise\
-Installs the update package. This API uses a promise to return the result.
+Installs the update package. This function uses a promise to return the result.
**System capability**: SystemCapability.Update.UpdateService
-**Return Value**
+**Return value**
-| Type | Description |
-| ---------------- | ------------------------------- |
-| Promise\ | Promise used to return the result.|
+| Type | Description |
+| ---------------- | ---------------------------------------- |
+| Promise\ | Promise used to return the execution result. |
**Example**
@@ -317,15 +317,15 @@ update.applyNewVersion().then(result => {
applyNewVersion(callback: AsyncCallback\): void
-Installs the update package. This API uses an asynchronous callback to return the result.
+Installs the update package. This function uses a promise to return the result.
**System capability**: SystemCapability.Update.UpdateService
**Parameters**
-| Name | Type | Mandatory| Description |
-| -------- | -------- | ---- | ---------------------- |
-| callback | AsyncCallback\| Yes | Callback used to return the result.|
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------- | --------- | ---------------------------------------- |
+| callback | AsyncCallback\ | Yes | Callback used to return the execution result. |
**Example**
@@ -356,7 +356,7 @@ updater.download();
### upgrade
-updater.upgrade():void
+upgrade():void
Starts an update.
@@ -377,16 +377,16 @@ updater.upgrade();
setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback\): void
-Sets the update policy. This API uses an asynchronous callback to return the result.
+Sets the update policy. This function uses an asynchronous callback to return the result.
**System capability**: SystemCapability.Update.UpdateService
**Parameters**
-| Name | Type | Mandatory| Description |
-| -------- | ----------------------------- | ---- | ------------ |
-| policy | [UpdatePolicy](#updatepolicy) | Yes | Update policy to set.|
-| callback | AsyncCallback\ | Yes | Callback used to return the result.|
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | --------- | ---------------------------------------- |
+| policy | [UpdatePolicy](#updatepolicy) | Yes | Update policy to set. |
+| callback | Callback used to return the execution result. | Yes | Callback used to return the execution result. |
**Example**
@@ -408,21 +408,21 @@ update.setUpdatePolicy(policy, result => {
setUpdatePolicy(policy: UpdatePolicy): Promise\
-Sets the update policy. This API uses a promise to return the result.
+Sets the update policy. This function uses a promise to return the result.
**System capability**: SystemCapability.Update.UpdateService
**Parameters**
-| Name| Type | Mandatory| Description |
-| ------ | ----------------------------- | ---- | ------------ |
-| policy | [UpdatePolicy](#updatepolicy) | Yes | Update policy to set.|
+| Name | Type | Mandatory | Description |
+| ------ | ----------------------------- | --------- | --------------------- |
+| policy | [UpdatePolicy](#updatepolicy) | Yes | Update policy to set. |
-**Return Value**
+**Return value**
-| Type | Description |
-| ---------------- | ----------------------- |
-| Promise\ | Promise used to return the result.|
+| Type | Description |
+| ---------------- | ---------------------------------------- |
+| Promise\ | Promise used to return the execution result. |
**Example**
@@ -445,15 +445,15 @@ update.setUpdatePolicy(policy).then(result =>
getUpdatePolicy(callback: AsyncCallback\): void
-Obtains the update policy. This API uses an asynchronous callback to return the result.
+Obtains the update policy. This function uses an asynchronous callback to return the result.
**System capability**: SystemCapability.Update.UpdateService
**Parameters**
-| Name | Type | Mandatory| Description |
-| -------- | --------------------------------------------- | ---- | -------------------- |
-| callback | AsyncCallback\<[UpdatePolicy](#updatepolicy)> | No | Callback used to return the result.|
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | --------- | ---------------------------------------- |
+| callback | AsyncCallback\<[UpdatePolicy](#updatepolicy)> | No | Callback used to return the update policy. |
**Example**
@@ -470,15 +470,15 @@ update.getUpdatePolicy(policy => {
getUpdatePolicy(): Promise\
-Obtains the update policy. This API uses a promise to return the result.
+Obtains the update policy. This function uses a promise to return the result.
**System capability**: SystemCapability.Update.UpdateService
-**Return Value**
+**Return value**
-| Type | Description |
-| --------------------------------------- | --------------------------- |
-| Promise\<[UpdatePolicy](#updatepolicy)> | Promise used to return the result.|
+| Type | Description |
+| --------------------------------------- | ---------------------------------------- |
+| Promise\<[UpdatePolicy](#updatepolicy)> | Promise used to return the update policy. |
**Example**
@@ -498,10 +498,10 @@ Enumerates update types.
**System capability**: SystemCapability.Update.UpdateService
-| Name| Description |
-| ------ | -------- |
-| OTA | OTA update. |
-| patch | Patch update.|
+| Name | Description |
+| ----- | ------------- |
+| OTA | OTA update. |
+| patch | Patch update. |
## PackageTypes
@@ -509,15 +509,15 @@ Enumerates update package types.
**System capability**: SystemCapability.Update.UpdateService
-| Name | Default Value| Description |
-| -------------------- | ------ | -------------- |
-| PACKAGE_TYPE_NORMAL | 1 | Common update package. |
-| PACKAGE_TYPE_BASE | 2 | Basic update package. |
-| PACKAGE_TYPE_CUST | 3 | Custom update package. |
-| PACKAGE_TYPE_PRELOAD | 4 | Preinstalled update package. |
-| PACKAGE_TYPE_COTA | 5 | Parameter configuration update package.|
-| PACKAGE_TYPE_VERSION | 6 | Version update package. |
-| PACKAGE_TYPE_PATCH | 7 | Patch packages |
+| Name | Default Value | Description |
+| -------------------- | ------------- | --------------------------------------- |
+| PACKAGE_TYPE_NORMAL | 1 | Common update package. |
+| PACKAGE_TYPE_BASE | 2 | Basic update package. |
+| PACKAGE_TYPE_CUST | 3 | Custom update package. |
+| PACKAGE_TYPE_PRELOAD | 4 | Preinstalled update package. |
+| PACKAGE_TYPE_COTA | 5 | Parameter configuration update package. |
+| PACKAGE_TYPE_VERSION | 6 | Version update package. |
+| PACKAGE_TYPE_PATCH | 7 | Patch package. |
## InstallMode
@@ -525,11 +525,11 @@ Enumerates update modes.
**System capability**: SystemCapability.Update.UpdateService
-| Name | Default Value| Description |
-| ------------------- | ------ | -------- |
-| INSTALL_MODE_NORMAL | 0 | Normal update.|
-| INSTALL_MODE_NIGHT | 1 | Update at night.|
-| INSTALL_MODE_AUTO | 2 | Automatic update.|
+| Name | Default Value | Description |
+| ------------------- | ------------- | ----------------- |
+| INSTALL_MODE_NORMAL | 0 | Normal update. |
+| INSTALL_MODE_NIGHT | 1 | Update at night. |
+| INSTALL_MODE_AUTO | 2 | Automatic update. |
## NewVersionStatus
@@ -537,12 +537,12 @@ Enumerates new version check results.
**System capability**: SystemCapability.Update.UpdateService
-| Name | Default Value| Description |
-| ------------------- | ------ | ---------------- |
-| VERSION_STATUS_ERR | -1 | System error while checking for the new version. |
-| VERSION_STATUS_NEW | 0 | New version detected. |
-| VERSION_STATUS_NONE | 1 | No new version detected.|
-| VERSION_STATUS_BUSY | 2 | System busy while checking for the new version. |
+| Name | Default Value | Description |
+| ------------------- | ------------- | ---------------------------------------- |
+| VERSION_STATUS_ERR | -1 | System error while checking for the new version. |
+| VERSION_STATUS_NEW | 0 | New version detected. |
+| VERSION_STATUS_NONE | 1 | No new version detected. |
+| VERSION_STATUS_BUSY | 2 | System busy while checking for the new version. |
## UpdatePolicy
@@ -550,11 +550,11 @@ Defines the update policy.
**System capability**: SystemCapability.Update.UpdateService
-| Name | Type | Mandatory| Description |
-| ------------------- | --------------------------- | ---- | -------------- |
-| autoDownload | bool | Yes | Automatic update switch. |
-| installMode | [InstallMode](#installmode) | Yes | Installation mode. |
-| autoUpgradeInterval | Array\ | Yes | Period of time for automatic update.|
+| Name | Type | Mandatory | Description |
+| ------------------- | --------------------------- | --------- | ------------------------------------ |
+| autoDownload | bool | Yes | Automatic update switch. |
+| installMode | [InstallMode](#installmode) | Yes | Update mode. |
+| autoUpgradeInterval | Array\ | Yes | Period of time for automatic update. |
## NewVersionInfo
@@ -562,12 +562,12 @@ Defines the new version information.
**System capability**: SystemCapability.Update.UpdateService
-| Name | Type | Mandatory| Description |
-| --------------- | ------------------------------------------- | ---- | -------- |
-| status | [NewVersionStatus](#newversionstatus) | Yes | Update status.|
-| errMsg | string | Yes | Error message.|
-| checkResults | Array<[CheckResult](#checkresult)> | Yes | Version check result.|
-| descriptionInfo | Array\<[DescriptionInfo](#descriptioninfo)> | Yes | Version description information.|
+| Name | Type | Mandatory | Description |
+| --------------- | ---------------------------------------- | --------- | -------------------------------- |
+| status | [NewVersionStatus](#newversionstatus) | Yes | Update status. |
+| errMsg | string | Yes | Error message. |
+| checkResults | Array<[CheckResult](#checkresult)> | Yes | Version check result. |
+| descriptionInfo | Array\<[DescriptionInfo](#descriptioninfo)> | Yes | Version description information. |
## CheckResult
@@ -575,14 +575,14 @@ Defines the version check result.
**System capability**: SystemCapability.Update.UpdateService
-| Name | Type | Mandatory| Description |
-| ------------- | ----------------------------- | ---- | ------------ |
-| versionName | string | Yes | Version name. |
-| versionCode | number | Yes | Version code. |
-| size | number | Yes | Version size. |
-| verifyInfo | string | Yes | Version verification information.|
-| packageType | [PackageTypes](#packagetypes) | Yes | Version type. |
-| descriptionId | string | Yes | Version description information.|
+| Name | Type | Mandatory | Description |
+| ------------- | ----------------------------- | --------- | --------------------------------- |
+| versionName | string | Yes | Version name. |
+| versionCode | number | Yes | Version code. |
+| size | number | Yes | Version size. |
+| verifyInfo | string | Yes | Version verification information. |
+| packageType | [PackageTypes](#packagetypes) | Yes | Version type. |
+| descriptionId | string | Yes | Version description information. |
## DescriptionInfo
@@ -590,7 +590,7 @@ Defines the version description information.
**System capability**: SystemCapability.Update.UpdateService
-| Name | Type| Mandatory| Description |
-| ------------- | -------- | ---- | ----------------- |
-| descriptionId | string | Yes | Version ID information.|
-| content | string | Yes | Version changelog information.|
+| Name | Type | Mandatory | Description |
+| ------------- | ------ | --------- | ------------------------------ |
+| descriptionId | string | Yes | Version ID information. |
+| content | string | Yes | Version changelog information. |
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-button.md b/en/application-dev/reference/arkui-js/js-components-basic-button.md
index 0e3cd7fe5e0f3ff9f43ebb0c45dad2676de730d4..771a5a55404f5bccfab8350837e74dc049bdc298 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-button.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-button.md
@@ -32,7 +32,7 @@ In addition to the attributes in [Universal Attributes](js-components-common-at
No
Dynamic modification is not supported. If this attribute is not set, capsule-like buttons are displayed. Different from the capsule button, the four rounded corners of a capsule-like button can be configured using border-radius. Available button types are as follows:
-
capsule: a capsule button with fillets, background color, and text
circle: a circle button which can be used to place icons
text: a text button which displays the text only
arc: an arc button. This value is applicable to wearables only.
download: a download button. The download progress bar is added. This value is applicable to smart TVs and smartphones.
+
capsule: a capsule button with fillets, background color, and text
circle: a circle button which can be used to place icons
text: a text button which displays the text only
arc: an arc button. This value is applicable to wearables only.
download: a download button. The download progress bar is added.
value
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-chart.md b/en/application-dev/reference/arkui-js/js-components-basic-chart.md
index cfb8ae34e6ea898ca580e58a0ac7ebcd7a16569c..c635eb624433b2333a8a912a531cf457912c8f9e 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-chart.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-chart.md
@@ -72,7 +72,7 @@ In addition to the attributes in [Universal Attributes](js-components-common-at
Data structures used by progress, loading, and rainbow charts.
DataSegment is available for progress and loading charts.
Array<DataSegment> is available for rainbow charts. A maximum of nine DataSegment are supported in the array.
-
NOTE:
This attribute is only supported on phones and tablets.
+
@@ -85,7 +85,7 @@ In addition to the attributes in [Universal Attributes](js-components-common-at
No
Whether to enable the effects for progress and rainbow charts.
-
NOTE:
This attribute is only supported on phones and tablets.
+
@@ -98,7 +98,7 @@ In addition to the attributes in [Universal Attributes](js-components-common-at
No
Animation duration for expanding a rainbow chart, in milliseconds.
-
NOTE:
This attribute is only supported on phones and tablets.
+
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-picker-view.md b/en/application-dev/reference/arkui-js/js-components-basic-picker-view.md
index 358309449063dab4098feb7ee2b00d2522d62a8b..bf54c96ec25a1b3d4895a6f5fe9bd7c09eff183f 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-picker-view.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-picker-view.md
@@ -225,8 +225,8 @@ Date selector \(**type** is **date**\)
No
-
Whether to display the lunar calendar switch in the date selector. When this switch is displayed, you can switch between the lunar calendar and Gregorian calendar. Turn on the switch to display the lunar calendar, and turn off the switch to hide the lunar calendar. This attribute is available for smartphones.
-
NOTE:
This attribute is only supported on phones and tablets.
+
Whether to display the lunar calendar switch in the date selector. When this switch is displayed, you can switch between the lunar calendar and Gregorian calendar. Turn on the switch to display the lunar calendar, and turn off the switch to hide the lunar calendar.
+
@@ -293,8 +293,8 @@ Date and time selector \(**type** is **datetime**\)
No
-
Whether to display the lunar calendar switch in the date and time selector. When this switch is displayed, you can switch between the lunar calendar and Gregorian calendar. Turn on the switch to display the lunar calendar, and turn off the switch to hide the lunar calendar. This attribute is available for smartphones.
-
NOTE:
This attribute is only supported on phones and tablets.
+
Whether to display the lunar calendar switch in the date and time selector. When this switch is displayed, you can switch between the lunar calendar and Gregorian calendar. Turn on the switch to display the lunar calendar, and turn off the switch to hide the lunar calendar.
+
@@ -424,7 +424,7 @@ In addition to the styles in [Universal Styles](js-components-common-styles.md)
No
Font color of the items that gradually disappear. Disappearing items are the top option and bottom option of a column containing five options in total.
-
NOTE:
This attribute is only supported on phones and tablets.
+
NOTE:
@@ -437,7 +437,7 @@ In addition to the styles in [Universal Styles](js-components-common-styles.md)
No
Font size of the items that gradually disappear. Disappearing items are the top option and bottom option of a column containing five options in total.
-
NOTE:
This attribute is only supported on phones and tablets.
+
NOTE:
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-picker.md b/en/application-dev/reference/arkui-js/js-components-basic-picker.md
index 1b161a67e12f80fd51410ad89adebb737ca4db91..87e858c2fceb9d83feaffb3b03f95a031e5d2a73 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-picker.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-picker.md
@@ -178,7 +178,7 @@ When **type** is set to **date**, a date selector is used.
No
Whether the date selector displays the lunar calendar switch, which is used to switch between the Gregorian calendar and lunar calendar. The value true means to display the lunar calendar switch for users to switch between the Gregorian calendar and lunar calendar. The value false means not to display the lunar calendar switch.
-
NOTE:
This attribute is only supported on phones and tablets. When both lunarswitch and lunar are set to true, the switch is selected.
+
NOTE:
When both lunarswitch and lunar are set to true, the switch is selected.
@@ -329,7 +329,7 @@ When **type** is set to **datetime**, a date and time selector is used.
No
Whether the date selector displays the lunar calendar switch, which is used to switch between the Gregorian calendar and lunar calendar. The value true means to display the lunar calendar switch for users to switch between the Gregorian calendar and lunar calendar. The value false means not to display the lunar calendar switch.
-
NOTE:
This attribute is only supported on phones and tablets. When both lunarswitch and lunar are set to true, the switch is selected.
+
NOTE:
When both lunarswitch and lunar are set to true, the switch is selected.
@@ -529,7 +529,7 @@ In addition to the styles in [Universal Styles](js-components-common-styles.md)
No
Height of the selector option list.
-
NOTE:
This attribute is only supported on phones and tablets.
+
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-rating.md b/en/application-dev/reference/arkui-js/js-components-basic-rating.md
index 35811a0973e287b7a3487b209e0c09a5a0f1c769..aa86324255adcc621eb4b11527f96d3df3ac7f59 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-rating.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-rating.md
@@ -58,7 +58,7 @@ In addition to the attributes in [Universal Attributes](js-components-common-at
No
Step to increment the rating value.
-
NOTE:
This attribute is only supported on phones and tablets.
+
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-slider.md b/en/application-dev/reference/arkui-js/js-components-basic-slider.md
index 314f192543e46dc0977954acd373b29958721c58..27d23ac9fb965300fb32f92dcdde9548d038450a 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-slider.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-slider.md
@@ -76,7 +76,7 @@ In addition to the attributes in [Universal Attributes](js-components-common-at
No
Slider style. Available values are as follows:
-
outset: The slider is on the sliding bar.
inset: The slider is inside the sliding bar.
NOTE:
This attribute is only supported on phones and tablets.
+
outset: The slider is on the sliding bar.
inset: The slider is inside the sliding bar.
@@ -90,7 +90,7 @@ In addition to the attributes in [Universal Attributes](js-components-common-at
No
Whether to display slider scales.
-
NOTE:
This attribute is only supported on phones and tablets.
+
@@ -103,7 +103,7 @@ In addition to the attributes in [Universal Attributes](js-components-common-at
No
Whether a pop-up is displayed to show the percentage value on the slider.
-
NOTE:
This attribute is only supported on phones and tablets.
+
@@ -158,7 +158,7 @@ In addition to the styles in [Universal Styles](js-components-common-styles.md)
No
Slider color.
-
NOTE:
This attribute is only supported on phones, tablets, and wearables.
+
diff --git a/en/application-dev/reference/arkui-js/js-components-container-refresh.md b/en/application-dev/reference/arkui-js/js-components-container-refresh.md
index d428fe32b243f25b76cd92bd7c9e88a221d166bd..9320f930ba8affc1b9be7b0508c8ac2dffc2dced 100644
--- a/en/application-dev/reference/arkui-js/js-components-container-refresh.md
+++ b/en/application-dev/reference/arkui-js/js-components-container-refresh.md
@@ -92,7 +92,7 @@ In addition to the attributes in [Universal Attributes](js-components-common-at
No
Pull-down friction coefficient. The value ranges from 0 to 100. A larger value indicates a more responsive component. For example, if a user pulls the component down 100 px, it will actually move 100 * friction% px.
-
NOTE:
This attribute is only supported on phones, tablets, and wearables.
+
diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-web.md b/en/application-dev/reference/arkui-ts/ts-basic-components-web.md
index 948ad5920d906f7437d20e9a0ffd6511e13bd7ac..97cb13479644e2b679e452c9e4ed0967efb9ba63 100644
--- a/en/application-dev/reference/arkui-ts/ts-basic-components-web.md
+++ b/en/application-dev/reference/arkui-ts/ts-basic-components-web.md
@@ -5,6 +5,9 @@
The **** component can be used to display web pages.
+## Required Permissions
+ohos.permission.INTERNET, required only for accessing online web pages.
+
## Child Components
None
@@ -15,10 +18,10 @@ None
Table 1 Parameters of options
- | Name | Type | Mandatory| Default Value| Description |
- | ---------- | ------------------------------- | ---- | ------ | -------------- |
- | src | string | Yes | - | Address of a web page resource.|
- | controller | [WebController](#WebController) | No | - | Controller. |
+ | Name | Type | Mandatory | Default Value | Description |
+ | ---------- | ------------------------------- | --------- | ------------- | ------------------------------- |
+ | src | string | Yes | - | Address of a web page resource. |
+ | controller | [WebController](#webcontroller) | No | - | Controller. |
>  **NOTE**
@@ -28,43 +31,43 @@ None
> - Only local audio and video are supported for playback.
## Attributes
-| Name | Type | Default Value | Description |
-| ----------------- | ------------------------------------------------------------ | -------------- | ------------------------------------------------------------ |
-| domStorageAccess | boolean | false | Whether to enable the DOM Storage API permission. By default, the permission is disabled.|
-| fileAccess | boolean | true | Whether to enable in-application rawfile access through [$rawfile(filepath/filename)](ts-application-resource-access.md#referencing-resources). By default, this feature is enabled. |
-| imageAccess | boolean | true | Whether to enable automatic image loading. By default, this feature is enabled. |
-| javaScriptProxy | { object: object, name: string, methodList: Array\, controller: WebController } | - | JavaScript object to be injected into the window. Methods of this object can be invoked in the window. The parameters in this attribute cannot be updated. **object** indicates the object to be registered. Methods can be declared, but not attributes. The parameters and return value can only be of the string, number, or Boolean type. **name** indicates the name of the object to be registered, which is the same as that invoked in the window. After registration, the window can use this name to access the JavaScript object at the application side. **methodList** indicates the methods of the JavaScript object to be registered at the application side. **controller** indicates the controller. |
-| javaScriptAccess | boolean | true | Whether JavaScript scripts can be executed. By default, JavaScript scripts can be executed. |
-| mixedMode | [MixedMode](#MixedMode) | MixedMode.None | Whether to enable loading of HTTP and HTTPS hybrid content can be loaded. By default, this feature is disabled.|
-| onlineImageAccess | boolean | true | Whether to enable access to online images through HTTP and HTTPS. By default, this feature is enabled.|
-| zoomAccess | boolean | true | Whether to enable zoom gestures. By default, zoom gestures are enabled. |
+| Name | Type | Default Value | Description |
+| ----------------- | ---------------------------------------- | -------------- | ---------------------------------------- |
+| domStorageAccess | boolean | false | Whether to enable the DOM Storage API permission. By default, the permission is disabled. |
+| fileAccess | boolean | true | Whether to enable in-application rawfile access through [$rawfile(filepath/filename)](../../ui/ts-application-resource-access.md). By default, this feature is enabled. |
+| imageAccess | boolean | true | Whether to enable automatic image loading. By default, this feature is enabled. |
+| javaScriptProxy | { object: object, name: string, methodList: Array\, controller: WebController } | - | JavaScript object to be injected into the window. Methods of this object can be invoked in the window. The parameters in this attribute cannot be updated. **object** indicates the object to be registered. Methods can be declared, but not attributes. The parameters and return value can only be of the string, number, or Boolean type. **name** indicates the name of the object to be registered, which is the same as that invoked in the window. After registration, the window can use this name to access the JavaScript object at the application side. **methodList** indicates the methods of the JavaScript object to be registered at the application side. **controller** indicates the controller. |
+| javaScriptAccess | boolean | true | Whether JavaScript scripts can be executed. By default, JavaScript scripts can be executed. |
+| mixedMode | MixedMode | MixedMode.None | Whether to enable loading of HTTP and HTTPS hybrid content can be loaded. By default, this feature is disabled. |
+| onlineImageAccess | boolean | true | Whether to enable access to online images through HTTP and HTTPS. By default, this feature is enabled. |
+| zoomAccess | boolean | true | Whether to enable zoom gestures. By default, zoom gestures are enabled. |
>  **NOTE**
>
> Only the following universal attributes are supported: [width](ts-universal-attributes-size.md#Attributes), [height](ts-universal-attributes-size.md#Attributes), [padding](ts-universal-attributes-size.md#Attributes), [margin](ts-universal-attributes-size.md#Attributes), and [border](ts-universal-attributes-border.md#Attributes).
- MixedMode
- | Name | Description |
- | ---------- | ----------------------------------------------------------- |
- | All | HTTP and HTTPS hybrid content can be loaded. This means that all insecure content can be loaded.|
- | Compatible | HTTP and HTTPS hybrid content can be loaded in compatibility mode. This means that some insecure content may be loaded. |
- | None | HTTP and HTTPS hybrid content cannot be loaded. |
+ | Name | Description |
+ | ---------- | ---------------------------------------- |
+ | All | HTTP and HTTPS hybrid content can be loaded. This means that all insecure content can be loaded. |
+ | Compatible | HTTP and HTTPS hybrid content can be loaded in compatibility mode. This means that some insecure content may be loaded. |
+ | None | HTTP and HTTPS hybrid content cannot be loaded. |
## Events
Universal events are not supported.
-| Name | Description |
-| ------------------------------------------------------------ | ------------------------------------------------------------ |
-| onAlert(callback: (event?: { url: string; message: string; result: [JsResult](#JsResult) }) => boolean) |
Triggered when **alert()** is invoked to display an alert dialog box on the web page. If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can invoke the system dialog box capability (allows only the confirm operation) and invoke the **JsResult** API to notify the **\** component of the user's operation. **url**: URL of the web page where the dialog box is displayed. **message**: information displayed in the dialog box. **JsResult**: notifies the **\** component of the user's operation.
Triggered when the current page is about to exit after the user refreshes or closes the page. If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can invoke the system dialog box capability (allows the confirm and cancel operations) and invoke the **JsResult** API to notify the **\** component of the user's operation. **url**: URL of the web page where the dialog box is displayed. **message**: information displayed in the dialog box. **JsResult**: notifies the **\** component of the user's operation.
Triggered when **confirm()** is invoked to display a confirmation dialog box on the web page. If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can invoke the system dialog box capability (allows the confirm and cancel operations) and invoke the **JsResult** API to notify the **\** component of the user's operation. **url**: URL of the web page where the dialog box is displayed. **message**: information displayed in the dialog box. **JsResult**: notifies the **\** component of the user's operation.
Triggered when **alert()** is invoked to display an alert dialog box on the web page. If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can invoke the system dialog box capability (allows only the confirm operation) and invoke the **JsResult** API to notify the **\** component of the user's operation. **url**: URL of the web page where the dialog box is displayed. **message**: information displayed in the dialog box. **JsResult**: notifies the **\** component of the user's operation.
Triggered when the current page is about to exit after the user refreshes or closes the page. If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can invoke the system dialog box capability (allows the confirm and cancel operations) and invoke the **JsResult** API to notify the **\** component of the user's operation. **url**: URL of the web page where the dialog box is displayed. **message**: information displayed in the dialog box. **JsResult**: notifies the **\** component of the user's operation.
Triggered when **confirm()** is invoked to display a confirmation dialog box on the web page. If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can invoke the system dialog box capability (allows the confirm and cancel operations) and invoke the **JsResult** API to notify the **\** component of the user's operation. **url**: URL of the web page where the dialog box is displayed. **message**: information displayed in the dialog box. **JsResult**: notifies the **\** component of the user's operation.
Triggered when a download task starts on the web page. **url**: URL for the download task. **userAgent**: name of the user agent (UA) for the download task. **contentDisposition**: Content-Disposition response header returned by the server, which may be empty. **mimetype**: content media type (MIME) returned by the server. **contentLength**: length of the file returned by the server.
Triggered when an error occurs during web page loading. For best results, simplify the implementation logic in the callback. **request**: encapsulation of a web page request. **error**: encapsulation of a web page resource loading error.
Triggered when an HTTP error (the response code is greater than or equal to 400) occurs during web page resource loading. **request**: encapsulation of a web page request. **response**: encapsulation of a web page response.
Triggered when the web page starts to be loaded. This API is triggered only for the main frame content, and not for the iframe or frameset content. **url**: URL of the page.
Triggered when an error occurs during web page loading. For better results, simplify the implementation logic in the callback. **request**: encapsulation of a web page request. **error**: encapsulation of a web page resource loading error.
Triggered when an HTTP error (the response code is greater than or equal to 400) occurs during web page resource loading. **request**: encapsulation of a web page request. **response**: encapsulation of a web page response.
Triggered when the web page starts to be loaded. This API is triggered only for the main frame content, and not for the iframe or frameset content. **url**: URL of the page.
Triggered when the document title of the web page is changed. **title**: document title.
|
@@ -72,22 +75,22 @@ Universal events are not supported.
- APIs
- | Name | Description |
- | ------------------------------- | ------------------------------ |
- | getLineNumber(): number | Obtains the number of rows in the **ConsoleMessage**. |
- | getMessage(): string | Obtains the log information of the **ConsoleMessage**.|
- | getMessageLevel(): MessageLevel | Obtains the log information level of the **ConsoleMessage**.|
- | getSourceId(): string | Obtains the path and name of the web page source file. |
+ | Name | Description |
+ | ------------------------------- | ---------------------------------------- |
+ | getLineNumber(): number | Obtains the number of rows in the **ConsoleMessage**. |
+ | getMessage(): string | Obtains the log information of the **ConsoleMessage**. |
+ | getMessageLevel(): MessageLevel | Obtains the log information level of the **ConsoleMessage**. |
+ | getSourceId(): string | Obtains the path and name of the web page source file. |
- MessageLevel enums
- | Name | Description |
- | ----- | :---- |
- | Debug | Debug level.|
- | Error | Error level.|
- | Info | Information level.|
- | Log | Log level.|
- | Warn | Warning level. |
+ | Name | Description |
+ | ----- | :----------------- |
+ | Debug | Debug level. |
+ | Error | Error level. |
+ | Info | Information level. |
+ | Log | Log level. |
+ | Warn | Warning level. |
### JsResult
@@ -95,8 +98,8 @@ Represents the result returned to the **\** component to indicate the opera
- APIs
- | Name | Description |
- | --------------------- | ------------------------------------ |
+ | Name | Description |
+ | --------------------- | ---------------------------------------- |
| handleCancel(): void |
Notifies the **\** component that the user touches the Cancel button in the dialog box.
|
| handleConfirm(): void |
Notifies the **\** component that the user touches the Confirm button in the dialog box.
|
@@ -104,22 +107,22 @@ Represents the result returned to the **\** component to indicate the opera
- APIs
- | Name | Description |
- | ---------------------- | ------------ |
+ | Name | Description |
+ | ---------------------- | ---------------------------------------- |
| getErrorCode(): number | Obtains the error code for resource loading. |
- | getErrorInfo(): string | Obtains error information about resource loading.|
+ | getErrorInfo(): string | Obtains error information about resource loading. |
### WebResourceRequest
- APIs
- | Name | Description |
- | ------------------------------------------------------ | ---------------------------------------- |
- | getRequestHeader(): Array\<[Header](#Header)\> | Obtains the information about the resource request header. |
- | getRequestUrl(): string | Obtains the URL of the resource request. |
- | isMainFrame(): boolean | Checks whether the resource request is in the main frame. |
- | isRedirect(): boolean | Checks whether the resource request is redirected by the server. |
- | isRequestGesture(): boolean | Checks whether the resource request is associated with a gesture (for example, a tap).|
+ | Name | Description |
+ | ---------------------------------------- | ---------------------------------------- |
+ | getRequestHeader(): Array\<[Header](#header)\> | Obtains the information about the resource request header. |
+ | getRequestUrl(): string | Obtains the URL of the resource request. |
+ | isMainFrame(): boolean | Checks whether the resource request is in the main frame. |
+ | isRedirect(): boolean | Checks whether the resource request is redirected by the server. |
+ | isRequestGesture(): boolean | Checks whether the resource request is associated with a gesture (for example, a tap). |
### Header
@@ -127,28 +130,28 @@ Describes the request/response header object returned by the **\** componen
- Parameters
- | Name | Description |
- | ----------- | ---------------------- |
- | headerKey: string |
Key of the request/response header.
|
- | headerValue: string |
Value of the request/response header.
|
+ | Name | Type | Description |
+ | ----------- | ------ | ------------------------------------- |
+ | headerKey | string | Key of the request/response header. |
+ | headerValue | string | Value of the request/response header. |
### WebResourceResponse
- APIs
- | Name | Description |
- | ------------------------------------ | -------------------------------- |
- | getReasonMessage(): string | Obtains the status code description of the resource response. |
- | getResponseCode(): number | Obtains the status code of the resource response. |
- | getResponseData(): string | Obtains the data in the resource response. |
- | getResponseEncoding(): string | Obtains the encoding of the resource response. |
- | getResponseHeader(): Array\<[Header](#Header)\> | Obtains the resource response header. |
- | getResponseMimeType(): string | Obtains the media (MIME) type of the resource response.|
+ | Name | Description |
+ | ---------------------------------------- | ---------------------------------------- |
+ | getReasonMessage(): string | Obtains the status code description of the resource response. |
+ | getResponseCode(): number | Obtains the status code of the resource response. |
+ | getResponseData(): string | Obtains the data in the resource response. |
+ | getResponseEncoding(): string | Obtains the encoding of the resource response. |
+ | getResponseHeader(): Array\<[Header](#header)\> | Obtains the resource response header. |
+ | getResponseMimeType(): string | Obtains the media (MIME) type of the resource response. |
## WebController
-Defines a **webController** to control the behavior or obtain the configuration information of the **\** component.
+Defines a **WebController** to control the behavior of the **\** component. A **WebController** can control only one **\** component, and the APIs in the **WebController** can be invoked only after it has been bound to the target **\** component.
### Creating an Object
@@ -176,9 +179,15 @@ Indicates whether a specific number of steps forward or backward can be performe
- Parameters
- | Name | Type | Mandatory | Default Value | Description |
- | ---- | ------ | ---- | ---- | --------------------- |
- | step | number | Yes | - | Number of the steps to take. A positive number means to going forward, and a negative number means to going backward. |
+ | Name | Type | Mandatory | Default Value | Description |
+ | ---- | ------ | --------- | ------------- | ---------------------------------------- |
+ | step | number | Yes | - | Number of the steps to take. A positive number means to going forward, and a negative number means to going backward. |
+
+- Return value
+
+ | Type | Description |
+ | ------- | ---------------------------------------- |
+ | boolean | Whether to go forward or backward from the current page. |
### backward
@@ -194,9 +203,9 @@ Deletes a specific application JavaScript object that is registered with the win
- Parameters
- | Name| Type| Mandatory| Default Value| Description |
- | ------ | -------- | ---- | ------ | ------------------------------------------------------------ |
- | name | string | Yes | - | Name of the registered JavaScript object, which can be used to invoke the corresponding object on the application side from the web side.|
+ | Name | Type | Mandatory | Default Value | Description |
+ | ---- | ------ | --------- | ------------- | ---------------------------------------- |
+ | name | string | Yes | - | Name of the registered JavaScript object, which can be used to invoke the corresponding object on the application side from the web side. |
### forward
@@ -212,16 +221,16 @@ Obtains the element type of the area being clicked.
- HitTestType enums
- | Name | Description |
- | ------------- | ----------------------------------------- |
+ | Name | Description |
+ | ------------- | ---------------------------------------- |
| EditText | Editable area. |
| Email | Email address. |
- | HttpAnchor | Hyperlink where **src** is **http**. |
- | HttpAnchorImg | Image with a hyperlink, where **src** is **http**.|
- | Img | HTML::img tag. |
- | Map | Geographical address. |
- | Phone | Phone number. |
- | Unknown | Unknown content. |
+ | HttpAnchor | Hyperlink where **src** is **http**. |
+ | HttpAnchorImg | Image with a hyperlink, where **src** is **http**. |
+ | Img | HTML::img tag. |
+ | Map | Geographical address. |
+ | PhoneNumber | Phone number. |
+ | Unknown | Unknown content. |
### loadData
@@ -229,19 +238,19 @@ loadData(options: { data: string, mimeType: string, encoding: string, baseUrl?:
Loads data. If **baseUrl** is empty, the specified character string will be loaded using the data protocol.
-If **baseUrl** is set to a data URL, the encoded character string will be loaded by the **\** component using the data protocol.
+If **baseUrl** is set to a data URL, the encoded string will be loaded by the **\** component using the data protocol.
-If **baseUrl** is set to an HTTP or HTTPS URL, the encoded character string will be loaded by the **\** component as non-encoded string in a manner similar to **loadUrl**.
+If **baseUrl** is set to an HTTP or HTTPS URL, the encoded string will be processed by the **\** component as a non-encoded string in a manner similar to **loadUrl**.
- options
- | Name | Type| Mandatory| Default Value| Description |
- | ---------- | -------- | ---- | ------ | ------------------------------------------------------------ |
- | data | string | Yes | - | Character string obtained after being Base64 or URL encoded. |
- | mimeType | string | Yes | - | Media type (MIME). |
- | encoding | string | Yes | - | Encoding type, which can be Base64 or URL. |
- | baseUrl | string | No | - | URL (HTTP/HTTPS/data compliant), which is assigned by the **\** component to **window.origin**.|
- | historyUrl | string | No | - | Historical record URL. If this parameter is not empty, it can be managed in historical records to implement page going backward and forward. This parameter is invalid when **baseUrl** is left empty.|
+ | Name | Type | Mandatory | Default Value | Description |
+ | ---------- | ------ | --------- | ------------- | ---------------------------------------- |
+ | data | string | Yes | - | Character string obtained after being Base64 or URL encoded. |
+ | mimeType | string | Yes | - | Media type (MIME). |
+ | encoding | string | Yes | - | Encoding type, which can be Base64 or URL. |
+ | baseUrl | string | No | - | URL (HTTP/HTTPS/data compliant), which is assigned by the **\** component to **window.origin**. |
+ | historyUrl | string | No | - | Historical record URL. If this parameter is not empty, it can be managed in historical records to implement page going backward and forward. This parameter is invalid when **baseUrl** is left empty. |
### loadUrl
@@ -255,10 +264,10 @@ Objects injected through **registerJavaScriptProxy** are still valid on a new pa
- options
- | Name | Type | Mandatory| Default Value| Description |
- | ------- | ------------------------------------- | ---- | ------ | --------------------- |
- | url | string | Yes | - | URL to load. |
- | headers | Array\<[Header](#Header)\> | No | [] | Additional HTTP request header of the URL.|
+ | Name | Type | Mandatory | Default Value | Description |
+ | ------- | -------------------------- | --------- | ------------- | ---------------------------------------- |
+ | url | string | Yes | - | URL to load. |
+ | headers | Array\<[Header](#header)\> | No | [] | Additional HTTP request header of the URL. |
### onActive
@@ -286,11 +295,11 @@ Injects a JavaScript object into the window and invokes the methods of the objec
- options
- | Name | Type | Mandatory| Default Value| Description |
- | ---------- | --------------- | ---- | ------ | ------------------------------------------------------------ |
- | object | object | Yes | - | Application-side JavaScript object to be registered. Methods can be declared, but not attributes. The parameters and return value can only be of the string, number, or Boolean type.|
- | name | string | Yes | - | Name of the object to be registered, which is the same as that invoked in the window. After registration, the window can use this name to access the JavaScript object at the application side.|
- | methodList | Array\ | Yes | - | Methods of the JavaScript object to be registered at the application side. |
+ | Name | Type | Mandatory | Default Value | Description |
+ | ---------- | --------------- | --------- | ------------- | ---------------------------------------- |
+ | object | object | Yes | - | Application-side JavaScript object to be registered. Methods can be declared, but not attributes. The parameters and return value can only be of the string, number, or Boolean type. |
+ | name | string | Yes | - | Name of the object to be registered, which is the same as that invoked in the window. After registration, the window can use this name to access the JavaScript object at the application side. |
+ | methodList | Array\ | Yes | - | Methods of the JavaScript object to be registered at the application side. |
### runJavaScript
@@ -300,10 +309,10 @@ Asynchronously executes a JavaScript script. This API uses a callback to return
- options
- | Name | Type | Mandatory| Default Value| Description |
- | -------- | ------------------------ | ---- | ------ | ------------------------------------------------------------ |
- | script | string | Yes | - | JavaScript script. |
- | callback | (result: string) => void | No | - | Callback used to return the result. Returns **null** if the JavaScript script fails to be executed or no value is returned.|
+ | Name | Type | Mandatory | Default Value | Description |
+ | -------- | ------------------------ | --------- | ------------- | ---------------------------------------- |
+ | script | string | Yes | - | JavaScript script. |
+ | callback | (result: string) => void | No | - | Callback used to return the result. Returns **null** if the JavaScript script fails to be executed or no value is returned. |
### stop
diff --git a/en/application-dev/ui/figures/en-us_image_0000001222807784.png b/en/application-dev/ui/figures/en-us_image_0000001222807784.png
deleted file mode 100644
index 19ee7009247945887ceb0f8f6f471e45f3116b70..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001222807784.png and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001222967800.png b/en/application-dev/ui/figures/en-us_image_0000001222967800.png
deleted file mode 100644
index 00964c1cfa5f006f2e8ac064133e23a2d8fc92aa..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001222967800.png and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001267887853.png b/en/application-dev/ui/figures/en-us_image_0000001267887853.png
deleted file mode 100644
index 5e855312aef77f5badc0c0b0b4d5cbeac23b802f..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001267887853.png and /dev/null differ
diff --git a/en/application-dev/ui/js-framework-syntax-hml.md b/en/application-dev/ui/js-framework-syntax-hml.md
index b4f022f5f6b0ef6a1bf4da21c4490e05ffc8e821..ab908cf72a254f2a98b209d13e78182a57d8067f 100644
--- a/en/application-dev/ui/js-framework-syntax-hml.md
+++ b/en/application-dev/ui/js-framework-syntax-hml.md
@@ -43,7 +43,7 @@ export default {
>  **NOTE**:
> - To make the array data modification take effect, use the splice method to change array items.
->
+>
> - ECMAScript 6 (ES6) syntax is not supported in HML.
@@ -58,7 +58,7 @@ Events can be written in the following formats:
- funcName(a,b): function parameters, such as a and b, which can be constants, or variables defined in data in the .js file. Do not add the prefix this. to variables.
- Example
-
+
```
@@ -74,7 +74,7 @@ Events can be written in the following formats:
```
-
+
```
// xxx.js
export default {
@@ -93,7 +93,7 @@ Events can be written in the following formats:
};
```
-
+
```
/* xxx.css */
.container {
@@ -139,7 +139,7 @@ Bubbling event binding covers the following:
> For details about bubbling events, see [Universal Events](../reference/arkui-js/js-components-common-events.md)
- Example
-
+
```
@@ -157,8 +157,8 @@ Bubbling event binding covers the following:
```
-
-
+
+
```
// xxx.js
export default {
@@ -185,7 +185,7 @@ Event capturing binding includes:
- Bind an event callback, but stop the event from being captured during downward transfer: grab:{event}.capture.
- Example
-
+
```
```
-
+
```
// xxx.js
export default {
@@ -262,9 +262,9 @@ The for loop supports the following statements:
>  **NOTE**:
> - Each element in the array must have the data attribute specified by tid. Otherwise, an exception may occur.
->
+>
> - The attribute specified by tid in the array must be unique. Otherwise, performance loss occurs. In the above example, only id and name can be used as tid because they are unique fields.
->
+>
> - The tid field does not support expressions.
@@ -278,8 +278,8 @@ There are two ways to implement conditional rendering: if-elif-else or show. In
```
diff --git a/en/application-dev/ui/ts-component-based-preview.md b/en/application-dev/ui/ts-component-based-preview.md
index 59f5483433cb5c14e94cd414e8c1636789fd11e2..703e4d41a434d66d32a25ab941c1a98da977a7e0 100644
--- a/en/application-dev/ui/ts-component-based-preview.md
+++ b/en/application-dev/ui/ts-component-based-preview.md
@@ -11,7 +11,7 @@ Custom components decorated by @Preview can be previewed in the Previewer of Dev
Example of using @Preview:
```
-// Display only Hello Component1 on the PC preview. The content under MyComponent is displayed on the real device.
+// Display only Hello Component1 on the preview. The content under MyComponent is displayed on the real device.
@Entry
@Component
struct MyComponent {
diff --git a/en/application-dev/ui/ui-js-components-list.md b/en/application-dev/ui/ui-js-components-list.md
index a62d6b67594e3dd2819a513042ba3800dd1dcc75..c2a3150d366260d91dac7997690474f37cf3955e 100644
--- a/en/application-dev/ui/ui-js-components-list.md
+++ b/en/application-dev/ui/ui-js-components-list.md
@@ -39,7 +39,7 @@ Create a <list> component in the .hml file under pages/index.
>  **NOTE**:
> - <list-item-group> is a child component of the <list> component and is used to group items in a list. It can have a <list-item> nested inside, but not <list>.
->
+>
> - <list-item> is a child component of the <list> component and is used to display items in a list.
@@ -116,7 +116,7 @@ Set a custom indexer component to add an index bar at the right boundary of a li
>  **NOTE**:
> - This indexer attribute is valid only when flex-direction is set to column and columns is set to 1.
->
+>
> - You must include "\#" when using a customized indexer.
@@ -219,7 +219,7 @@ Search for contacts by using an alphabetical indexer.