提交 0b6f6a83 编写于 作者: Z zengyawen

add arkui

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 995cfb38
# Audio Management<a name="EN-US_TOPIC_0000001149807881"></a>
- [Modules to Import</a>](#modules-to-import)
- [Required Permissions</a>](#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\>\): void](#setvolume-asynccallback)
- [setVolume\(volumeType: AudioVolumeType, volume: number\): Promise<void\>](#setvolume-promise)
- [getVolume\(volumeType: AudioVolumeType, callback: AsyncCallback<number\>\): void](#getvolume-asynccallback)
- [getVolume\(volumeType: AudioVolumeType\): Promise<number\>](#getvolume-promise)
- [getMinVolume\(volumeType: AudioVolumeType, callback: AsyncCallback<number\>\): void](#getminvolume-asynccallback)
- [getMinVolume\(volumeType: AudioVolumeType\): Promise<number\>](#getminvolume-promise)
- [getMaxVolume\(volumeType: AudioVolumeType, callback: AsyncCallback<number\>\): void](#getmaxvolume-asynccallback)
- [getMaxVolume\(volumeType: AudioVolumeType\): Promise<number\>](#getmaxvolume-promise)
- [mute\(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback<void\>\): void7+](#mute-asynccallback)
- [mute\(volumeType: AudioVolumeType, mute: boolean\): Promise<void\>7+](#mute-promise)
- [isMute\(volumeType: AudioVolumeType, callback: AsyncCallback<boolean\>\): void7+](#ismute-asynccallback)
- [isMute\(volumeType: AudioVolumeType\): Promise<boolean\>7+](#ismute-promise)
- [isActive\(volumeType: AudioVolumeType, callback: AsyncCallback<boolean\>\): void7+](#isactive-asynccallback)
- [isActive\(volumeType: AudioVolumeType\): Promise<boolean\>7+](#isactive-promise)
- [setRingerMode\(mode: AudioRingMode, callback: AsyncCallback<void\>\): void7+](#setringermode-asynccallback)
- [setRingerMode\(mode: AudioRingMode\): Promise<void\>7+](#setringermode-promise)
- [getRingerMode\(callback: AsyncCallback<AudioRingMode\>\): void7+](#getringermode-asynccallback)
- [getRingerMode\(\): Promise<AudioRingMode\>7+](#getringermode-promise)
- [setAudioParameter\(key: string, value: string, callback: AsyncCallback<void\>\): void7+](#setaudioparameter-asynccallback)
- [setAudioParameter\(key: string, value: string\): Promise<void\>7+](#setaudioparameter-promise)
- [getAudioParameter\(key: string, callback: AsyncCallback<string\>\): void7+](#getaudioparameter-asynccallback)
- [getAudioParameter\(key: string\): Promise<string\>7+](#getaudioparameter-promise)
- [getDevices\(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors\>\): void](#getdevices-asynccallback)
- [getDevices\(deviceFlag: DeviceFlag\): Promise<AudioDeviceDescriptors\>](#getdevices-promise)
- [setDeviceActive\(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback<void\>\): void7+](#setdeviceactive-asynccallback)
- [setDeviceActive\(deviceType: ActiveDeviceType, active: boolean\): Promise<void\>7+](#setdeviceactive-promise)
- [isDeviceActive\(deviceType: ActiveDeviceType, callback: AsyncCallback<boolean\>\): void7+](#isdeviceactive-asynccallback)
- [isDeviceActive\(deviceType: ActiveDeviceType\): Promise<boolean\>7+](#isdeviceactive-promise)
- [setMicrophoneMute\(mute: boolean, callback: AsyncCallback<void\>\): void7+](#setmicrophonemute-asynccallback)
- [setMicrophoneMute\(mute: boolean\): Promise<void\>7+](#setmicrophonemute-promise)
- [isMicrophoneMute\(callback: AsyncCallback<boolean\>\): void7+](#ismicrophonemute-asynccallback)
- [isMicrophoneMute\(\): Promise<boolean\>7+](#ismicrophonemute-promise)
- [AudioDeviceDescriptor](#audiodevicedescriptor)
- [Attributes](#attributes)
- [AudioDeviceDescriptors](#audiodevicedescriptors)
## Modules to Import<a name="modules-to-import"></a>
......
# Audio Playback<a name="EN-US_TOPIC_0000001103383404"></a>
- [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<a name="s56d19203690d4782bfc74069abb6bd71"></a>
```
......
# Battery and Charging<a name="EN-US_TOPIC_0000001115974766"></a>
- [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<a name="en-us_topic_0000001100730486_section199443271307"></a>
```
......
# Console Logs<a name="EN-US_TOPIC_0000001115814846"></a>
- [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<a name="en-us_topic_0000001058460515_s56d19203690d4782bfc74069abb6bd71"></a>
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.
# Device Information<a name="EN-US_TOPIC_0000001115814850"></a>
- [Modules to Import](#en-us_topic_0000001139910745_section370mcpsimp)
- [Required Permissions](#en-us_topic_0000001139910745_section373mcpsimp)
- [Attributes](#en-us_topic_0000001139910745_section62871841172112)
## Modules to Import<a name="en-us_topic_0000001139910745_section370mcpsimp"></a>
```
......
# Globalization<a name="EN-US_TOPIC_0000001115814852"></a>
- [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<a name="en-us_topic_0000001103315838_s56d19203690d4782bfc74069abb6bd71"></a>
......
# HiAppEvent<a name="EN-US_TOPIC_0000001162414647"></a>
- [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<number\>\)](#en-us_topic_0000001150092213_section192192415554)
- [write\(string, EventType, any...\)](#en-us_topic_0000001150092213_section1696563334210)
- [writeJson\(string, EventType, object, AsyncCallback<number\>\)](#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<a name="en-us_topic_0000001150092213_s56d19203690d4782bfc74069abb6bd71"></a>
```
......
# Page Routing<a name="EN-US_TOPIC_0000001115974762"></a>
- [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<a name="en-us_topic_0000001058340511_s0e7b1e85a4274f58a8206e0b065bd80c"></a>
......@@ -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.
......
# Pop-up Window<a name="EN-US_TOPIC_0000001162494633"></a>
- [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<a name="en-us_topic_0000001059340516_s1fada83813e64efcbc67e970ced86588"></a>
```
......
# Resource Management<a name="EN-US_TOPIC_0000001162414653"></a>
- [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<T\>](#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<a name="en-us_topic_0000001150318493_s56d19203690d4782bfc74069abb6bd71"></a>
......
# Screen Brightness<a name="EN-US_TOPIC_0000001162494637"></a>
- [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<a name="en-us_topic_0000001101127828_s56d19203690d4782bfc74069abb6bd71"></a>
```
......
# System Attribute<a name="EN-US_TOPIC_0000001162414651"></a>
- [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<string\>\)](#en-us_topic_0000001094819718_section19655131534912)
- [get\(key: string, def: string, callback: AsyncCallback<string\>\)](#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<void\>\)](#en-us_topic_0000001094819718_section18770184911197)
- [set\(key: string, def?: string\)](#en-us_topic_0000001094819718_section187724496193)
## Modules to Import<a name="en-us_topic_0000001094819718_section370mcpsimp"></a>
```
......
# Timer<a name="EN-US_TOPIC_0000001115814848"></a>
- [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<a name="en-us_topic_0000001058562847_section7480141454919"></a>
None
......
# Updater<a name="EN-US_TOPIC_0000001115974768"></a>
- [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<a name="en-us_topic_0000001149710363_section749mcpsimp"></a>
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册