diff --git a/en/application-dev/media/audio-stream-manager.md b/en/application-dev/media/audio-stream-manager.md index 9a8176b4bdab20b681ad9b3e96343a2ccfc10829..eb89957e9b8793b149c368445f1232bf0ff3b563 100644 --- a/en/application-dev/media/audio-stream-manager.md +++ b/en/application-dev/media/audio-stream-manager.md @@ -117,7 +117,7 @@ This API can be used to obtain the unique ID of the audio stream, UID of the aud console.info('Address:' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].address); console.info('SampleRates:' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].sampleRates[0]); console.info('ChannelCounts' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].channelCounts[0]); - console.info('ChannnelMask:' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].channelMasks); + console.info('ChannelMask:' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].channelMasks); } } } diff --git a/en/application-dev/media/remote-camera.md b/en/application-dev/media/remote-camera.md index 8d9bd0eb7b7568e9cb46dd6c2a37b4380933b0bf..e35950e73b1993b8a446f75e3007a80e4bbaff19 100644 --- a/en/application-dev/media/remote-camera.md +++ b/en/application-dev/media/remote-camera.md @@ -5,7 +5,7 @@ You can call the APIs provided by the **Camera** module to develop a distributed camera that provides the basic camera functions such as shooting and video recording. ## How to Develop -Connect your calculator to a distributed device. Your calculator will call **getCameras()** to obtain the camera list and traverse the returned camera list to check **ConnctionType** of the **Camera** objects. If **ConnctionType** of a **Camera** object is **CAMERA_CONNECTION_REMOTE**, your calculator will use this object to create a **CameraInput** object. The subsequent call process is the same as that of the local camera development. For details about the local camera development, see [Camera Development](./camera.md). +Connect your calculator to a distributed device. Your calculator will call **getCameras()** to obtain the camera list and traverse the returned camera list to check **ConnectionType** of the **Camera** objects. If **ConnectionType** of a **Camera** object is **CAMERA_CONNECTION_REMOTE**, your calculator will use this object to create a **CameraInput** object. The subsequent call process is the same as that of the local camera development. For details about the local camera development, see [Camera Development](./camera.md). For details about the APIs, see [Camera Management](../reference/apis/js-apis-camera.md). diff --git a/en/application-dev/reference/apis/js-apis-deque.md b/en/application-dev/reference/apis/js-apis-deque.md index 8d9a9c1b42bef6ce74fdfb21a8033b80e68c1868..ea8803f444dca95990cb00a015bfbad12f590639 100644 --- a/en/application-dev/reference/apis/js-apis-deque.md +++ b/en/application-dev/reference/apis/js-apis-deque.md @@ -8,7 +8,7 @@ Double-ended queue (deque) is a sequence container implemented based on the queu **Queue** follows the principle of FIFO only and allows element removal at the front and insertion at the rear. -**Vector** supports insertion and deletion of elements in between, as well asat both the ends. When compared with **Vector**, **Deque** is more efficient in inserting and removing header elements, but less efficient in accessing elements. +**Vector** supports insertion and deletion of elements in between, as well as at both the ends. When compared with **Vector**, **Deque** is more efficient in inserting and removing header elements, but less efficient in accessing elements. **Recommended use case**: Use **Deque** when you need to frequently insert or remove elements at both the ends of a container. diff --git a/en/application-dev/reference/apis/js-apis-medialibrary.md b/en/application-dev/reference/apis/js-apis-medialibrary.md index b66eeec85c124ac083b27859849a86e1a5f1d4c2..e805a8d3172b2ec12f05a4fe39034be08d249905 100644 --- a/en/application-dev/reference/apis/js-apis-medialibrary.md +++ b/en/application-dev/reference/apis/js-apis-medialibrary.md @@ -1130,7 +1130,7 @@ async function example() { const fetchFileResult = await media.getFileAssets(getImageOp); const asset = await fetchFileResult.getFirstObject(); asset.getThumbnail((err, pixelmap) => { - console.info('mediaLibraryTest : getThumbnail Successfull '+ pixelmap); + console.info('mediaLibraryTest : getThumbnail successful '+ pixelmap); }); } ``` @@ -1168,7 +1168,7 @@ async function example() { const fetchFileResult = await media.getFileAssets(getImageOp); const asset = await fetchFileResult.getFirstObject(); asset.getThumbnail(size, (err, pixelmap) => { - console.info('mediaLibraryTest : getThumbnail Successfull '+ pixelmap); + console.info('mediaLibraryTest : getThumbnail successful '+ pixelmap); }); } ``` @@ -1212,7 +1212,7 @@ async function example() { const asset = await fetchFileResult.getFirstObject(); asset.getThumbnail(size) .then((pixelmap) => { - console.info('mediaLibraryTest : getThumbnail Successfull '+ pixelmap); + console.info('mediaLibraryTest : getThumbnail successful '+ pixelmap); }) .catch((err) => { console.info('mediaLibraryTest : getThumbnail fail'+ err); @@ -1502,7 +1502,7 @@ async function example() { asset.trash(true, istrashCallBack); } else { - console.info('mediaLibraryTest : ASSET_CALLBACK isTrash Unsuccessfull = ' + err); + console.info('mediaLibraryTest : ASSET_CALLBACK isTrash Unsuccessful = ' + err); console.info('mediaLibraryTest : ASSET_CALLBACK isTrash : FAIL'); } @@ -1736,7 +1736,7 @@ Obtains the next file asset in the result set. This API uses an asynchronous cal | Name | Type | Mandatory| Description | | --------- | --------------------------------------------- | ---- | ----------------------------------------- | -| callbacke | AsyncCallback<[FileAsset](#fileasset7)> | Yes | Callback used to return the next file asset.| +| callback | AsyncCallback<[FileAsset](#fileasset7)> | Yes | Callback used to return the next file asset.| **Example** diff --git a/en/application-dev/reference/apis/js-apis-osAccount.md b/en/application-dev/reference/apis/js-apis-osAccount.md index 97a293e22137964215cbbfae1e86b768f7e5acaf..a4692039779fa40b82edb8de1dab204423ac957d 100644 --- a/en/application-dev/reference/apis/js-apis-osAccount.md +++ b/en/application-dev/reference/apis/js-apis-osAccount.md @@ -1,4 +1,4 @@ -# OS Account Management +# OS Account Management The **osAccount** module provides basic capabilities for managing operating system (OS) accounts, including adding, deleting, querying, setting, subscribing to, and enabling an OS account, and storing OS account data to disks. @@ -3163,7 +3163,7 @@ This is a system API and cannot be called by third-party applications. | FACE_AUTH_TIP_POOR_GAZE | 10 | The face is not facing the device. | | FACE_AUTH_TIP_NOT_DETECTED | 11 | No face is detected. | -## ingerprintTips8+ +## FingerprintTips8+ Enumerates the tip codes for fingerprint authentication. diff --git a/en/application-dev/reference/apis/js-apis-url.md b/en/application-dev/reference/apis/js-apis-url.md index 679dc182e6c06d96248a084e313cc3d1baaea7f9..c060118f7e466da51f2ee5b7fdd6ad20f7e256ca 100755 --- a/en/application-dev/reference/apis/js-apis-url.md +++ b/en/application-dev/reference/apis/js-apis-url.md @@ -197,9 +197,9 @@ Obtains the value of the first key-value pair based on the specified key. **Example** ```js -let paramsOject = new Url.URLSearchParams('name=Jonathan&age=18'); -let name = paramsOject.get("name"); // is the string "Jonathan" -let age = parseInt(paramsOject.get("age"), 10); // is the number 18 +let paramsObject = new Url.URLSearchParams('name=Jonathan&age=18'); +let name = paramsObject.get("name"); // is the string "Jonathan" +let age = parseInt(paramsObject.get("age"), 10); // is the number 18 ``` diff --git a/en/application-dev/reference/apis/js-apis-util.md b/en/application-dev/reference/apis/js-apis-util.md index f9820758decfac7eaef530c4ff3c65aa81544150..eb52d85a2c418842f2cb2d581fb0583917b68622 100755 --- a/en/application-dev/reference/apis/js-apis-util.md +++ b/en/application-dev/reference/apis/js-apis-util.md @@ -1015,7 +1015,7 @@ Obtains the value of the specified key. | Type| Description| | -------- | -------- | -| V \| undefind | Returns the value of the key if a match is found in the buffer; returns **undefined** otherwise.| +| V \| undefined | Returns the value of the key if a match is found in the buffer; returns **undefined** otherwise.| **Example** ```js @@ -1116,7 +1116,7 @@ Removes the specified key and its value from this buffer. | Type| Description| | -------- | -------- | -| V \| undefind | Returns an **Optional** object containing the removed key-value pair if the key exists in the buffer; returns an empty **Optional** object otherwise. If the key is null, an exception will be thrown.| +| V \| undefined | Returns an **Optional** object containing the removed key-value pair if the key exists in the buffer; returns an empty **Optional** object otherwise. If the key is null, an exception will be thrown.| **Example** ```js @@ -1291,7 +1291,7 @@ class Temperature{ // private readonly _temp: Temperature; this._temp = value; } - comapreTo(value){ + compareTo(value){ return this._temp >= value.getTemp(); } getTemp(){ diff --git a/zh-cn/application-dev/faqs/faqs-ui-ets.md b/zh-cn/application-dev/faqs/faqs-ui-ets.md index cd53f334c0463202a548a20158e27318923230b3..893d9e664c09a44144547dd3adbe99278f2d646b 100644 --- a/zh-cn/application-dev/faqs/faqs-ui-ets.md +++ b/zh-cn/application-dev/faqs/faqs-ui-ets.md @@ -24,7 +24,7 @@ build() { let a: number = 1 // invalid: variable declaration not allowed Column() { Text('Hello ${this.myName.toUpperCase()}') // ok. - ForEach(this.arr.reverse(), ..., ...) // invalid: Array.reverse modifies the @State array varible in place + ForEach(this.arr.reverse(), ..., ...) // invalid: Array.reverse modifies the @State array variable in place } buildSpecial() // invalid: no function calls Text(this.calcTextValue()) // this function call is ok. diff --git a/zh-cn/application-dev/media/audio-stream-manager.md b/zh-cn/application-dev/media/audio-stream-manager.md index cd23dc2953910c5e7bca59faa64a254c7b76b120..84f3f7215227cfcf649edea9a4fb9184553f44aa 100644 --- a/zh-cn/application-dev/media/audio-stream-manager.md +++ b/zh-cn/application-dev/media/audio-stream-manager.md @@ -117,7 +117,7 @@ AudioStreamManager提供了音频流管理的方法。开发者可以通过本 console.info('Address:' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].address); console.info('SampleRates:' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].sampleRates[0]); console.info('ChannelCounts' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].channelCounts[0]); - console.info('ChannnelMask:' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].channelMasks); + console.info('ChannelMask:' + i + ':' + AudioRendererChangeInfo.deviceDescriptors[j].channelMasks); } } } diff --git a/zh-cn/application-dev/media/image.md b/zh-cn/application-dev/media/image.md index 6caf2a1fba2a11847e49325991e7edfc60857f51..f04166c6daf2f463665605bee6d095feb7824293 100644 --- a/zh-cn/application-dev/media/image.md +++ b/zh-cn/application-dev/media/image.md @@ -285,7 +285,7 @@ public async init(surfaceId: any) { // 获取Surface ID var surfaceId = await receiver.getReceivingSurfaceId(); - // 注册Surface的监听,在suface的buffer准备好后触发 + // 注册Surface的监听,在surface的buffer准备好后触发 receiver.on('imageArrival', () => { // 去获取Surface中最新的buffer receiver.readNextImage((err, img) => { diff --git a/zh-cn/application-dev/media/remote-camera.md b/zh-cn/application-dev/media/remote-camera.md index 5be86b91a20060bf310981751cdaf2879e9c18fc..bc1f3e830494e16cfb30cf02f22bea055159553f 100644 --- a/zh-cn/application-dev/media/remote-camera.md +++ b/zh-cn/application-dev/media/remote-camera.md @@ -5,7 +5,7 @@ 分布式相机模块支持相机相关基础功能介绍说明。 ## 开发步骤 -在计算器中连接分布式设备,在获取相机列表时getCameras(),遍历返回的列表,判断对应Camera对象中的ConnctionType是否等于CAMERA_CONNECTION_REMOTE,若等于则使用此对象创建camerainput,之后调用与本地相机使用一样。参考:[相机开发指导](./camera.md) +在计算器中连接分布式设备,在获取相机列表时getCameras(),遍历返回的列表,判断对应Camera对象中的ConnectionType是否等于CAMERA_CONNECTION_REMOTE,若等于则使用此对象创建camerainput,之后调用与本地相机使用一样。参考:[相机开发指导](./camera.md) 详细API含义请参考:[相机管理API文档](../reference/apis/js-apis-camera.md) diff --git a/zh-cn/application-dev/reference/apis/js-apis-hidebug.md b/zh-cn/application-dev/reference/apis/js-apis-hidebug.md index c57ae6c7aac7b28ce9077ed2070611f873004d00..d6bdbe5f37e074f8f5cb1611ae8ea5454de65eb9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hidebug.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hidebug.md @@ -144,7 +144,7 @@ getPrivateDirty(): bigint getCpuUsage(): number -获取进程的cpu使用率。 +获取进程的CPU使用率。 如占用率为50%,则返回0.5。 @@ -154,7 +154,7 @@ getCpuUsage(): number | 类型 | 说明 | | ------ | -------------------------- | -| number | 获取进程的cpu使用率。 | +| number | 获取进程的CPU使用率。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md b/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md index 956df8e5c1838d80b546837bb78dfbce415b8e23..90a611d1bb4452fc73fddb95d6866e1b189043af 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md +++ b/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md @@ -1395,7 +1395,7 @@ async function example() { const fetchFileResult = await media.getFileAssets(getImageOp); const asset = await fetchFileResult.getFirstObject(); asset.getThumbnail((err, pixelmap) => { - console.info('mediaLibraryTest : getThumbnail Successfull '+ pixelmap); + console.info('mediaLibraryTest : getThumbnail Successful '+ pixelmap); }); } ``` @@ -1433,7 +1433,7 @@ async function example() { const fetchFileResult = await media.getFileAssets(getImageOp); const asset = await fetchFileResult.getFirstObject(); asset.getThumbnail(size, (err, pixelmap) => { - console.info('mediaLibraryTest : getThumbnail Successfull '+ pixelmap); + console.info('mediaLibraryTest : getThumbnail Successful '+ pixelmap); }); } ``` @@ -1477,7 +1477,7 @@ async function example() { const asset = await fetchFileResult.getFirstObject(); asset.getThumbnail(size) .then((pixelmap) => { - console.info('mediaLibraryTest : getThumbnail Successfull '+ pixelmap); + console.info('mediaLibraryTest : getThumbnail Successful '+ pixelmap); }) .catch((err) => { console.info('mediaLibraryTest : getThumbnail fail'+ err); diff --git a/zh-cn/application-dev/reference/apis/js-apis-net-connection.md b/zh-cn/application-dev/reference/apis/js-apis-net-connection.md index 9ac63506828b3293812c8fdccdeb22cd16594259..76e65470edc6d26e93b864619e0a4ff8bcb27803 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-net-connection.md +++ b/zh-cn/application-dev/reference/apis/js-apis-net-connection.md @@ -66,7 +66,7 @@ connection.getDefaultNet().then(function (netHandle) { hasDefaultNet(callback: AsyncCallback\): void 检查默认数据网络是否被激活,使用callback方式作为异步方法。 -默认数据网络:以太网>wifi>蜂窝,当只有一个网络为连接状态时,当前连接网络为默认数据网络。 +默认数据网络:以太网>Wi-Fi>蜂窝,当只有一个网络为连接状态时,当前连接网络为默认数据网络。 **系统能力**:SystemCapability.Communication.NetManager.Core @@ -90,7 +90,7 @@ connection.hasDefaultNet(function (error, has) { hasDefaultNet(): Promise\ 检查默认数据网络是否被激活,使用Promise方式作为异步方法。 -默认数据网络:以太网>wifi>蜂窝,当只有一个网络为连接状态时,当前连接网络为默认数据网络。 +默认数据网络:以太网>Wi-Fi>蜂窝,当只有一个网络为连接状态时,当前连接网络为默认数据网络。 **系统能力**:SystemCapability.Communication.NetManager.Core @@ -1031,7 +1031,7 @@ connection.getDefaultNet().then(function (netHandle) { | 参数名 | 类型 | 说明 | | ----------------------- | ----------------------------------- | ------------------------------------------------------------ | | netCapabilities | [NetCapabilities](#netcapabilities) | 存储数据网络的传输能力和承载类型。 | -| bearerPrivateIdentifier | string | 网络标识符,WIFI网络的标识符是"wifi",蜂窝网络的标识符是"slot0"(对应SIM卡1)。 | +| bearerPrivateIdentifier | string | 网络标识符,Wi-Fi网络的标识符是"wifi",蜂窝网络的标识符是"slot0"(对应SIM卡1)。 | ## NetCapabilities diff --git a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md index f4b523222b681c6f309c26116d9fed815808d9cd..8692bebb90b3295b27b6e1cfe1ce506da1f013cc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md @@ -1,4 +1,4 @@ -# 系统帐号管理 +# 系统帐号管理 本模块提供管理系统帐号的一些基础能力,包括系统帐号的添加、删除、查询、设置、订阅、启动等功能,提供系统帐号数据落盘的能力。 @@ -239,7 +239,7 @@ isOsAccountConstraintEnable(localId: number, constraint: string, callback: Async | constraint | string | 是 | 指定的[约束](#系统帐号约束列表)名称。 | | callback | AsyncCallback<boolean> | 是 | 回调结果,具有指定约束则返回true,否则返回false。 | -**示例:**判断ID为100的系统帐号是否有禁止使用wifi的约束 +**示例:**判断ID为100的系统帐号是否有禁止使用Wi-Fi的约束 ```js let accountManager = account_osAccount.getAccountManager(); @@ -273,7 +273,7 @@ isOsAccountConstraintEnable(localId: number, constraint: string): Promise<boo | :--------------------- | :----------------------------------------------------------- | | Promise<boolean> | Promise实例,用于获取异步返回结果,具有指定约束则返回true,否则返回false。 | -**示例:**判断ID为100的系统帐号是否有禁止使用wifi的约束 +**示例:**判断ID为100的系统帐号是否有禁止使用Wi-Fi的约束 ```js let accountManager = account_osAccount.getAccountManager(); @@ -506,7 +506,7 @@ setOsAccountConstraints(localId: number, constraints: Array<string>, enabl | enable | boolean | 是 | 设置(true)/删除(false) | | callback | AsyncCallback<void> | 是 | 回调结果。 | -**示例:**给ID为100的系统帐号设置禁止使用wifi的约束 +**示例:**给ID为100的系统帐号设置禁止使用Wi-Fi的约束 ```js let accountManager = account_osAccount.getAccountManager(); @@ -542,7 +542,7 @@ setOsAccountConstraints(localId: number, constraints: Array<string>, enabl | :------------------ | :---------------------------------- | | Promise<void> | Promise实例,用于获取异步返回结果。 | -**示例:**删除ID为100的系统帐号的禁止使用wifi的约束 +**示例:**删除ID为100的系统帐号的禁止使用Wi-Fi的约束 ```js let accountManager = account_osAccount.getAccountManager(); @@ -3164,7 +3164,7 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; | FACE_AUTH_TIP_POOR_GAZE | 10 | 表示面未朝向设备。 | | FACE_AUTH_TIP_NOT_DETECTED | 11 | 表示未检测到人脸。 | -## ingerprintTips8+ +## FingerprintTips8+ 枚举,指示指纹身份验证过程中提示代码。 @@ -3218,8 +3218,8 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; | 约束 | 说明 | | ------------------------------------- | ------------------------------ | -| constraint.wifi | 禁止使用wifi | -| constraint.wifi.set | 禁止配置wifi | +| constraint.wifi | 禁止使用Wi-Fi | +| constraint.wifi.set | 禁止配置Wi-Fi | | constraint.locale.set | 禁止配置设备语言 | | constraint.app.accounts | 禁止添加和删除应用帐号 | | constraint.apps.install | 禁止安装应用 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-url.md b/zh-cn/application-dev/reference/apis/js-apis-url.md index 98ab0ef71610ee027b01ba22207150685b31e313..881b10ac1deaa241f621101a4ca7af2ac56c648b 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-url.md +++ b/zh-cn/application-dev/reference/apis/js-apis-url.md @@ -196,9 +196,9 @@ get(name: string): string | null **示例:** ```js -let paramsOject = new Url.URLSearchParams('name=Jonathan&age=18'); -let name = paramsOject.get("name"); // is the string "Jonathan" -let age = parseInt(paramsOject.get("age"), 10); // is the number 18 +let paramsObject = new Url.URLSearchParams('name=Jonathan&age=18'); +let name = paramsObject.get("name"); // is the string "Jonathan" +let age = parseInt(paramsObject.get("age"), 10); // is the number 18 ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-util.md b/zh-cn/application-dev/reference/apis/js-apis-util.md index b44a45f15cfcbc299d73dc8cc8d923f75b89d683..f6da5fb4ba68285030323fca83358f37d28de624 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-util.md +++ b/zh-cn/application-dev/reference/apis/js-apis-util.md @@ -1014,7 +1014,7 @@ get(key: K): V | undefined | 类型 | 说明 | | -------- | -------- | -| V \| undefind | 如果指定的键存在于缓冲区中,则返回与键关联的值;否则返回undefined。 | +| V \| undefined | 如果指定的键存在于缓冲区中,则返回与键关联的值;否则返回undefined。 | **示例:** ```js @@ -1115,7 +1115,7 @@ remove(key: K): V | undefined | 类型 | 说明 | | -------- | -------- | -| V \| undefind | 返回一个包含已删除键值对的Optional对象;如果key不存在,则返回一个空的Optional对象,如果key为null,则抛出异常。 | +| V \| undefined | 返回一个包含已删除键值对的Optional对象;如果key不存在,则返回一个空的Optional对象,如果key为null,则抛出异常。 | **示例:** ```js @@ -1290,7 +1290,7 @@ class Temperature{ // private readonly _temp: Temperature; this._temp = value; } - comapreTo(value){ + compareTo(value){ return this._temp >= value.getTemp(); } getTemp(){