diff --git a/en/application-dev/js-reference/apis/audio-management.md b/en/application-dev/js-reference/apis/audio-management.md index 195effeb78b4309a7ed7a36a980dae2d5b20bc9c..a58634ba548ee4d6594d61287c0327411bc38d2f 100644 --- a/en/application-dev/js-reference/apis/audio-management.md +++ b/en/application-dev/js-reference/apis/audio-management.md @@ -1,51 +1,5 @@ # Audio Management - - [Modules to Import](#modules-to-import) - - [Required Permissions](#required-permissions) - - [getAudioManager\(\): AudioManager](#getaudiomanager-audiomanager) - - [AudioVolumeType](#audiovolumetype) - - [DeviceFlag](#deviceflag) - - [DeviceRole](#devicerole) - - [DeviceType](#devicetype) - - [ActiveDeviceType7+](#activedevicetype) - - [AudioRingMode7+](#audioringmode) - - [AudioManager](#audiomanager) - - [setVolume\(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback\): void](#setvolume-asynccallback) - - [setVolume\(volumeType: AudioVolumeType, volume: number\): Promise](#setvolume-promise) - - [getVolume\(volumeType: AudioVolumeType, callback: AsyncCallback\): void](#getvolume-asynccallback) - - [getVolume\(volumeType: AudioVolumeType\): Promise](#getvolume-promise) - - [getMinVolume\(volumeType: AudioVolumeType, callback: AsyncCallback\): void](#getminvolume-asynccallback) - - [getMinVolume\(volumeType: AudioVolumeType\): Promise](#getminvolume-promise) - - [getMaxVolume\(volumeType: AudioVolumeType, callback: AsyncCallback\): void](#getmaxvolume-asynccallback) - - [getMaxVolume\(volumeType: AudioVolumeType\): Promise](#getmaxvolume-promise) - - [mute\(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback\): void7+](#mute-asynccallback) - - [mute\(volumeType: AudioVolumeType, mute: boolean\): Promise7+](#mute-promise) - - [isMute\(volumeType: AudioVolumeType, callback: AsyncCallback\): void7+](#ismute-asynccallback) - - [isMute\(volumeType: AudioVolumeType\): Promise7+](#ismute-promise) - - [isActive\(volumeType: AudioVolumeType, callback: AsyncCallback\): void7+](#isactive-asynccallback) - - [isActive\(volumeType: AudioVolumeType\): Promise7+](#isactive-promise) - - [setRingerMode\(mode: AudioRingMode, callback: AsyncCallback\): void7+](#setringermode-asynccallback) - - [setRingerMode\(mode: AudioRingMode\): Promise7+](#setringermode-promise) - - [getRingerMode\(callback: AsyncCallback\): void7+](#getringermode-asynccallback) - - [getRingerMode\(\): Promise7+](#getringermode-promise) - - [setAudioParameter\(key: string, value: string, callback: AsyncCallback\): void7+](#setaudioparameter-asynccallback) - - [setAudioParameter\(key: string, value: string\): Promise7+](#setaudioparameter-promise) - - [getAudioParameter\(key: string, callback: AsyncCallback\): void7+](#getaudioparameter-asynccallback) - - [getAudioParameter\(key: string\): Promise7+](#getaudioparameter-promise) - - [getDevices\(deviceFlag: DeviceFlag, callback: AsyncCallback\): void](#getdevices-asynccallback) - - [getDevices\(deviceFlag: DeviceFlag\): Promise](#getdevices-promise) - - [setDeviceActive\(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback\): void7+](#setdeviceactive-asynccallback) - - [setDeviceActive\(deviceType: ActiveDeviceType, active: boolean\): Promise7+](#setdeviceactive-promise) - - [isDeviceActive\(deviceType: ActiveDeviceType, callback: AsyncCallback\): void7+](#isdeviceactive-asynccallback) - - [isDeviceActive\(deviceType: ActiveDeviceType\): Promise7+](#isdeviceactive-promise) - - [setMicrophoneMute\(mute: boolean, callback: AsyncCallback\): void7+](#setmicrophonemute-asynccallback) - - [setMicrophoneMute\(mute: boolean\): Promise7+](#setmicrophonemute-promise) - - [isMicrophoneMute\(callback: AsyncCallback\): void7+](#ismicrophonemute-asynccallback) - - [isMicrophoneMute\(\): Promise7+](#ismicrophonemute-promise) - - [AudioDeviceDescriptor](#audiodevicedescriptor) - - [Attributes](#attributes) - - [AudioDeviceDescriptors](#audiodevicedescriptors) - ## Modules to Import diff --git a/en/application-dev/js-reference/apis/audio-playback.md b/en/application-dev/js-reference/apis/audio-playback.md index 4bb9a494caac99634d572b1b0d17703fb747330f..d15b3ff256a964a3cb1a70d901d2394012628b42 100644 --- a/en/application-dev/js-reference/apis/audio-playback.md +++ b/en/application-dev/js-reference/apis/audio-playback.md @@ -1,31 +1,5 @@ # Audio Playback -- [Modules to Import](#s56d19203690d4782bfc74069abb6bd71) -- [Required Permissions](#section11257113618419) -- [Methods](#section125675489541) -- [createAudioPlayer\(\)](#section582314017253) -- [Appendixes](#section1933416317165) -- [AudioPlayer](#section5174142818365) - - [Attributes](#section4947115405) - - [play\(\)](#section964512672913) - - [pause\(\)](#section78173258296) - - [stop\(\)](#section122114334296) - - [seek\(number\)](#section1387113816298) - - [setVolume\(number\)](#section164235176552) - - [reset\(\)7+](#section1473283011356) - - [release\(\)](#section9224621145512) - - [Events](#section5453721192911) - - [play](#section87307411494) - - [pause](#section198217471590) - - [stop](#section437616531910) - - [dataLoad](#section982114219106) - - [timeUpdate](#section13687114181014) - - [volumeChange](#section139227715717) - - [finish](#section15181321181018) - - [error](#section5593132921016) - -- [AudioState](#section5181155710523) - ## Modules to Import ``` diff --git a/en/application-dev/js-reference/apis/battery-and-charging.md b/en/application-dev/js-reference/apis/battery-and-charging.md index f6238939b5d3c877efc0430f87cf3248662101fb..4b19c60bfbec66451ad1f72489c5536f59b489c4 100644 --- a/en/application-dev/js-reference/apis/battery-and-charging.md +++ b/en/application-dev/js-reference/apis/battery-and-charging.md @@ -1,12 +1,5 @@ # Battery and Charging -- [Modules to Import](#en-us_topic_0000001100730486_section199443271307) -- [BatteryInfo](#en-us_topic_0000001100730486_section1853612361618) -- [Enums](#en-us_topic_0000001100730486_section14572171519166) -- [BatteryPluggedType](#en-us_topic_0000001100730486_section1861134715488) -- [BatteryChargeState](#en-us_topic_0000001100730486_section629045815408) -- [BatteryHealthState](#en-us_topic_0000001100730486_section1636311513419) - ## Modules to Import ``` diff --git a/en/application-dev/js-reference/apis/console-logs.md b/en/application-dev/js-reference/apis/console-logs.md index 73857059260692ed595b480b3f2fc227c153c0c5..a8d9e8f9bf571e773805586225469f0596eb0599 100644 --- a/en/application-dev/js-reference/apis/console-logs.md +++ b/en/application-dev/js-reference/apis/console-logs.md @@ -1,9 +1,5 @@ # Console Logs -- [Module to Import](#en-us_topic_0000001058460515_s56d19203690d4782bfc74069abb6bd71) -- [Permission List](#en-us_topic_0000001058460515_section11257113618419) -- [Log Category](#en-us_topic_0000001058460515_s298a3cf59a3b470dbb0742706102ced7) - ## Module to Import No module is required. @@ -50,9 +46,9 @@ Prints a log using **console.debug|log|info|warn|error\(message\)**. Switch to the **HiLog** window at the bottom of HUAWEI DevEco Studio. Specifically, select the current device and process, set the log level to **Info**, and enter **Hello World** in the search box. Logs that meet the search criteria are displayed, as shown in the following figure. - ![](figures/打印日志.png) + ![](figures/log.png) - >![](public_sys-resources/icon-note.gif) **NOTE:** + > **NOTE:** >The **console.log\(\)** function prints logs at the debug level. diff --git a/en/application-dev/js-reference/apis/device-information.md b/en/application-dev/js-reference/apis/device-information.md index e6534225def70049ff87af10d20fa759c220d3ce..fde4e698c126ab45f86a5e7313cbec6a941295a0 100644 --- a/en/application-dev/js-reference/apis/device-information.md +++ b/en/application-dev/js-reference/apis/device-information.md @@ -1,9 +1,5 @@ # Device Information -- [Modules to Import](#en-us_topic_0000001139910745_section370mcpsimp) -- [Required Permissions](#en-us_topic_0000001139910745_section373mcpsimp) -- [Attributes](#en-us_topic_0000001139910745_section62871841172112) - ## Modules to Import ``` diff --git a/en/application-dev/js-reference/apis/figures/log.png b/en/application-dev/js-reference/apis/figures/log.png new file mode 100644 index 0000000000000000000000000000000000000000..6eb89772d315b440636e8ceeda928e5db6b34e40 Binary files /dev/null and b/en/application-dev/js-reference/apis/figures/log.png differ diff --git a/en/application-dev/js-reference/apis/globalization.md b/en/application-dev/js-reference/apis/globalization.md index 172a8fcf971c96330a8f7b88bf92f021e50df030..e6640de0bc9868462efd74dee803a2c7783b3ba3 100644 --- a/en/application-dev/js-reference/apis/globalization.md +++ b/en/application-dev/js-reference/apis/globalization.md @@ -1,16 +1,5 @@ # Globalization -- [Imported Modules](#en-us_topic_0000001103315838_s56d19203690d4782bfc74069abb6bd71) -- [Permissions](#en-us_topic_0000001103315838_section11257113618419) -- [Class](#en-us_topic_0000001103315838_section1956131218111) -- [Locale](#en-us_topic_0000001103315838_section189341937163212) - - [Attributes](#en-us_topic_0000001103315838_section23751576140) - - [Locale](#en-us_topic_0000001103315838_section1410593619146) - -- [DateTimeFormat](#en-us_topic_0000001103315838_section88061769522) - - [DateTimeFormat](#en-us_topic_0000001103315838_section28081362523) - - [format](#en-us_topic_0000001103315838_section917151185514) - ## Imported Modules diff --git a/en/application-dev/js-reference/apis/hiappevent.md b/en/application-dev/js-reference/apis/hiappevent.md index 59707abc1d4de42c9d36a2b36d9e76e728fbb7f1..b762c810169941d54186ee5daef78652d2d7ddd0 100644 --- a/en/application-dev/js-reference/apis/hiappevent.md +++ b/en/application-dev/js-reference/apis/hiappevent.md @@ -1,15 +1,5 @@ # HiAppEvent -- [Modules to Import](#en-us_topic_0000001150092213_s56d19203690d4782bfc74069abb6bd71) -- [Required Permissions](#en-us_topic_0000001150092213_section11257113618419) -- [Functions](#en-us_topic_0000001150092213_section125675489541) -- [write\(string, EventType, any..., AsyncCallback\)](#en-us_topic_0000001150092213_section192192415554) -- [write\(string, EventType, any...\)](#en-us_topic_0000001150092213_section1696563334210) -- [writeJson\(string, EventType, object, AsyncCallback\)](#en-us_topic_0000001150092213_section570630172512) -- [writeJson\(string, EventType, object\)](#en-us_topic_0000001150092213_section0857164934517) -- [Enums](#en-us_topic_0000001150092213_section1978842154715) -- [EventType](#en-us_topic_0000001150092213_section099619567453) - ## Modules to Import ``` diff --git a/en/application-dev/js-reference/apis/page-routing.md b/en/application-dev/js-reference/apis/page-routing.md index 6ab5ccbc1605aea9de88bf54194080a89cc40c5a..690e16d583d9421555e0d8a9305dd7ef1ef53f17 100644 --- a/en/application-dev/js-reference/apis/page-routing.md +++ b/en/application-dev/js-reference/apis/page-routing.md @@ -1,15 +1,6 @@ # Page Routing -- [Module to Import](#en-us_topic_0000001058340511_s0e7b1e85a4274f58a8206e0b065bd80c) -- [Permission List](#en-us_topic_0000001058340511_section11257113618419) -- [router.push\(OBJECT\)](#en-us_topic_0000001058340511_s938bf8d664f9475485e83d445c0eeeae) -- [router.replace\(OBJECT\)](#en-us_topic_0000001058340511_s6d485e6ae3064996a4de2f407bc4287d) -- [router.back\(OBJECT\)](#en-us_topic_0000001058340511_s3f958a02dde141e69b7f02f22fb2e401) -- [router.clear\(\)](#en-us_topic_0000001058340511_sa5c3dfd1bb0d4b43906c3d770d6ab2d9) -- [router.getLength\(\)](#en-us_topic_0000001058340511_s3f121f4005934fda9a1830a909c92c25) -- [router.getState\(\)](#en-us_topic_0000001058340511_s8843a443a12048e68e33f586aee8dc34) - ->![](public_sys-resources/icon-notice.gif) **NOTICE:** +> **NOTICE:** >Page routing APIs can be invoked only after page rendering is complete. Do not call the APIs in **onInit** and **onReady** when the page is still in the rendering phase. ## Module to Import @@ -94,7 +85,7 @@ Navigates to a specified page in the application based on the page URL and param } ``` - >![](public_sys-resources/icon-note.gif) **NOTE:** + >**NOTE:** >The page routing stack supports a maximum of 32 pages. @@ -214,7 +205,7 @@ Returns to the previous page or a specified page. router.back({uri:'pages/detail/detail'}); ``` - >![](public_sys-resources/icon-note.gif) **NOTE:** + > **NOTE:** >In the example, the **uri** field indicates the page route, which is specified by the **pages** list in the **config.json** file. diff --git a/en/application-dev/js-reference/apis/pop-up-window.md b/en/application-dev/js-reference/apis/pop-up-window.md index 138fefbebf882f62a97ecd1947ff5a30f91fbb60..0e3c9242de01a535c680a28425412686287ec915 100644 --- a/en/application-dev/js-reference/apis/pop-up-window.md +++ b/en/application-dev/js-reference/apis/pop-up-window.md @@ -1,10 +1,5 @@ # Pop-up Window -- [Module to Import](#en-us_topic_0000001059340516_s1fada83813e64efcbc67e970ced86588) -- [Permission List](#en-us_topic_0000001059340516_section11257113618419) -- [prompt.showToast\(OBJECT\)](#en-us_topic_0000001059340516_sc34d255befcf467dab069802dc9e54d8) -- [prompt.showDialog\(OBJECT\)](#en-us_topic_0000001059340516_sc6babedb391e4de9af1189ebc9ff5e69) - ## Module to Import ``` diff --git a/en/application-dev/js-reference/apis/resource-management.md b/en/application-dev/js-reference/apis/resource-management.md index 306d615d6870ae7563dbb48d42ff0ab5435685af..9c6ed7962d665a010e068e22531c2876d567a7b0 100644 --- a/en/application-dev/js-reference/apis/resource-management.md +++ b/en/application-dev/js-reference/apis/resource-management.md @@ -1,40 +1,5 @@ # Resource Management -- [Imported Modules](#en-us_topic_0000001150318493_s56d19203690d4782bfc74069abb6bd71) -- [Permissions](#en-us_topic_0000001150318493_section11257113618419) -- [Methods](#en-us_topic_0000001150318493_section125675489541) -- [getResourceManager](#en-us_topic_0000001150318493_section192192415554) -- [getResourceManager](#en-us_topic_0000001150318493_section46989284018) -- [getResourceManager](#en-us_topic_0000001150318493_section0543541673) -- [getResourceManager](#en-us_topic_0000001150318493_section1816951410716) -- [Enum](#en-us_topic_0000001150318493_section1978842154715) -- [Direction](#en-us_topic_0000001150318493_section099619567453) -- [DeviceType](#en-us_topic_0000001150318493_section4734636131914) -- [ScreenDensity](#en-us_topic_0000001150318493_section7331173812197) -- [Appendix](#en-us_topic_0000001150318493_section1933416317165) -- [AsyncCallback](#en-us_topic_0000001150318493_section256244135613) -- [Configuration](#en-us_topic_0000001150318493_section12882825611) - - [Attributes](#en-us_topic_0000001150318493_section1059684317312) - -- [DeviceCapability](#en-us_topic_0000001150318493_section7200123494410) - - [Attributes](#en-us_topic_0000001150318493_section2201153419440) - -- [ResourceManager](#en-us_topic_0000001150318493_section137771134135415) - - [getString](#en-us_topic_0000001150318493_section9779153419548) - - [getString](#en-us_topic_0000001150318493_section159261924165411) - - [getStringArray](#en-us_topic_0000001150318493_section4490132775420) - - [getStringArray](#en-us_topic_0000001150318493_section1992322017541) - - [getMedia](#en-us_topic_0000001150318493_section6710152513409) - - [getMedia](#en-us_topic_0000001150318493_section6711152517409) - - [getMediaBase64](#en-us_topic_0000001150318493_section11402326194315) - - [getMediaBase64](#en-us_topic_0000001150318493_section6404726124312) - - [getConfiguration](#en-us_topic_0000001150318493_section8123152874015) - - [getConfiguration](#en-us_topic_0000001150318493_section312515284406) - - [getDeviceCapability](#en-us_topic_0000001150318493_section104951210135017) - - [getDeviceCapability](#en-us_topic_0000001150318493_section114961410115013) - - [getPluralString](#en-us_topic_0000001150318493_section1549163064013) - - [getPluralString](#en-us_topic_0000001150318493_section165183015405) - ## Imported Modules diff --git a/en/application-dev/js-reference/apis/screen-brightness.md b/en/application-dev/js-reference/apis/screen-brightness.md index 66a0ca63198d4ab4e2f1131df01b4e6d69e5feef..f1ad6c94e78b6e2ede49f8ca2e53767c7ca841d3 100644 --- a/en/application-dev/js-reference/apis/screen-brightness.md +++ b/en/application-dev/js-reference/apis/screen-brightness.md @@ -1,9 +1,5 @@ # Screen Brightness -- [Modules to Import](#en-us_topic_0000001101127828_s56d19203690d4782bfc74069abb6bd71) -- [Functions](#en-us_topic_0000001101127828_section1998783153219) -- [setValue\(value: number\)](#en-us_topic_0000001101127828_section1853612361618) - ## Modules to Import ``` diff --git a/en/application-dev/js-reference/apis/system-attribute.md b/en/application-dev/js-reference/apis/system-attribute.md index bfe8d9b1b5e831d383d90530bd54845a1a20ab3e..d4d681bb83bad7eeb937e9b1404457b94f90ddbb 100644 --- a/en/application-dev/js-reference/apis/system-attribute.md +++ b/en/application-dev/js-reference/apis/system-attribute.md @@ -1,16 +1,5 @@ # System Attribute -- [Modules to Import](#en-us_topic_0000001094819718_section370mcpsimp) -- [Required Permissions](#en-us_topic_0000001094819718_section373mcpsimp) -- [Functions](#en-us_topic_0000001094819718_section1319529172015) -- [getSync\(key: string, def?: string\)](#en-us_topic_0000001094819718_section3381192816421) -- [get\(key: string, callback: AsyncCallback\)](#en-us_topic_0000001094819718_section19655131534912) -- [get\(key: string, def: string, callback: AsyncCallback\)](#en-us_topic_0000001094819718_section045334733915) -- [get\(key: string, def?: string\)](#en-us_topic_0000001094819718_section10288162818402) -- [setSync\(key: string, value: string\)](#en-us_topic_0000001094819718_section63102185493) -- [set\(key: string, value: string, callback: AsyncCallback\)](#en-us_topic_0000001094819718_section18770184911197) -- [set\(key: string, def?: string\)](#en-us_topic_0000001094819718_section187724496193) - ## Modules to Import ``` diff --git a/en/application-dev/js-reference/apis/timer.md b/en/application-dev/js-reference/apis/timer.md index a845d37a5b5bc6cd5c1b41fe6e88bf10c6913541..59a115942ccbf825c05be15a63ba998df4b27bdb 100644 --- a/en/application-dev/js-reference/apis/timer.md +++ b/en/application-dev/js-reference/apis/timer.md @@ -1,12 +1,5 @@ # Timer -- [Module to Import](#en-us_topic_0000001058562847_section7480141454919) -- [Permission List](#en-us_topic_0000001058562847_section11257113618419) -- [setTimeout\(handler\[, delay\[, ...args\]\]\)](#en-us_topic_0000001058562847_section691616559215) -- [clearTimeout\(timeoutID\)](#en-us_topic_0000001058562847_section591824471012) -- [setInterval\(handler\[, delay\[, ...args\]\]\)](#en-us_topic_0000001058562847_section3644185910144) -- [clearInterval\(intervalID\)](#en-us_topic_0000001058562847_section16451595149) - ## Module to Import None diff --git a/en/application-dev/js-reference/apis/updater.md b/en/application-dev/js-reference/apis/updater.md index 243789d4cc14b09b6ef0c5ced25fe27a65dacf97..fbb89fa2c86d4a548c66f72f1357cd15aac32e01 100644 --- a/en/application-dev/js-reference/apis/updater.md +++ b/en/application-dev/js-reference/apis/updater.md @@ -1,14 +1,5 @@ # Updater -- [Modules to Import](#en-us_topic_0000001149710363_section749mcpsimp) -- [Required Permissions](#en-us_topic_0000001149710363_section752mcpsimp) -- [updater.getNewVersionInfo\(\)](#en-us_topic_0000001149710363_section755mcpsimp) -- [updater.checkNewVersion\(\)](#en-us_topic_0000001149710363_section817mcpsimp) -- [updater.download\(\)](#en-us_topic_0000001149710363_section879mcpsimp) -- [updater.upgrade\(\)](#en-us_topic_0000001149710363_section894mcpsimp) -- [updater.setUpdatePolicy\(\)](#en-us_topic_0000001149710363_section909mcpsimp) -- [updater.getUpdatePolicy\(\)](#en-us_topic_0000001149710363_section985mcpsimp) - ## Modules to Import ```